Function at 0x4078a0
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x4416c4]
sub esp, 0x200
cmp eax, 0xffffffff
push ebx
push ebp
push esi
push edi
jne 0x4078dd
push 0x1003
push 0x7d00
call fcn.0042ab70
xor ebx, ebx
mov dword [0x4416c4], eax
cmp eax, ebx
jge 0x4078df
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret 8
xor ebx, ebx
push eax
push ebx
push 4
push 0x49
call fcn.0042b130
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x214]
cmp eax, ebx
je 0x407bc5
mov esi, dword [esp + 0x218]
cmp esi, ebx
je 0x407bc5
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x80]
push esi
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
call edi
lea ecx, [esp + 0x80]
push ecx
call fcn.0042a530
lea edx, [esp + 0x30]
push edx
call fcn.00408040
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
lea eax, [esp + 0x30]
lea ecx, [esp + 0x80]
push eax
push ecx
call ebp
lea edx, [esp + 0x80]
push 0x441634
push edx
call fcn.0042a7e0
test eax, eax
jne 0x4079ab
lea eax, [esp + 0x80]
push esi
push eax
call edi
lea ecx, [esp + 0x80]
push ecx
call fcn.0042a530
lea edx, [esp + 0x80]
push str..dat
push edx
call ebp
lea eax, [esp + 0x80]
push 0x441634
push eax
call fcn.0042a7e0
test eax, eax
je 0x407bc5
lea ecx, [esp + 0x188]
push ebx
lea edx, [esp + 0x84]
push ecx
push edx
call fcn.0042aab0
mov esi, eax
cmp esi, 0xffffffff
je 0x407bc5
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll__lread]
lea ecx, [esp + 0x2c]
push 4
push ecx
push esi
call edi
mov eax, dword [esp + 0x2c]
cmp eax, 0xaabbccdd
je 0x4079ff
cmp eax, 0xaabbccee
je 0x407a06
jmp 0x407bbe
cmp eax, 0xaabbccee
jne 0x407a0e
mov dword [esp + 0x20], 1
lea edx, [esp + 0x14]
push 2
push edx
push esi
call edi
cmp word [esp + 0x14], bx
mov dword [esp + 0x1c], ebx
jbe 0x407bbe
lea eax, [esp + 0x10]
push 1
push eax
push esi
mov dword [esp + 0x1c], 1
call edi
lea edx, [esp + 0x58]
mov ecx, dword [esp + 0x10]
and ecx, 0xffff
push ecx
push edx
push esi
call edi
lea ecx, [esp + 0x16]
push 2
mov eax, dword [esp + 0x14]
push ecx
and eax, 0xffff
push esi
mov byte [esp + eax + 0x64], 0
call edi
cmp word [esp + 0x16], bx
mov dword [esp + 0x24], ebx
jbe 0x407b8c
lea edx, [esp + 0x10]
push 1
push edx
push esi
call edi
lea ecx, [esp + 0x30]
mov eax, dword [esp + 0x10]
and eax, 0xffff
push eax
push ecx
push esi
call edi
mov eax, dword [0x4416c4]
push 0x11
mov edx, dword [esp + 0x14]
push eax
and edx, 0xffff
mov byte [esp + edx + 0x38], 0
call fcn.0042abe0
mov ebp, eax
push 2
lea ecx, [ebp + 6]
push ecx
push esi
call edi
lea ebx, [ebp + 4]
push 2
push ebx
push esi
call edi
mov eax, dword [0x4416c4]
xor edx, edx
mov dx, word [ebx]
add edx, 2
push edx
push eax
call fcn.0042abe0
xor ecx, ecx
mov dword [ebp], eax
mov cx, word [ebx]
push ecx
push eax
push esi
call edi
mov eax, dword [ebp]
xor edx, edx
mov dx, word [ebx]
mov byte [eax + edx], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x407b46
lea ecx, [esp + 0x10]
push 1
push ecx
push esi
call edi
mov eax, dword [esp + 0x10]
test ax, ax
je 0x407b3d
mov edx, dword [0x4416c4]
and eax, 0xffff
inc eax
push eax
push edx
call fcn.0042abe0
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x10]
and ecx, 0xffff
push ecx
push eax
push esi
call edi
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x10]
and edx, 0xffff
mov byte [edx + eax], 0
lea ecx, [ebp + 0xc]
push 2
push ecx
push esi
call edi
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x407b64
mov edx, dword [0x4416c4]
push edx
push 0
push 4
push 0x20
call fcn.0042b130
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
push 1
lea eax, [esp + 0x34]
push ebp
push eax
push ecx
call fcn.0042b2b0
mov eax, dword [esp + 0x24]
inc eax
cmp ax, word [esp + 0x16]
mov dword [esp + 0x24], eax
jb 0x407a73
xor ebx, ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x407baa
push 1
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x60]
push edx
push eax
call fcn.0042b2b0
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x1c]
inc eax
cmp ax, word [esp + 0x14]
mov dword [esp + 0x1c], eax
jb 0x407a27
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret 8