Function at 0x5d5da0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4054
call fcn.00697010
mov eax, dword [0x7dcee0]
xor eax, esp
mov dword [esp + 0x4050], eax
mov eax, dword [esp + 0x4058]
push ebx
push ebp
mov ebp, dword [esp + 0x4064]
xor ebx, ebx
push edi
push ebx
mov edi, edx
mov edx, 8
push ebx
push ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ecx
mov word [esi + 0x20], dx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
call fcn.0060d400
push ebx
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
push 1
push eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
call fcn.005d8cd0
push 0x38
push 0x6e37bc
neg eax
push ebx
sbb eax, eax
add eax, 9
push eax
push 0xfffffffffffffff1
push 8
lea ecx, [esp + 0x54]
push 9
push ecx
call fcn.0060f050
lea edx, [esp + 0x2094]
add esp, 0x38
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 0x2000
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ebx
jmp 0x5d5e64
mov ebp, dword [esp + 0x20]
cmp dword [esp + 0x28], ebx
jne 0x5d5eb8
cmp dword [esp + 0x10], ebx
jne 0x5d5eb8
push 1
push 0x2000
lea eax, [esp + 0x64]
push eax
push ebp
call edi
add esp, 0x10
cmp eax, ebx
jl 0x5d5f55
jle 0x5d5eb0
add dword [esi + 0x18], eax
lea ecx, [esp + 0x5c]
push eax
mov edx, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 8]
push edx
push eax
mov dword [esp + 0x30], ecx
call fcn.0060d400
add esp, 0xc
mov dword [esi + 8], eax
jmp 0x5d5eb8
mov dword [esp + 0x10], 4
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0060d690
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x5d5ed9
cmp ebp, 1
jne 0x5d5fd5
mov eax, dword [esp + 0x34]
cmp eax, 0x2000
je 0x5d5f25
mov edi, 0x2000
sub edi, eax
mov eax, dword [esp + 0x1c]
push eax
push edi
lea ecx, [esp + 0x2064]
push 1
push ecx
call fcn.00697336
add esp, 0x10
cmp eax, edi
jne 0x5d6003
add dword [esi + 0x1c], edi
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x205c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 0x2000
cmp ebp, 1
jne 0x5d5e60
lea eax, [esp + 0x24]
push eax
call fcn.0060de70
add esp, 4
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4050]
xor ecx, esp
call fcn.0069528d
add esp, 0x4054
ret
push 4
push 8
lea ecx, [esp + 0x1c]
push ecx
push ebp
call edi
add esp, 0x10
cmp eax, 8
mov eax, dword [esp + 0xc]
jge 0x5d5f9f
lea edx, [esp + 0x24]
push edx
mov dword [eax + 0xc], 0x14
mov dword [eax + 0x10], ebx
call fcn.0060de70
add esp, 4
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x4050]
xor ecx, esp
call fcn.0069528d
add esp, 0x4054
ret
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x24]
push edx
mov dword [eax + 0x10], ecx
call fcn.0060de70
add esp, 4
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x4050]
xor ecx, esp
call fcn.0069528d
add esp, 0x4054
ret
mov eax, dword [esp + 0xc]
push ebp
add eax, 0xc
push 0xd
push eax
call fcn.005d8100
add esp, 0xc
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x4050]
xor ecx, esp
call fcn.0069528d
add esp, 0x4054
ret
call fcn.006a1a12
mov ecx, dword [eax]
mov edx, dword [esp + 0xc]
push ecx
add edx, 0xc
push 6
push edx
call fcn.005d8100
mov ecx, dword [esp + 0x4068]
add esp, 0xc
pop edi
pop ebp
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.0069528d
add esp, 0x4054
ret