Function at 0x407e10
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x444988]
sub esp, 0x200
cmp eax, 0xffffffff
push ebp
jne 0x407e47
push 0x1003
push 0x7d00
call fcn.0042d340
xor ebp, ebp
mov dword [0x444988], eax
cmp eax, ebp
jge 0x407e49
xor eax, eax
pop ebp
add esp, 0x200
ret 8
xor ebp, ebp
push ebx
push esi
push edi
push eax
push ebp
push 4
push 0x49
call fcn.0042d8f0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x214]
cmp eax, ebp
je 0x408135
mov esi, dword [esp + 0x218]
cmp esi, ebp
je 0x408135
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x80]
push esi
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebp
call edi
lea ecx, [esp + 0x80]
push ecx
call fcn.0042d0e0
lea edx, [esp + 0x30]
push edx
call fcn.0042c280
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
lea edx, [esp + 0x80]
push 0x4448f8
push edx
call fcn.0042c0b0
test eax, eax
jne 0x407f15
lea eax, [esp + 0x80]
push esi
push eax
call edi
lea ecx, [esp + 0x80]
push ecx
call fcn.0042d0e0
lea edx, [esp + 0x80]
push str..dat
push edx
call ebx
lea eax, [esp + 0x80]
push 0x4448f8
push eax
call fcn.0042c0b0
test eax, eax
je 0x408135
lea ecx, [esp + 0x188]
push ebp
lea edx, [esp + 0x84]
push ecx
push edx
call fcn.0042c7c0
mov esi, eax
cmp esi, 0xffffffff
je 0x408135
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 0x407f6f
cmp eax, 0xaabbccee
je 0x407f76
cmp eax, 0xaabbccff
jne 0x40812e
cmp eax, 0xaabbccee
jb 0x407f7e
mov dword [esp + 0x20], 1
lea edx, [esp + 0x14]
push 2
push edx
push esi
call edi
cmp word [esp + 0x14], bp
mov dword [esp + 0x1c], ebp
jbe 0x40812e
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], bp
mov dword [esp + 0x24], ebp
jbe 0x4080fc
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 [0x444988]
push 0x11
mov edx, dword [esp + 0x14]
push eax
and edx, 0xffff
mov byte [esp + edx + 0x38], 0
call fcn.0042d3b0
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 [0x444988]
xor edx, edx
mov dx, word [ebx]
add edx, 2
push edx
push eax
call fcn.0042d3b0
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 [edx + eax], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4080b6
lea ecx, [esp + 0x10]
push 1
push ecx
push esi
call edi
mov eax, dword [esp + 0x10]
test ax, ax
je 0x4080ad
mov edx, dword [0x444988]
and eax, 0xffff
inc eax
push eax
push edx
call fcn.0042d3b0
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 0x4080d4
mov edx, dword [0x444988]
push edx
push 0
push 4
push 0x20
call fcn.0042d8f0
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
push 1
lea eax, [esp + 0x34]
push ebp
push eax
push ecx
call fcn.0042da50
mov eax, dword [esp + 0x24]
inc eax
cmp ax, word [esp + 0x16]
mov dword [esp + 0x24], eax
jb 0x407fe3
xor ebp, ebp
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40811a
push 1
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x60]
push edx
push eax
call fcn.0042da50
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x1c]
inc eax
cmp ax, word [esp + 0x14]
mov dword [esp + 0x1c], eax
jb 0x407f97
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x200
ret 8