Function at 0x457eb0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4beeee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x838
mov edx, dword [esp + 0x848]
push ebx
push ebp
xor ebp, ebp
push esi
cmp edx, ebp
push edi
mov dword [esp + 0x20], ecx
je 0x4580b1
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4580b1
push ebp
push 0x80
push 3
push ebp
push ebp
push SysReAllocString
push edx
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], al
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4580b1
mov eax, dword [esp + 0x860]
mov ecx, dword [esp + 0x85c]
push ebp
push ebp
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x24]
push 2
push eax
push esi
call ebx
cmp dword [esp + 0x14], 2
jne 0x45809f
mov edx, dword [esp + 0x1c]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push eax
and edx, 0xffff
push ecx
lea eax, [esp + 0x50]
push edx
push eax
push esi
call ebx
lea ecx, [esp + 0x48]
push 0
push ecx
call fcn.004032c0
lea edx, [esp + 0x50]
push str._FILEMACRO_
push edx
call fcn.004b3980
add esp, 0x10
test eax, eax
jne 0x457fba
mov dword [esp + 0x18], 1
lea eax, [esp + 0x48]
push str._END_
push eax
call fcn.004b3980
add esp, 8
test eax, eax
je 0x4580a6
mov eax, dword [esp + 0x18]
test eax, eax
je 0x457f4e
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x457f4e
lea ecx, [esp + 0x48]
push 0x3d
push ecx
call fcn.00403240
add esp, 8
cmp eax, 1
jne 0x457f4e
lea edx, [esp + 0x28]
push 0x20
push edx
push 0x3d
lea eax, [esp + 0x54]
push 0
push eax
call fcn.00402750
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x457f4e
lea ecx, [esp + 0x448]
push 0x400
push ecx
push 0x3d
lea edx, [esp + 0x54]
push 1
push edx
call fcn.00402750
lea edi, [esp + 0x45c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x457f4e
mov ax, word [esp + 0x48]
mov cl, byte [esp + 0x4a]
lea edx, [esp + 0x10]
push 0x4dc744
push edx
mov word [esp + 0x18], ax
mov byte [esp + 0x1a], cl
call fcn.004b3980
add esp, 8
test eax, eax
jne 0x457f4e
inc ebp
jmp 0x457f4e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x4580ce
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x848]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x844
ret 0xc
lea eax, [ebp + ebp*4]
lea ecx, [ebp + eax*2]
lea edx, [ecx*4 + 4]
push edx
call fcn.004b099c
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x850], 0
je 0x458115
push fcn.00457d10
push 0x457cf0
lea edi, [eax + 4]
push ebp
push 0x2c
push edi
mov dword [eax], ebp
call fcn.004b1ed6
mov eax, edi
jmp 0x458117
xor eax, eax
mov ecx, dword [esp + 0x20]
push 0
push 0
mov dword [esp + 0x858], 0xffffffff
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x868]
mov dword [ecx + 8], ebp
mov ecx, dword [esp + 0x864]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [esp + 0x14], eax
xor ebp, ebp
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x24]
push 2
push eax
push esi
call ebx
cmp dword [esp + 0x14], 2
jne 0x4582bd
mov edx, dword [esp + 0x1c]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push eax
and edx, 0xffff
push ecx
lea eax, [esp + 0x50]
push edx
push eax
push esi
call ebx
lea ecx, [esp + 0x48]
push 0
push ecx
call fcn.004032c0
lea edx, [esp + 0x50]
push str._FILEMACRO_
push edx
call fcn.004b3980
add esp, 0x10
test eax, eax
jne 0x4581b9
mov dword [esp + 0x18], 1
lea eax, [esp + 0x48]
push str._END_
push eax
call fcn.004b3980
add esp, 8
test eax, eax
je 0x4582c4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45814d
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45814d
lea ecx, [esp + 0x48]
push 0x3d
push ecx
call fcn.00403240
add esp, 8
cmp eax, 1
jne 0x45814d
lea edx, [esp + 0x28]
push 0x20
push edx
push 0x3d
lea eax, [esp + 0x54]
push 0
push eax
call fcn.00402750
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45814d
lea ecx, [esp + 0x448]
push 0x400
push ecx
push 0x3d
lea edx, [esp + 0x54]
push 1
push edx
call fcn.00402750
lea edi, [esp + 0x45c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45814d
mov ax, word [esp + 0x48]
mov cl, byte [esp + 0x4a]
lea edx, [esp + 0x10]
push 0x4dc744
push edx
mov word [esp + 0x18], ax
mov byte [esp + 0x1a], cl
call fcn.004b3980
add esp, 8
test eax, eax
jne 0x45814d
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x448]
lea ecx, [esp + 0x28]
push eax
mov edi, dword [edx + 4]
push ecx
mov ecx, ebp
add ecx, edi
call fcn.00457d70
add ebp, 0x2c
jmp 0x45814d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4580b3