Function at 0x55c330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5df310]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [eax + 0x8684]
mov ecx, dword [ebx]
push 0x5c
push ecx
mov dword [ebp - 0x44], edi
call fcn.00531ad0
mov esi, dword [edi]
mov dword [ebp - 0x38], eax
xor eax, eax
add esp, 8
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
call fcn.0056c770
mov ecx, dword [edi]
mov dword [ebp - 0x48], edx
mov edx, dword [esi + 0x154]
mov dword [ebp - 0x4c], eax
mov dword [edi + 0x284], edx
mov eax, dword [esi + 0x104]
mov dword [edi + 0x288], eax
lea eax, [esi + 0x55c]
mov dword [ecx + 0xdc], eax
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x55c3b8
pop edi
pop esi
mov eax, 0x25
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050fc14
mov esp, ebp
pop ebp
ret
cmp byte [eax + 1], 0
je 0x55c3a2
mov edx, dword [esi + 0x8670]
or edx, dword [esi + 0x8674]
mov eax, dword [ebx]
je 0x55c3de
push 0x5b3e10
push eax
call fcn.00536f3a
add esp, 8
jmp 0x55c436
mov ecx, dword [edi]
mov edx, dword [ecx + 0x334]
push edx
push 0x8301
push eax
call fcn.00538fbd
add esp, 0xc
test eax, eax
jns 0x55c420
mov ecx, dword [ebx]
push ecx
push str.Cant_open__s_for_writing
push esi
call fcn.00552c50
add esp, 0xc
pop edi
pop esi
mov eax, 0x17
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050fc14
mov esp, ebp
pop ebp
ret
push eax
call fcn.00521b55
mov edx, dword [ebx]
push 0x5b3df0
push edx
call fcn.00536f3a
add esp, 0xc
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x55c442
mov eax, dword [ebx]
push eax
jmp 0x55c3fc
mov eax, dword [esi + 0x1b0]
mov ecx, dword [esi + 0x1b4]
cmp eax, 0xffffffff
jne 0x55c457
cmp ecx, eax
je 0x55c462
push ecx
push eax
push esi
call fcn.0056b5c0
add esp, 0xc
cmp dword [esi + 0x8674], 0
jg 0x55c4c0
jl 0x55c476
cmp dword [esi + 0x8670], 0
jae 0x55c4c0
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00515950
lea edx, [ebp - 0x34]
push edx
push eax
call fcn.00574d4b
add esp, 0xc
test eax, eax
je 0x55c4af
mov eax, dword [ebp - 0x38]
push eax
call fcn.005159e3
mov ecx, dword [ebx]
push ecx
push str.Cant_get_the_size_of__s
push esi
call fcn.00552c50
add esp, 0x10
jmp 0x55c40a
mov eax, dword [ebp - 0x20]
cdq
mov dword [esi + 0x8670], eax
mov dword [esi + 0x8674], edx
nop
lea edx, [ebp - 0x50]
push edx
push 0x4000
push edi
call fcn.0054e310
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x55c5ad
mov edx, dword [ebp - 0x50]
test edx, edx
jle 0x55c59b
mov ecx, dword [esi + 0x8670]
mov eax, dword [esi + 0x8674]
mov ebx, ecx
or ebx, eax
mov edi, edx
je 0x55c51b
xor edi, edi
xor ebx, ebx
cmp edi, eax
jg 0x55c57b
jl 0x55c509
cmp edx, ecx
ja 0x55c57b
sub ecx, edx
sbb eax, edi
mov dword [esi + 0x8670], ecx
mov dword [esi + 0x8674], eax
xor edi, edi
lea eax, [esi + 0x55c]
mov ecx, dword [ebp - 0x38]
push ecx
push edi
push 1
push eax
call fcn.00515e15
add esp, 0x10
cmp eax, edi
jne 0x55c594
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
add eax, edi
adc ecx, 0
push ecx
push eax
push esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
call fcn.0056b560
mov edi, dword [ebp - 0x44]
push edi
call fcn.0056b600
add esp, 0x10
test eax, eax
jne 0x55c5a8
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
push edx
push eax
push esi
call fcn.0056d440
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x55c4c0
jmp 0x55c5ad
sub edx, ecx
lea eax, [ecx + esi + 0x55c]
mov edi, edx
mov dword [esi + 0x8670], ebx
mov dword [esi + 0x8674], ebx
jmp 0x55c521
mov ebx, 0x37
jmp 0x55c5ad
push edi
call fcn.0056b600
add esp, 4
test eax, eax
je 0x55c5ad
mov ebx, 0x2a
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.005159e3
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0050fc14
mov esp, ebp
pop ebp
ret