Function at 0x4544a0
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.00459150
xor ebx, ebx
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x45451a
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 0x4544df
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.00462890
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
cmp edi, ebx
jne 0x454524
mov esi, dword [esp + 0x1c]
mov edx, dword [esi + 8]
push edx
call fcn.0045f200
add esp, 4
push esi
call fcn.0045f200
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.00471250
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 0x454635
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 0x45460e
mov edx, edi
mov esi, 8
mov eax, edx
mov ecx, 8
jmp 0x4545f0
mov byte [eax - 2], bl
mov byte [eax - 1], bl
mov byte [eax], bl
add eax, 3
sub ecx, 1
jne 0x4545f0
add edx, dword [esp + 0x10]
sub esi, 1
jne 0x4545e4
mov ecx, 1
add dword [esp + 0x14], ecx
add edi, 0x18
sub dword [esp + 0x20], ecx
jne 0x4545d4
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 0x4545d0
mov ebx, dword [esp + 0x8c]
lea eax, [esp + 0x40]
push eax
call fcn.00454130
mov edi, 8
add esp, 4
cmp dword [eax + 0x1c], edi
jb 0x454658
mov eax, dword [eax + 8]
jmp 0x45465b
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 0x454689
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0045f220
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 0x4546f2
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 0x4546f6
mov ebp, dword [esp + 0x2c]
lea eax, [ebp + 0x28]
push eax
call fcn.0046f1f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x45473b
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.0046ee00
add esp, 0xc
mov eax, ebx
call fcn.00454770
push ebx
mov esi, eax
call fcn.0045f220
add esp, 4
jmp 0x45473f
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
push eax
call fcn.0045f200
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 8]
add esp, 4
push ecx
call fcn.0045f200
add esp, 4
push edi
call fcn.0045f200
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret