Function at 0x10044d84
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x4a4], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x45c], eax
mov esi, ebx
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x4b0], eax
mov eax, ebx
push 0x400
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x46c], eax
lea eax, [ebp - 0x408]
mov dword [ebp - 0x444], ecx
mov ecx, ebx
push ebx
push eax
mov dword [ebp - 0x4ac], edx
mov dword [ebp - 0x44c], ebx
mov dword [ebp - 0x458], ebx
mov dword [ebp - 0x49c], ebx
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x468], 4
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x420], ebx
lea edi, [ebp - 0x4c4]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x480]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, dword [ebp - 0x444]
mov dword [ebp - 0x4a0], eax
mov dword [ebp - 0x454], eax
test edi, edi
je 0x1004548b
mov eax, dword [ebp - 0x4a4]
cmp eax, 0xffffffff
je 0x1004548b
cmp dword [ebp - 0x45c], 0xffffffff
je 0x1004548b
lea ecx, [ebp - 0x440]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1004548b
mov eax, dword [ebp - 0x440]
or eax, dword [ebp - 0x43c]
je 0x1004548b
xor eax, eax
lea edx, [ebp - 0x4a0]
lea eax, [ebp - 0x454]
mov ecx, edi
push eax
call fcn.10031241
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x428]
push eax
lea edx, [ebp - 0x42c]
call fcn.10031271
test eax, eax
jne 0x10044f0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x42c], ebx
je 0x1004547a
cmp dword [ebp - 0x434], ebx
je 0x1004547a
mov edi, dword [ebp - 0x428]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x450], edi
cmp edi, eax
jb 0x1004547a
cmp dword [ebp - 0x424], eax
jb 0x1004547a
mov ecx, dword [ebp - 0x444]
xor esi, esi
inc esi
call fcn.10030d9c
cmp eax, esi
je 0x10044f67
mov ecx, dword [ebp - 0x444]
call fcn.10030d9c
cmp eax, 7
jne 0x10044f74
mov eax, dword [ebp + 0x10]
mov edi, eax
mov dword [ebp - 0x450], edi
jmp 0x10044f77
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x43c]
mov ecx, eax
mov eax, dword [ebp - 0x440]
add ecx, eax
push 0
mov dword [ebp - 0x418], eax
pop eax
push 0
adc eax, edx
mov dword [ebp - 0x41c], edx
pop edx
push edx
push dword [ebp + 0x10]
sub ecx, 1
sbb eax, edx
push eax
push ecx
call fcn.10084b70
mov edx, dword [ebp - 0x41c]
lea ecx, [eax - 1]
test edx, edx
je 0x10044fc3
push 8
pop eax
mov dword [ebp - 0x468], eax
jmp 0x10044fc9
mov eax, dword [ebp - 0x468]
test ecx, ecx
je 0x100450c2
mul ecx
xor ebx, ebx
mov dword [ebp - 0x458], eax
mov esi, ebx
cmp edx, ebx
ja 0x100450b8
jb 0x10044ff0
cmp eax, 0xffffffff
ja 0x100450b8
cmp eax, ecx
jbe 0x1004547a
cmp eax, 0x400
ja 0x10045007
lea ebx, [ebp - 0x408]
jmp 0x10045026
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x1004547a
mov eax, dword [ebp - 0x458]
xor ecx, ecx
mov edx, ebx
mov dword [ebp - 0x480], ecx
mov dword [ebp - 0x47c], ecx
mov dword [ebp - 0x478], ecx
mov dword [ebp - 0x474], ecx
mov ecx, dword [ebp - 0x454]
mov dword [ebp - 0x470], ecx
lea ecx, [ebp - 0x480]
push 1
push ecx
mov ecx, dword [ebp - 0x45c]
push eax
call fcn.10028fbd
test eax, eax
je 0x1004545b
mov ecx, dword [ebp - 0x458]
xor eax, eax
mov edx, eax
mov dword [ebp - 0x49c], ecx
mov eax, ecx
xor esi, esi
mov dword [ebp - 0x460], eax
inc esi
mov eax, edx
mov dword [ebp - 0x464], eax
mov eax, ecx
mov ecx, edx
mov dword [ebp - 0x46c], eax
mov edx, dword [ebp - 0x43c]
mov dword [ebp - 0x448], ecx
mov ecx, dword [ebp - 0x440]
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x418], ecx
jmp 0x100450c8
mov eax, 0x216
jmp 0x10045484
mov ecx, dword [ebp - 0x418]
mov eax, ecx
or eax, edx
je 0x100454b4
xor eax, eax
cmp eax, edx
jl 0x100450e6
jg 0x100450de
cmp edi, ecx
jbe 0x100450e6
mov edi, ecx
mov dword [ebp - 0x450], edi
mov ecx, dword [ebp - 0x410]
mov eax, ecx
mov edx, dword [ebp - 0x40c]
or eax, edx
je 0x10045144
xor eax, eax
push eax
push 0xa00000
push edx
push ecx
call fcn.10084c60
xor ecx, ecx
cmp eax, ecx
jne 0x10045138
cmp edx, ecx
jne 0x10045138
push ecx
push ecx
push ecx
mov ecx, dword [ebp - 0x444]
mov edx, 0x948e
call fcn.1002894a
cmp eax, 0xffffffff
jne 0x10045138
push 0x4d3
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esi, eax
mov edx, dword [ebp - 0x40c]
mov ecx, dword [ebp - 0x410]
test esi, esi
je 0x100454b0
mov eax, dword [ebp - 0x4a0]
xor esi, esi
mov dword [ebp - 0x4b4], eax
lea eax, [ebp - 0x4c4]
push esi
push eax
mov dword [ebp - 0x4bc], ecx
mov ecx, dword [ebp - 0x4a4]
mov dword [ebp - 0x4b8], edx
mov edx, dword [ebp - 0x42c]
push edi
mov dword [ebp - 0x4c4], esi
mov dword [ebp - 0x4c0], esi
call fcn.10028fbd
test eax, eax
je 0x1004544f
sub dword [ebp - 0x418], edi
mov eax, esi
mov edx, edi
mov dword [ebp - 0x430], eax
sbb dword [ebp - 0x41c], esi
mov ecx, esi
add dword [ebp - 0x410], edi
mov dword [ebp - 0x414], esi
adc dword [ebp - 0x40c], esi
mov dword [ebp - 0x498], edx
test edi, edi
je 0x100453c3
mov esi, dword [ebp - 0x44c]
lea esi, [ebx + esi*8]
mov dword [ebp - 0x428], esi
mov esi, dword [ebp + 0x10]
mov edi, edx
cmp edx, esi
jb 0x100451e6
mov edi, esi
xor edx, edx
mov dword [ebp - 0x494], edx
cmp dword [ebp + 0x18], edx
je 0x100452b9
mov esi, eax
mov ecx, edi
xor eax, eax
sub esi, dword [ebp - 0x450]
sbb eax, edx
add esi, dword [ebp - 0x410]
adc eax, dword [ebp - 0x40c]
add ecx, esi
mov dword [ebp - 0x4a8], eax
adc edx, eax
mov dword [ebp - 0x484], ecx
and dword [ebp - 0x490], 0
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0x488], edx
jbe 0x100452b3
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx]
mov dword [ebp - 0x424], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x48c], ecx
cmp eax, ecx
jb 0x10045262
ja 0x10045256
cmp esi, dword [ebp - 0x424]
jbe 0x10045262
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x48c], eax
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 8]
cmp dword [ebp - 0x488], eax
ja 0x10045286
jb 0x1004527a
cmp dword [ebp - 0x484], ecx
jae 0x10045286
mov ecx, dword [ebp - 0x484]
mov eax, dword [ebp - 0x488]
cmp dword [ebp - 0x48c], eax
jb 0x100452f0
ja 0x10045298
cmp dword [ebp - 0x424], ecx
jb 0x100452f0
mov eax, dword [ebp - 0x490]
add edx, 0x10
inc eax
cmp eax, dword [ebp + 0x18]
mov dword [ebp - 0x490], eax
mov eax, dword [ebp - 0x4a8]
jb 0x10045237
mov ecx, dword [ebp - 0x414]
lea eax, [ebp - 0x494]
push eax
mov eax, dword [ebp - 0x434]
add eax, ecx
push edi
push eax
mov eax, dword [ebp - 0x430]
add eax, dword [ebp - 0x42c]
push edi
push eax
mov eax, dword [ebp - 0x4ac]
push eax
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x10087410]
call esi
test eax, eax
jne 0x10045317
mov eax, dword [ebp - 0x430]
add eax, dword [ebp - 0x42c]
push edi
push eax
mov eax, dword [ebp - 0x414]
add eax, dword [ebp - 0x434]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, edi
jmp 0x1004531d
mov eax, dword [ebp - 0x494]
mov ecx, dword [ebp - 0x414]
mov esi, dword [ebp - 0x46c]
add ecx, eax
add dword [ebp - 0x430], edi
add esi, eax
mov edx, dword [ebp - 0x498]
push 0
pop eax
adc dword [ebp - 0x448], eax
sub edx, edi
mov eax, dword [ebp - 0x418]
or eax, dword [ebp - 0x41c]
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x46c], esi
mov dword [ebp - 0x498], edx
jne 0x10045368
test edx, edx
je 0x100453af
mov ecx, dword [ebp - 0x448]
mov eax, esi
sub eax, dword [ebp - 0x49c]
mov esi, dword [ebp - 0x428]
sbb ecx, 0
cmp dword [ebp - 0x468], 4
jne 0x10045393
mov ecx, dword [ebp - 0x44c]
mov dword [ebx + ecx*4], eax
jmp 0x10045398
mov dword [esi], eax
mov dword [esi + 4], ecx
inc dword [ebp - 0x44c]
add esi, 8
mov ecx, dword [ebp - 0x414]
test edx, edx
mov dword [ebp - 0x428], esi
mov eax, dword [ebp - 0x430]
jne 0x100451db
mov edi, dword [ebp - 0x450]
xor esi, esi
mov eax, dword [ebp - 0x460]
mov edx, dword [ebp - 0x464]
mov dword [ebp - 0x478], eax
add eax, ecx
mov dword [ebp - 0x474], edx
adc edx, 0
mov dword [ebp - 0x480], esi
mov dword [ebp - 0x47c], esi
mov esi, dword [ebp - 0x454]
mov dword [ebp - 0x470], esi
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x464], edx
cmp edx, dword [ebp - 0x43c]
jg 0x100454a0
jl 0x1004541e
cmp eax, dword [ebp - 0x440]
ja 0x100454a0
mov edx, dword [ebp - 0x434]
lea eax, [ebp - 0x480]
push 1
push eax
push ecx
mov ecx, dword [ebp - 0x45c]
call fcn.10028fbd
mov ecx, dword [ebp - 0x418]
mov esi, eax
mov edx, dword [ebp - 0x41c]
test esi, esi
jne 0x100450c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x420], eax
xor edi, edi
test ebx, ebx
je 0x1004547a
lea eax, [ebp - 0x408]
cmp ebx, eax
je 0x1004547a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x1004548b
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret 0x20
xor edi, edi
mov dword [ebp - 0x420], 0xdf
mov esi, edi
jmp 0x1004545d
xor esi, esi
jmp 0x1004544f
test esi, esi
je 0x1004545b
xor edi, edi
test ebx, ebx
je 0x10045510
mov eax, dword [ebp - 0x454]
mov edx, ebx
mov ecx, dword [ebp - 0x45c]
mov dword [ebp - 0x470], eax
lea eax, [ebp - 0x480]
push 1
push eax
push dword [ebp - 0x458]
mov dword [ebp - 0x480], edi
mov dword [ebp - 0x47c], edi
mov dword [ebp - 0x478], edi
mov dword [ebp - 0x474], edi
call fcn.10028fbd
mov esi, eax
test esi, esi
jne 0x10045518
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x420], eax
test esi, esi
je 0x1004545d
mov ecx, dword [ebp - 0x4b0]
test ecx, ecx
je 0x1004545d
mov eax, dword [ebp - 0x460]
mov dword [ecx], eax
mov eax, dword [ebp - 0x464]
mov dword [ecx + 4], eax
jmp 0x1004545d