Function at 0x438ca0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push esi
mov dword [ebp - 0x74], ecx
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
mov dword [ebp - 4], 0
xor ecx, ecx
jne 0x438cbd
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x438cf0
call fcn.004021a3
mov dword [ebp - 8], eax
jmp 0x438d01
xor eax, eax
jne 0x438cf0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jge 0x438d0c
jmp 0x438e87
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
xor edx, edx
jne 0x438d1a
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0xffffffff
jne 0x438d4b
call fcn.004021a3
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jge 0x438d4b
mov edx, dword [ebp - 0x44]
mov dword [ebp - 8], edx
jmp 0x438d5e
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jge 0x438d69
jmp 0x438e87
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp + 0x10]
jb 0x438d9f
ja 0x438d7b
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0xc]
jbe 0x438d9f
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
adc edx, dword [ebp + 0x18]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x78]
ja 0x438dab
jb 0x438d9f
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x7c]
jae 0x438dab
mov dword [ebp - 8], 0x80070057
jmp 0x438e87
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 4]
mov dword [ebp - 0x48], edx
push 4
push 2
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.00421e50
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x438df1
lea ecx, [ebp - 0x28]
call fcn.00421f70
jmp 0x438e87
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x60], 0xffffffff
mov eax, dword [ebp - 0x58]
xor ecx, ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
sub edx, 1
mov esi, dword [ebp - 0x68]
sbb esi, 0
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], ecx
mov eax, dword [ebp - 0x84]
or eax, dword [ebp - 0x80]
je 0x438e6c
mov ecx, dword [ebp - 0x60]
shr ecx, 8
mov edx, dword [ebp - 0x60]
and edx, 0xff
mov eax, dword [ebp - 0x64]
movzx eax, byte [eax]
xor edx, eax
mov eax, dword [ebp - 0x74]
xor ecx, dword [eax + edx*4]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
jmp 0x438e15
mov edx, dword [ebp - 0x60]
xor edx, 0xffffffff
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
lea ecx, [ebp - 0x28]
call fcn.00421f70
xor ecx, ecx
jne 0x438d01
mov edx, dword [ebp - 8]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 4], 0
je 0x438eaa
cmp dword [ebp - 4], 0
je 0x438eaa
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x34]
pop esi
mov esp, ebp
pop ebp
ret 0x18