Function at 0x4580f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
xor eax, eax
xor edi, edi
push 0x1000
push edi
push 0x9110f0
mov dword [esp + 0x2c], edi
xor esi, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov byte [esp + 0x48], al
call fcn.00487bc0
push 0xc00c
push edi
push 0x9050e0
call fcn.00487bc0
mov ecx, dword [esp + 0x5c]
add esp, 0x18
xor eax, eax
lea ebx, [edi + 1]
sub ecx, 0x9110f1
cmp esi, dword [esp + 0x4c]
jge 0x458163
mov dl, byte [ecx + eax + 0x9110f1]
mov byte [eax + 0x9110f1], dl
add eax, ebx
add esi, ebx
cmp eax, 0x11
jl 0x458147
mov ecx, eax
xor ebp, ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
mov dword [0x9110e8], ebx
mov dword [0x9050ec], 0x1000
mov dword [0x9050f4], edi
mov dword [0x9050f0], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov byte [esp + 0x13], bl
test eax, eax
je 0x458353
nop
cmp edi, ecx
jle 0x4581aa
mov dword [esp + 0x1c], ecx
mov edi, ecx
cmp edi, 1
jg 0x4581c9
mov al, byte [esp + 0x13]
or byte [esp + 0x2c], al
mov dl, byte [ebx + 0x9110f0]
mov byte [esp + ebp + 0x2d], dl
mov esi, 1
inc ebp
jmp 0x4581ea
mov eax, dword [esp + 0x24]
shl eax, 4
lea edx, [edi - 2]
or eax, edx
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esp + ebp + 0x2d], dl
mov byte [esp + ebp + 0x2e], al
mov esi, edi
add ebp, 2
shl byte [esp + 0x13], 1
jne 0x458235
mov eax, dword [esp + 0x48]
push eax
lea ecx, [ebp + 1]
push ecx
lea edx, [esp + 0x34]
push 1
push edx
call fcn.00484db4
mov eax, dword [esp + 0x30]
lea ecx, [eax + ebp + 1]
add esp, 0x10
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x13], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov byte [esp + 0x3c], al
test esi, esi
jle 0x45834b
mov dword [esp + 0x28], esi
lea edi, [ebx + 0x11]
and edi, 0xfff
lea eax, [edi + edi*2]
add eax, eax
mov ecx, dword [eax + eax + 0x9050e0]
add eax, eax
test ecx, ecx
je 0x4582fb
mov edx, dword [eax + 0x9050e8]
test edx, edx
jne 0x458272
mov edx, dword [eax + 0x9050e4]
jmp 0x45827c
mov esi, dword [eax + 0x9050e4]
test esi, esi
jne 0x4582bf
lea esi, [edx + edx*2]
mov dword [esi*4 + 0x9050e0], ecx
mov ecx, dword [eax + 0x9050e0]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add ecx, ecx
cmp dword [ecx + 0x9050e8], edi
jne 0x4582ad
mov dword [ecx + 0x9050e8], edx
mov dword [eax + 0x9050e0], 0
jmp 0x4582fb
mov dword [ecx + 0x9050e4], edx
mov dword [eax + 0x9050e0], 0
jmp 0x4582fb
lea eax, [esi + esi*2]
cmp dword [eax*4 + 0x9050e8], 0
lea eax, [eax*4 + 0x9050e8]
je 0x4582e9
mov esi, dword [eax]
lea eax, [esi + esi*2]
cmp dword [eax*4 + 0x9050e8], 0
lea eax, [eax*4 + 0x9050e8]
jne 0x4582d3
push esi
call fcn.00458390
add esp, 4
mov edx, esi
mov eax, edi
call fcn.00458510
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x4c]
jge 0x45837e
mov edx, dword [esp + 0x44]
mov al, byte [ecx + edx]
inc ecx
mov dword [esp + 0x18], ecx
mov byte [edi + 0x9110f0], al
inc ebx
and ebx, 0xfff
cmp dword [esp + 0x14], 0
je 0x458338
lea eax, [esp + 0x24]
push eax
mov edx, ebx
call fcn.004583f0
add esp, 4
mov dword [esp + 0x1c], eax
sub dword [esp + 0x28], 1
jne 0x458241
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x4581a0
mov ecx, dword [esp + 0x48]
push ecx
add ebp, 2
lea edx, [ebp + 1]
push edx
lea eax, [esp + 0x34]
push 1
push eax
call fcn.00484db4
mov ecx, dword [esp + 0x30]
add esp, 0x10
pop edi
pop esi
lea eax, [ecx + ebp + 1]
pop ebp
pop ebx
add esp, 0x30
ret
dec dword [esp + 0x14]
jmp 0x458317