Function at 0x102090b
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x494
xor eax, eax
push ebx
push esi
push edi
xor esi, esi
lea edi, [ebp - 0x7c]
mov dword [ebp - 0x80], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x24]
mov dword [ebp - 0x28], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x38]
mov dword [ebp - 0x3c], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x40]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x44], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], esi
stosd dword es:[edi], eax
mov dword [ebp - 0x94], esi
lea edi, [ebp - 0x90]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x68], esi
lea edi, [ebp - 0x64]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x50], 4
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
stosd dword es:[edi], eax
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x30], esi
cmp ebx, esi
je 0x1020dae
cmp dword [ebp + 0x10], 0xffffffff
je 0x1020dae
cmp dword [ebp + 0x14], 0xffffffff
je 0x1020dae
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1020dae
mov eax, dword [ebp - 0x1c]
or eax, dword [ebp - 0x18]
je 0x1020dae
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
mov dword [ebp - 4], esi
call fcn.01019bbb
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
call fcn.01019bf6
test eax, eax
jne 0x10209f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x20], esi
je 0x1020da0
cmp dword [ebp - 0x14], esi
je 0x1020da0
mov edi, 0x8000
cmp dword [ebp - 0x10], edi
jb 0x1020da0
cmp dword [ebp - 0x70], edi
jb 0x1020da0
push ebx
mov dword [ebp - 4], 1
call fcn.0101a210
cmp eax, 1
jne 0x1020a39
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x70], edi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push esi
add eax, 0x7fff
push edi
adc ecx, esi
push ecx
push eax
call fcn.0102ae10
mov edi, eax
dec edi
cmp dword [ebp - 0x18], esi
je 0x1020a5e
mov dword [ebp - 0x50], 8
cmp edi, esi
je 0x1020b3a
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x50]
mul edi
push edx
push eax
mov dword [ebp - 4], esi
call fcn.01011021
mov ebx, eax
cmp ebx, esi
jge 0x1020abd
test ebx, 0x10000000
je 0x1020aaa
mov edi, dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push ebx
call edi
cmp eax, 0x13d
jne 0x1020a9f
mov dword [ebp - 8], ebx
jmp 0x1020da0
push ebx
call edi
mov dword [ebp - 8], eax
jmp 0x1020da0
mov eax, ebx
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x1020a97
movzx eax, bx
jmp 0x1020aa2
mov ebx, dword [ebp - 0x6c]
cmp ebx, edi
jbe 0x1020da0
cmp ebx, 0x400
ja 0x1020adb
lea eax, [ebp - 0x494]
mov dword [ebp - 0xc], eax
jmp 0x1020af5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x1020da0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x68], esi
push dword [ebp + 0x14]
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
call fcn.0101fbcd
test eax, eax
je 0x1020d7f
xor eax, eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
jmp 0x1020b48
mov edi, dword [ebp - 0x4c]
mov eax, edi
or eax, dword [ebp - 0x48]
je 0x1020d2a
cmp esi, dword [ebp - 0x48]
jl 0x1020b62
jg 0x1020b5f
cmp dword [ebp - 0x10], edi
jbe 0x1020b62
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x28]
or eax, dword [ebp - 0x24]
je 0x1020ba6
push esi
push 0xa00000
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0102af20
cmp eax, esi
jne 0x1020ba6
cmp edx, esi
jne 0x1020ba6
push esi
push esi
push esi
push 0x948e
push dword [ebp + 8]
call fcn.01014c32
cmp eax, 0xffffffff
jne 0x1020ba6
push 0x4d3
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], esi
cmp dword [ebp - 4], esi
je 0x1020d1e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x94], esi
push dword [ebp - 0x20]
mov dword [ebp - 0x90], esi
push dword [ebp + 0x10]
call fcn.0101fbee
test eax, eax
je 0x1020d1e
mov eax, dword [ebp - 0x10]
xor ebx, ebx
sub edi, eax
sbb dword [ebp - 0x48], esi
add dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], eax
adc dword [ebp - 0x24], esi
mov dword [ebp - 0x4c], edi
cmp eax, esi
jbe 0x1020cbe
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x34]
lea eax, [eax + ecx*8]
mov dword [ebp - 0x54], eax
mov edi, 0x8000
cmp dword [ebp - 4], edi
jae 0x1020c2d
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x14]
push edi
add eax, ebx
push eax
mov eax, dword [ebp - 0x20]
push edi
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
mov dword [ebp - 0x74], esi
call dword [eax + 0x10]
test eax, eax
jne 0x1020c6b
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
add ecx, eax
mov eax, dword [ebp - 0x14]
push edi
push ecx
add eax, ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x74], edi
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x2c], edi
add ebx, eax
add dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x4c]
adc dword [ebp - 0x40], esi
sub dword [ebp - 4], edi
or eax, dword [ebp - 0x48]
jne 0x1020c89
cmp dword [ebp - 4], esi
je 0x1020cbe
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x40]
sbb ecx, dword [ebp - 0x7c]
cmp dword [ebp - 0x50], 4
jne 0x1020ca6
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
mov dword [ecx + edx*4], eax
jmp 0x1020cae
mov edx, dword [ebp - 0x54]
mov dword [edx], eax
mov dword [edx + 4], ecx
inc dword [ebp - 0x34]
add dword [ebp - 0x54], 8
cmp dword [ebp - 4], esi
ja 0x1020c20
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x60], ecx
add ecx, ebx
mov dword [ebp - 0x5c], eax
adc eax, esi
cmp eax, dword [ebp - 0x18]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
jg 0x1020d12
jl 0x1020cec
cmp ecx, dword [ebp - 0x1c]
ja 0x1020d12
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp - 0x14]
push dword [ebp + 0x14]
call fcn.0101fbcd
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x1020b45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1020d7f
mov dword [ebp - 8], 0xdf
mov dword [ebp - 4], esi
jmp 0x1020d7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
cmp dword [ebp - 4], esi
je 0x1020d7f
cmp dword [ebp - 0xc], esi
je 0x1020d68
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x68], esi
push dword [ebp - 0xc]
mov dword [ebp - 0x64], esi
push dword [ebp + 0x14]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
call fcn.0101fbcd
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x1020d6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], esi
je 0x1020d7f
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x1020d7f
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 4], ecx
cmp dword [ebp - 0xc], esi
je 0x1020da0
lea eax, [ebp - 0x494]
cmp dword [ebp - 0xc], eax
je 0x1020da0
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 8], esi
je 0x1020dae
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14