Function at 0x4559e0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
sub esp, 0x78
push ebx
push ebp
push esi
push edi
push eax
call fcn.0045a840
xor ebx, ebx
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x455a5a
mov ebp, dword [eax + 4]
lea eax, [ebp + ebp*2]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x10], eax
test al, 3
je 0x455a1f
shr eax, 2
lea ecx, [eax*4 + 4]
mov dword [esp + 0x10], ecx
mov eax, ecx
mov esi, eax
imul esi, ebp
add esi, esi
add esi, esi
add esi, esi
push esi
mov dword [esp + 0x30], esi
call fcn.00463fb0
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
cmp edi, ebx
jne 0x455a64
mov esi, dword [esp + 0x1c]
mov edx, dword [esi + 8]
push edx
call fcn.00460920
add esp, 4
push esi
call fcn.00460920
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
push esi
push 0xff
push edi
call fcn.004728d0
xor ecx, ecx
mov word [esp + 0x42], cx
mov ecx, ebp
neg ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
xor edx, edx
mov eax, 0x4d42
mov word [esp + 0x3c], ax
mov dword [esp + 0x74], ecx
mov word [esp + 0x44], dx
lea eax, [ebp*8]
mov ecx, 1
mov edx, ecx
mov dword [esp + 0x70], eax
mov eax, 0x18
mov word [esp + 0x78], dx
mov edx, dword [esp + 0x28]
add esi, 0x36
mov word [esp + 0x7a], ax
mov eax, dword [edx + 8]
add esp, 0xc
mov dword [esp + 0x32], esi
mov dword [esp + 0x3a], 0x36
mov dword [esp + 0x60], 0x28
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x14], eax
cmp ebp, ebx
jbe 0x455b75
add edi, 2
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebp
lea esp, [esp]
mov dword [esp + 0x20], ebp
mov edx, dword [esp + 0x14]
test byte [edx], 1
je 0x455b4e
mov edx, edi
mov esi, 8
mov eax, edx
mov ecx, 8
jmp 0x455b30
mov byte [eax - 2], bl
mov byte [eax - 1], bl
mov byte [eax], bl
add eax, 3
sub ecx, 1
jne 0x455b30
add edx, dword [esp + 0x10]
sub esi, 1
jne 0x455b24
mov ecx, 1
add dword [esp + 0x14], ecx
add edi, 0x18
sub dword [esp + 0x20], ecx
jne 0x455b14
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
add eax, eax
add eax, eax
add eax, eax
add edi, eax
sub dword [esp + 0x28], ecx
mov dword [esp + 0x24], edi
jne 0x455b10
mov ebx, dword [esp + 0x8c]
lea eax, [esp + 0x40]
push eax
call fcn.00455670
mov edi, 8
add esp, 4
cmp dword [eax + 0x1c], edi
jb 0x455b98
mov eax, dword [eax + 8]
jmp 0x455b9b
add eax, 8
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp dword [esp + 0x5c], edi
jb 0x455bc9
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00460940
add esp, 4
xor edx, edx
lea ecx, [esp + 0x40]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], dx
call fcn.00401050
test esi, esi
je 0x455c32
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x2c]
push eax
push 0xe
lea ecx, [esp + 0x3c]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x2c]
push edx
push 0x28
lea eax, [esp + 0x6c]
push eax
push esi
call edi
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x2c]
push ecx
push ebp
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x455c36
mov ebp, dword [esp + 0x2c]
lea eax, [ebp + 0x28]
push eax
call fcn.00470880
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x455c7b
mov ecx, 0xa
lea esi, [esp + 0x60]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
push ebp
push ecx
lea edx, [ebx + 0x28]
push edx
call fcn.00470490
add esp, 0xc
mov eax, ebx
call fcn.00455cb0
push ebx
mov esi, eax
call fcn.00460940
add esp, 4
jmp 0x455c7f
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
push eax
call fcn.00460920
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 8]
add esp, 4
push ecx
call fcn.00460920
add esp, 4
push edi
call fcn.00460920
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret