Function at 0x440440
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x440449
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x44046a
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x440475
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x4406c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
push 0
push 0x1f4
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x328]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp byte [ebp + 8], 0
je 0x4404d1
push 0
push 0x1f4
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x330]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp byte [ebp + 0xc], 0
je 0x440516
push 0
push 0x1f4
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x338]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0
push 0x64
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x340]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
jmp 0x440536
push 0
push 0x1388
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x338]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00405edc
push eax
mov eax, dword [ebp + 0x18]
mov ecx, 1
mov edx, dword [0x4087ac]
call fcn.00406098
add esp, 4
mov eax, dword [ebp - 0xc]
call fcn.00405edc
push eax
mov eax, dword [ebp + 0x14]
mov ecx, 1
mov edx, dword [0x408754]
call fcn.00406098
add esp, 4
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
call fcn.00405ee4
mov esi, eax
test esi, esi
jl 0x44065c
inc esi
xor ebx, ebx
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4405c6
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ebx*4]
call fcn.004050f8
push eax
call sub.kernel32.dll_CreateFileW
mov edx, dword [ebp + 0x18]
mov edx, dword [edx]
mov dword [edx + ebx*4], eax
jmp 0x4405f9
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + ebx*4]
call fcn.00404a20
mov eax, dword [ebp - 0x24]
call fcn.00404c58
push eax
call sub.kernel32.dll_CreateFileA_1
mov edx, dword [ebp + 0x18]
mov edx, dword [edx]
mov dword [edx + ebx*4], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edi, dword [eax + ebx*4]
cmp edi, 0xffffffff
je 0x440648
mov eax, dword [ebp + 0x10]
inc dword [eax]
push 0
mov eax, dword [ebp + 0x18]
push edi
call sub.kernel32.dll_GetFileSize_1
mov edx, dword [ebp + 0x14]
mov edx, dword [edx]
mov dword [edx + ebx*4], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
shr eax, 4
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x350]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
jmp 0x440654
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [eax + ebx*4], 0xffffffff
inc ebx
dec esi
jne 0x440590
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jg 0x44066e
cmp dword [ebp - 0xc], 0
je 0x44066e
xor ebx, ebx
jmp 0x440670
mov bl, 1
push 0
push 0x3e8
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x358]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4406cf
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00404f5c
lea eax, [ebp - 0x24]
call fcn.00404788
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.00404f5c
ret