Function at 0x447808
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x447811
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 0x447832
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x44783d
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x447a95
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 0x447899
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 0x4478de
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 0x4478fe
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.00408324
push eax
mov eax, dword [ebp + 0x18]
mov ecx, 1
mov edx, dword [0x40b4a0]
call fcn.004084ec
add esp, 4
mov eax, dword [ebp - 0xc]
call fcn.00408324
push eax
mov eax, dword [ebp + 0x14]
mov ecx, 1
mov edx, dword [0x40b448]
call fcn.004084ec
add esp, 4
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
call fcn.0040832c
mov esi, eax
test esi, esi
jl 0x447a29
inc esi
xor ebx, ebx
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x44798e
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.00406c34
push eax
call sub.kernel32.dll_CreateFileW_1
mov edx, dword [ebp + 0x18]
mov edx, dword [edx]
mov dword [edx + ebx*4], eax
jmp 0x4479c6
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]
mov ecx, 0
call fcn.00406dfc
mov eax, dword [ebp - 0x24]
call fcn.004061f8
push eax
call sub.kernel32.dll_CreateFileA
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 0x447a15
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 0x447a21
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [eax + ebx*4], 0xffffffff
inc ebx
dec esi
jne 0x447958
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jg 0x447a3b
cmp dword [ebp - 0xc], 0
je 0x447a3b
xor ebx, ebx
jmp 0x447a3d
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 0x447a9c
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00406ba0
lea eax, [ebp - 0x24]
call fcn.00405b3c
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.00406ba0
ret