Function at 0x10b3b28
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x10e607c]
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x34]
xor ecx, ecx
cmp word [ebp + 0x14], 1
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], edx
mov word [edi + 6], cx
mov dword [edi], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
jne 0x10b3b94
mov edx, dword [edi + 0x14]
cmp word [edx + 0xa0], cx
je 0x10b3b94
xor ax, ax
jmp 0x10b435d
cmp word [esi + 0xa2], cx
je 0x10b3ba7
mov dword [ebp - 0x21c], 0x1000000
test byte [esi + 0x41], 4
je 0x10b3bb4
or byte [ebp - 0x21a], 0x20
cmp word [ebp + 0x14], 1
jne 0x10b3bf0
mov edx, dword [esi + 0x80]
cmp edx, ecx
je 0x10b3bf0
mov dword [ebp - 0x218], edx
mov dx, word [esi + 0x88]
mov word [eax + 0x24a], dx
mov edx, dword [esi + 0x84]
mov dword [eax + 0x24c], edx
mov dword [ebp - 0x210], ecx
jmp 0x10b405d
mov eax, dword [esi + 0x7c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x210], eax
mov eax, dword [ebx + 0xc]
push 0x10125f0
push eax
mov dword [ebp - 0x218], eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10b3c76
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x234]
push eax
push 0x1012704
push dword [ebp - 0x210]
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0x14
push dword [ebp - 0x224]
push dword [ebp - 0x238]
push dword [ebp - 0x234]
push ebx
call fcn.010ab9f3
test eax, eax
je 0x10b3c76
mov eax, dword [eax + 0x10]
and dword [ebp - 0x210], 0
mov dword [ebp - 0x230], 1
mov dword [ebp - 0x218], eax
push 0
push 0
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x218]
push ebx
call fcn.010bab05
test ax, ax
jne 0x10b4138
cmp word [ebp + 0x14], 2
jne 0x10b3cb4
push dword [ebp - 0x214]
call fcn.010b9617
mov dword [ebp - 0x214], eax
and dword [ebp - 0x224], 0
cmp dword [ebp - 0x210], 0
je 0x10b3d4e
push 0x1005f8c
push dword [ebp - 0x210]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10b3d0c
push ebx
call fcn.010ba429
push 0
push 1
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x218]
push ebx
call fcn.010bab05
test ax, ax
je 0x10b3d23
jmp 0x10b4138
push 0x101289c
push dword [ebp - 0x210]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10b3d2d
mov dword [ebp - 0x224], 1
push 0x1012884
push dword [ebp - 0x210]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10b3d4e
mov dword [ebp - 0x224], 1
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x21c]
push dword [ebp - 0x224]
push dword [ebp + 0x14]
push dword [ebp - 0x214]
push esi
push edi
push ebx
call fcn.010b311f
and dword [ebp - 0x210], 0
cmp eax, 0xffffffff
mov dword [ebp - 0x218], eax
je 0x10b3e98
test byte [esi + 0x41], 4
je 0x10b3db5
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
push esi
push dword [ebp - 0x214]
push ebx
call fcn.010b2954
test ax, ax
je 0x10b3db5
mov si, ax
jmp 0x10b3fde
mov eax, dword [ebx + 0x14]
test byte [eax + 0x9d], 0x10
je 0x10b3dcd
cmp dword [ebp - 0x210], 0xc0000004
je 0x10b3de5
mov eax, dword [ebp - 0x22c]
cmp dword [eax + 0x3c], 0
jne 0x10b3e31
cmp dword [ebp - 0x210], 0x80000007
jne 0x10b3e31
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x21c]
and eax, 0xffdfffff
or eax, 0x100000
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x21c]
push dword [ebp - 0x224]
push dword [ebp + 0x14]
push dword [ebp - 0x214]
push esi
push edi
push ebx
call fcn.010b311f
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0xffffffff
jne 0x10b3e7f
mov eax, dword [ebp - 0x21c]
and eax, 0xffefffff
or eax, 0x200000
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x21c]
push dword [ebp - 0x224]
push dword [ebp + 0x14]
push dword [ebp - 0x214]
push esi
push edi
push ebx
call fcn.010b311f
cmp eax, 0xffffffff
mov dword [ebp - 0x218], eax
je 0x10b3e98
test byte [ebp - 0x21a], 0x10
je 0x10b3e8c
and byte [esi + 0x41], 0xef
and dword [ebp - 0x210], 0
jmp 0x10b3f76
xor eax, eax
cmp dword [ebp - 0x210], 0xc0000004
mov ecx, edi
sete al
push eax
mov eax, dword [ebp - 0x228]
call fcn.010b3087
cmp ax, 0xfe11
mov dword [ebp - 0x210], eax
jne 0x10b3f76
cmp word [ebp + 0x14], 0
jne 0x10b3f76
mov eax, dword [ebx + 0x14]
cmp word [eax + 0xe], 0
je 0x10b3f76
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x21c]
push 1
push 0
push dword [ebp - 0x214]
push esi
push edi
push ebx
call fcn.010b311f
cmp eax, 0xffffffff
mov dword [ebp - 0x218], eax
jne 0x10b3f26
mov eax, dword [ebp - 0x228]
push 0
mov ecx, edi
call fcn.010b3087
test ax, ax
mov dword [ebp - 0x210], eax
jne 0x10b3fec
push 0x7fffffff
push 0xffffffffffffffff
push 0
push 0
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_LockFile]
test eax, eax
je 0x10b3f5a
mov word [edi + 6], 1
or byte [esi + 0x8e], 1
mov dword [ebp - 0x210], 0xfffffe10
jmp 0x10b3f76
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x210], 0xfffffe11
cmp dword [ebp - 0x218], 0xffffffff
jne 0x10b4050
cmp word [ebp + 0x14], 1
je 0x10b4094
cmp word [ebp + 0x14], 2
jne 0x10b3fec
push dword [ebp - 0x214]
mov eax, dword [edi]
push dword [eax + 4]
call fcn.0109eea7
test ax, ax
jne 0x10b3fd4
mov eax, dword [edi + 0x14]
mov al, byte [eax + 0x2a]
cmp al, 5
je 0x10b3fd4
cmp al, 7
je 0x10b3fd4
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x214]
mov eax, dword [edi]
push dword [eax + 4]
call fcn.0109f0e4
test ax, ax
je 0x10b3fec
mov ebx, dword [ebp - 0x220]
mov si, 0xfe38
push ebx
call fcn.010ba429
mov ax, si
jmp 0x10b435d
mov ebx, dword [ebp - 0x214]
lea edx, [ebp - 0x21a]
mov ecx, edi
call fcn.010b3376
cmp eax, 0xffffffff
mov dword [ebp - 0x218], eax
je 0x10b4013
and dword [ebp - 0x210], 0
jmp 0x10b4050
cmp word [ebp - 0x21a], 0
je 0x10b4031
push dword [ebp - 0x220]
call fcn.010ba429
mov ax, 0xfe38
jmp 0x10b435d
push dword [ebp - 0x214]
mov eax, dword [edi]
push dword [eax + 4]
call fcn.0109eea7
test ax, ax
je 0x10b4050
mov dword [ebp - 0x210], 0xfffffe05
cmp word [ebp + 0x14], 1
mov ebx, dword [ebp - 0x220]
jne 0x10b409a
cmp dword [ebp - 0x218], 0xffffffff
je 0x10b409a
mov eax, dword [esi + 0x40]
test ah, 2
je 0x10b409a
test ah, 0x40
je 0x10b409a
xor eax, eax
push eax
lea ecx, [ebp - 0x22c]
push ecx
push eax
push eax
push eax
push eax
push 0x900c4
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x10b409a
mov ebx, dword [ebp - 0x220]
cmp word [ebp + 0x14], 0
jne 0x10b40ea
cmp dword [ebp - 0x218], 0xffffffff
je 0x10b40ea
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x22c], eax
jne 0x10b40d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10b40ea
mov ecx, dword [ebp - 0x23c]
xor eax, eax
or eax, dword [ebp - 0x22c]
xor edx, edx
or ecx, edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
push ebx
call fcn.010ba429
cmp word [ebp - 0x210], 0
je 0x10b41ca
cmp word [ebp - 0x210], 0xfe10
je 0x10b41ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 1
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x214]
push eax
mov eax, dword [esi + 0x7c]
push dword [eax + 0x18]
push dword [ebx + 0xc]
push ebx
call fcn.010bab05
test ax, ax
je 0x10b4141
or ax, 0xffff
jmp 0x10b435d
push 8
push 0x1012740
push dword [ebp - 0x214]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x10b4170
add dword [ebp - 0x214], 0xc
mov eax, dword [ebp - 0x214]
mov dword [eax], 0x5c005c
jmp 0x10b4191
push 4
push 0x1005efc
push dword [ebp - 0x214]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x10b4191
add dword [ebp - 0x214], 8
cmp word [ebp + 0x14], 1
push dword [ebp - 0x214]
jne 0x10b41a5
push 0x232f
jmp 0x10b41aa
push 0x232e
push dword [ebp - 0x220]
push 0
push ebx
call fcn.0108dc85
push ebx
call fcn.010ba429
mov dword [ebp - 0x210], 0xfffffe3f
jmp 0x10b41e0
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x218]
mov dword [eax], ecx
mov eax, dword [edi + 0x10]
and dword [eax + 4], 0
and dword [edi + 8], 0
and word [esi + 0xa0], 0
cmp word [ebp + 0x14], 0
mov dword [esi + 0x9c], 1
jne 0x10b4356
cmp word [ebp - 0x230], 0
jne 0x10b4356
cmp word [ebp - 0x210], 0
je 0x10b4224
cmp word [ebp - 0x210], 0xfe10
jne 0x10b4356
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x270]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x10b4331
mov ecx, dword [ebp - 0x248]
xor edx, edx
xor eax, eax
inc edx
cmp ecx, edx
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], ecx
jbe 0x10b4294
mov ecx, dword [ebp - 0x244]
mov dword [esi + 0x94], ecx
mov ecx, dword [ebp - 0x240]
mov dword [esi + 0x98], ecx
mov ecx, dword [ebp - 0x254]
test ecx, ecx
mov dword [esi + 0x90], ecx
jne 0x10b4294
mov dword [esi + 0x9c], edx
cmp dword [esi + 0x9c], edx
jbe 0x10b4318
push dword [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 0x90]
push ebx
call fcn.010ab9f3
test eax, eax
jne 0x10b4318
push dword [esi + 0x98]
lea eax, [ebp - 0x20c]
push dword [esi + 0x94]
push dword [esi + 0x90]
push 0x1012704
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
mov eax, dword [esi + 0x7c]
add esp, 0x14
push dword [eax + 0x18]
push dword [ebx + 0xc]
push dword [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 0x90]
push ebx
call fcn.010abd3c
push dword [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 0x90]
push ebx
call fcn.010ab9f3
xor ecx, ecx
test eax, eax
setne cl
mov word [esi + 0xa0], cx
mov ecx, dword [edi + 0x10]
mov dword [ecx + 0x244], eax
jmp 0x10b4356
xor eax, eax
mov dword [esi + 0x98], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x90], eax
mov word [esi + 0xa0], ax
mov dword [esi + 0x9c], 1
mov ax, word [ebp - 0x210]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret 0x10