Function at 0x533650
Capabilities:
Parse pe header
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x1024
call fcn.0057e5f0
mov ecx, 0x400
mov edx, 0x14c
mov ebx, 4
mov esi, 1
sub esp, eax
lea edi, [ebp - 0x100c]
mov eax, dword [esp + eax]
mov dword [ebp - 0x1014], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, 0x5a4d
mov ecx, 0x10b
mov edi, 4
mov word [ebp - 0x100c], ax
mov eax, 3
mov dword [ebp - 0xfd0], 0x40
mov dword [ebp - 0xfcc], 0x4550
mov word [ebp - 0xfc8], dx
mov dword [ebp - 0xfb8], 0x200200e0
mov word [ebp - 0xfb4], cx
mov byte [ebp - 0xfb2], 1
mov dword [ebp - 0xfa0], 0x10
mov dword [ebp - 0xf98], 0x10000000
mov word [ebp - 0xf84], di
mov dword [ebp - 0xf78], 0x188
mov dword [ebp - 0xf7c], 0x1000
mov word [ebp - 0xf70], ax
mov dword [ebp - 0xf94], 0x1000
mov dword [ebp - 0xf90], 0x1000
mov dword [ebp - 0xf58], 3
mov dword [ebp - 0xf44], 0x3000
mov dword [ebp - 0xf40], 0x1000
mov word [ebp - 0xf8c], bx
xor ebx, ebx
mov word [ebp - 0xf88], si
xor esi, esi
mov eax, dword [ebp - 0x1014]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x5337dd
movzx edx, word [ebp - 0xfc6]
mov edi, dword [eax + 0xc]
add edi, dword [eax + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x1018], edi
lea edx, [edx + edx*4]
mov edi, dword [eax]
lea edx, [ebp + edx*8 - 0xed4]
add ecx, dword [eax + 0x10]
mov dword [edx], edi
mov edi, dword [eax + 4]
mov dword [edx + 4], edi
mov edi, dword [eax + 8]
mov dword [edx + 8], edi
mov edi, dword [eax + 0xc]
mov dword [edx + 0xc], edi
mov edi, dword [eax + 0x10]
mov dword [edx + 0x10], edi
mov edi, dword [eax + 0x14]
mov dword [edx + 0x14], edi
mov edi, dword [eax + 0x18]
mov dword [edx + 0x18], edi
mov edi, dword [eax + 0x1c]
mov dword [edx + 0x1c], edi
mov edi, dword [eax + 0x20]
mov dword [edx + 0x20], edi
mov eax, dword [eax + 0x24]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x1018]
add word [ebp - 0xfc6], 1
cmp dword [ebp - 0xf7c], eax
jae 0x5337d8
mov dword [ebp - 0xf7c], eax
cmp esi, ecx
cmovb esi, ecx
add ebx, 1
cmp ebx, 3
jne 0x533752
mov dword [esp + 0x18], 0
lea edi, [ebp - 0x100c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], str.test_.exe
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5f4f57
mov dword [eax + 4], 0xe4
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp + 4], str.failed_to_create_file_n
mov dword [esp], eax
call fcn.00533410
lea eax, [ebp - 0x1010]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x100c]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_WriteFile]
mov dword [esp + 8], 0x1000
mov dword [esp], ebx
mov dword [ebp - 0x1014], eax
call eax
mov ecx, 0x400
xor eax, eax
rep stosd dword es:[edi], eax
sub esp, 0x14
cmp esi, 0x1000
jbe 0x5338f6
mov edi, 0x1000
lea esi, [esi]
nop
lea eax, [ebp - 0x1010]
mov ecx, 0x1000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, esi
sub eax, edi
mov dword [esp], ebx
cmp eax, ecx
cmova eax, ecx
add edi, 0x1000
mov dword [esp + 8], eax
lea eax, [ebp - 0x100c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1014]
call eax
sub esp, 0x14
cmp edi, esi
jb 0x5338b0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret