Function at 0x1000cfb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, dword [esp + 0x58]
mov eax, dword [ebp]
push esi
push edi
mov edi, dword [eax + 0x8664]
mov ecx, dword [edi]
push 0x5c
push ecx
call fcn.10142f30
mov esi, dword [ebp]
mov ebx, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call fcn.100075c0
test ebx, ebx
mov ecx, dword [ebp]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x154]
mov dword [esp + 0x1c], eax
mov dword [ebp + 0x280], edx
mov eax, dword [esi + 0x104]
mov dword [ebp + 0x284], eax
lea eax, [esi + 0x53c]
mov dword [ecx + 0xdc], eax
jne 0x1000d025
pop edi
pop esi
pop ebp
mov eax, 0x25
pop ebx
add esp, 0x4c
ret
cmp byte [ebx + 1], 0
je 0x1000d018
mov edx, dword [esi + 0x8650]
or edx, dword [esi + 0x8654]
mov eax, dword [edi]
je 0x1000d051
push 0x1016f9d0
push eax
call fcn.10142339
mov ebx, eax
add esp, 8
mov dword [esp + 0x60], ebx
jmp 0x1000d0a7
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x330]
push edx
push 0x8301
push eax
call fcn.10159b3e
add esp, 0xc
test eax, eax
jge 0x1000d08b
mov ecx, dword [edi]
push ecx
push str.Cant_open__s_for_writing
push esi
call fcn.100031f0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x17
pop ebx
add esp, 0x4c
ret
push eax
call fcn.1014fdb7
mov edx, dword [edi]
push 0x1016f9d4
push edx
call fcn.10142339
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x60], eax
test ebx, ebx
jne 0x1000d0b0
mov eax, dword [edi]
push eax
jmp 0x1000d070
mov eax, dword [esi + 0x1b0]
cmp eax, 0xffffffff
mov ecx, dword [esi + 0x1b4]
jne 0x1000d0c5
cmp ecx, eax
je 0x1000d0d0
push ecx
push eax
push esi
call fcn.10018300
add esp, 0xc
cmp dword [esi + 0x8654], 0
jg 0x1000d140
jl 0x1000d0e4
cmp dword [esi + 0x8650], 0
jae 0x1000d140
lea ecx, [esp + 0x24]
push ecx
push ebx
call fcn.1014763a
add esp, 4
push eax
call fcn.1015a025
add esp, 8
test eax, eax
je 0x1000d123
push ebx
call fcn.101416a4
mov edx, dword [edi]
push edx
push str.Cant_get_the_size_of__s
push esi
call fcn.100031f0
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 0x17
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x8650], eax
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x8654], ecx
jmp 0x1000d140
lea edx, [esp + 0x10]
push edx
push 0x4000
push ebp
call fcn.10003fc0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1000d260
mov edx, dword [esp + 0x10]
test edx, edx
jle 0x1000d24e
mov ecx, dword [esi + 0x8650]
mov eax, dword [esi + 0x8654]
mov ebx, ecx
or ebx, eax
mov edi, edx
je 0x1000d1a5
xor edi, edi
xor ebx, ebx
cmp edi, eax
jg 0x1000d21a
jl 0x1000d193
cmp edx, ecx
ja 0x1000d21a
sub ecx, edx
sbb eax, edi
mov dword [esi + 0x8650], ecx
mov dword [esi + 0x8654], eax
xor edi, edi
lea eax, [esi + 0x53c]
mov ebx, dword [esp + 0x60]
push ebx
push edi
push 1
push eax
call fcn.10141874
add esp, 0x10
cmp eax, edi
jne 0x1000d236
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, edi
adc ecx, 0
push ecx
push eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call fcn.100182a0
push ebp
call fcn.10018340
add esp, 0x10
test eax, eax
jne 0x1000d25b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push esi
call fcn.10018d20
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1000d140
push ebx
call fcn.101416a4
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
sub edx, ecx
lea eax, [ecx + esi + 0x53c]
mov edi, edx
mov dword [esi + 0x8650], ebx
mov dword [esi + 0x8654], ebx
jmp 0x1000d1ab
push ebx
mov edi, 0x37
call fcn.101416a4
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
push ebp
call fcn.10018340
add esp, 4
test eax, eax
je 0x1000d260
mov edi, 0x2a
push ebx
call fcn.101416a4
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret