Function at 0x457530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x789ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x867e6c]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
cmp dword [ecx + 0x3c], 0
mov dword [esp + 0x14], ecx
je 0x4577af
cmp byte [ecx + 0x41], 0
je 0x4577af
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4577a2
mov ecx, 0xf
xor eax, eax
mov edi, 0x10
mov byte [esp + 0x40], 0
mov dword [esp + 0x54], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], 8
cmp ecx, edi
jae 0x4575be
lea eax, [esp + 0x40]
mov byte [eax + 8], 0
mov dword [esp + 0x68], 0
jmp 0x4575d5
mov edi, 0x10
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], edi
jae 0x4575e3
lea eax, [esp + 0x40]
lea ecx, [esp + 0x3c]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.004057b0
mov esi, dword [esp + 0x1c]
cmp esi, 0xfffffffc
je 0x457621
test esi, esi
jne 0x457604
call fcn.006441b7
cmp dword [esi + 0x18], edi
jb 0x45760e
mov eax, dword [esi + 4]
jmp 0x457611
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp dword [esp + 0x20], edx
jb 0x457621
call fcn.006441b7
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], edi
jae 0x457633
lea eax, [esp + 0x40]
lea ecx, [esp + 0x3c]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.004057b0
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cmp esi, 0xfffffffc
je 0x457674
test esi, esi
jne 0x457658
call fcn.006441b7
cmp dword [esi + 0x18], 0x10
jb 0x457663
mov eax, dword [esi + 4]
jmp 0x457666
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp edi, edx
jb 0x457674
call fcn.006441b7
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
add eax, ebx
push eax
push edi
lea eax, [esi + 0x44]
push eax
call edx
sub eax, 0
je 0x4576af
sub eax, 1
je 0x4576b3
sub eax, 2
lea ecx, [esp + 0x3c]
jne 0x45779d
jmp 0x4577aa
mov byte [esi + 0x41], 0
mov eax, dword [esp + 0x40]
mov edi, 0x10
cmp dword [esp + 0x54], edi
jae 0x4576c6
lea eax, [esp + 0x40]
lea ecx, [esp + 0x3c]
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.004057b0
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
cmp esi, 0xfffffffc
je 0x457706
test esi, esi
jne 0x4576eb
call fcn.006441b7
cmp dword [esi + 0x18], edi
jb 0x4576f5
mov eax, dword [esi + 4]
jmp 0x4576f8
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x457706
call fcn.006441b7
mov edi, dword [esp + 0x18]
sub edi, ebx
je 0x457776
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x45771d
lea eax, [esp + 0x40]
lea ecx, [esp + 0x3c]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.004057b0
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
cmp esi, 0xfffffffc
je 0x45775e
test esi, esi
jne 0x457742
call fcn.006441b7
cmp dword [esi + 0x18], 0x10
jb 0x45774d
mov eax, dword [esi + 4]
jmp 0x457750
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x45775e
call fcn.006441b7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
push edi
push 1
push ebx
call fcn.00644ce0
add esp, 0x10
cmp edi, eax
jne 0x457799
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x41], 0
je 0x4577a6
test edi, edi
jne 0x4575d0
push edi
push 8
lea ecx, [esp + 0x44]
call fcn.0043adb0
jmp 0x4575d0
lea ecx, [esp + 0x3c]
call fcn.004012f0
xor al, al
jmp 0x4577b1
lea ecx, [esp + 0x3c]
call fcn.004012f0
mov al, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00643db8
mov esp, ebp
pop ebp
ret