Function at 0x10209ec
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 0x1020e8f
cmp dword [ebp + 0x10], 0xffffffff
je 0x1020e8f
cmp dword [ebp + 0x14], 0xffffffff
je 0x1020e8f
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1020e8f
mov eax, dword [ebp - 0x1c]
or eax, dword [ebp - 0x18]
je 0x1020e8f
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
mov dword [ebp - 4], esi
call fcn.01019c9c
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.01019cd7
test eax, eax
jne 0x1020ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x20], esi
je 0x1020e81
cmp dword [ebp - 0x14], esi
je 0x1020e81
mov edi, 0x8000
cmp dword [ebp - 0x10], edi
jb 0x1020e81
cmp dword [ebp - 0x70], edi
jb 0x1020e81
push ebx
mov dword [ebp - 4], 1
call fcn.0101a2f1
cmp eax, 1
jne 0x1020b1a
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.0102aef0
mov edi, eax
dec edi
cmp dword [ebp - 0x18], esi
je 0x1020b3f
mov dword [ebp - 0x50], 8
cmp edi, esi
je 0x1020c1b
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x50]
mul edi
push edx
push eax
mov dword [ebp - 4], esi
call fcn.01011101
mov ebx, eax
cmp ebx, esi
jge 0x1020b9e
test ebx, 0x10000000
je 0x1020b8b
mov edi, dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push ebx
call edi
cmp eax, 0x13d
jne 0x1020b80
mov dword [ebp - 8], ebx
jmp 0x1020e81
push ebx
call edi
mov dword [ebp - 8], eax
jmp 0x1020e81
mov eax, ebx
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x1020b78
movzx eax, bx
jmp 0x1020b83
mov ebx, dword [ebp - 0x6c]
cmp ebx, edi
jbe 0x1020e81
cmp ebx, 0x400
ja 0x1020bbc
lea eax, [ebp - 0x494]
mov dword [ebp - 0xc], eax
jmp 0x1020bd6
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 0x1020e81
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.0101fcae
test eax, eax
je 0x1020e60
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 0x1020c29
mov edi, dword [ebp - 0x4c]
mov eax, edi
or eax, dword [ebp - 0x48]
je 0x1020e0b
cmp esi, dword [ebp - 0x48]
jl 0x1020c43
jg 0x1020c40
cmp dword [ebp - 0x10], edi
jbe 0x1020c43
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x28]
or eax, dword [ebp - 0x24]
je 0x1020c87
push esi
push 0xa00000
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0102b000
cmp eax, esi
jne 0x1020c87
cmp edx, esi
jne 0x1020c87
push esi
push esi
push esi
push 0x948e
push dword [ebp + 8]
call fcn.01014d12
cmp eax, 0xffffffff
jne 0x1020c87
push 0x4d3
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], esi
cmp dword [ebp - 4], esi
je 0x1020dff
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.0101fccf
test eax, eax
je 0x1020dff
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 0x1020d9f
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 0x1020d0e
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 0x1020d4c
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 0x1020d6a
cmp dword [ebp - 4], esi
je 0x1020d9f
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 0x1020d87
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
mov dword [ecx + edx*4], eax
jmp 0x1020d8f
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 0x1020d01
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 0x1020df3
jl 0x1020dcd
cmp ecx, dword [ebp - 0x1c]
ja 0x1020df3
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp - 0x14]
push dword [ebp + 0x14]
call fcn.0101fcae
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x1020c26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1020e60
mov dword [ebp - 8], 0xdf
mov dword [ebp - 4], esi
jmp 0x1020e60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
cmp dword [ebp - 4], esi
je 0x1020e60
cmp dword [ebp - 0xc], esi
je 0x1020e49
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.0101fcae
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x1020e4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], esi
je 0x1020e60
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x1020e60
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 0x1020e81
lea eax, [ebp - 0x494]
cmp dword [ebp - 0xc], eax
je 0x1020e81
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 0x1020e8f
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