Function at 0x433810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
push edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x433ac7
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp + 0x10]
lea ecx, [eax + edx + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
add edx, 0x14
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 2]
test ecx, ecx
jle 0x433ac7
mov dword [ebp - 0x14], 0
jmp 0x433872
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 2]
cmp dword [ebp - 0x14], ecx
jge 0x433ac7
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
add eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x28
lea esi, [eax + ecx + 0xf8]
mov ecx, 0xa
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
push 8
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00435db0
add esp, 0xc
mov byte [ebp - 0x40], 0
push str..rsrc
lea ecx, [ebp - 0x48]
push ecx
call fcn.00436a70
add esp, 8
test eax, eax
jne 0x433ac2
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
add eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x28
lea edx, [eax + ecx + 0xf8]
mov dword [ebp - 0x5c], edx
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
call dword [edx + 8]
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x7c]
add eax, dword [ebp - 0x6c]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x54]
xor edx, edx
div dword [ecx + 0x24]
test edx, edx
jne 0x433928
mov dword [ebp - 0x94], 0
jmp 0x433941
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x54]
xor edx, edx
div dword [ecx + 0x24]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x24]
sub ecx, edx
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x20]
lea eax, [ecx + eax - 1]
mov ecx, dword [ebp - 0xc]
xor edx, edx
div dword [ecx + 0x20]
mov edx, dword [ebp - 0xc]
imul eax, dword [edx + 0x20]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp - 0x54]
lea eax, [edx + ecx - 1]
mov ecx, dword [ebp - 0xc]
xor edx, edx
div dword [ecx + 0x20]
mov edx, dword [ebp - 0xc]
imul eax, dword [edx + 0x20]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x60]
sub edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0xc]
add edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x38], edx
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 8]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x54]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0x10], edx
push 0
lea ecx, [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x50]
push eax
call fcn.004355c1
add esp, 4
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0
je 0x433aa7
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x58]
add ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x88], ecx
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
call dword [eax + 0xc]
cmp dword [ebp - 0x50], 0
je 0x433a74
mov ecx, dword [ebp - 0x50]
push ecx
push 0
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x54]
push edx
call fcn.00435620
add esp, 0xc
push 0
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x54]
add ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
push edx
call fcn.004355bc
add esp, 4
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x70]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x68]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x74]
mov dword [ecx + 0x38], edx
jmp 0x433869
pop edi
pop esi
mov esp, ebp
pop ebp
ret