Function at 0x555070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af855
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5fa040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x55535e
cmp byte [esi + 0x14], 0
jne 0x5552dc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov byte [ebp + 0xb], 0
nop dword [eax]
mov edi, dword [esi]
lea ebx, [esi + 0x15]
mov eax, dword [esi + 4]
shrd edi, eax, 0x14
cmp edi, 0x10
jb 0x5550d6
cmp byte [ebx], 0
je 0x555135
push edi
mov ecx, esi
call fcn.00554fc0
mov edx, eax
test edx, edx
je 0x555128
mov ecx, dword [esi]
mov ebx, 0x100000
and ecx, 0xfffff
sub ebx, ecx
cmp ebx, dword [ebp + 0xc]
cmova ebx, dword [ebp + 0xc]
lea eax, [ecx + edx]
push ebx
push dword [ebp - 0x10]
push eax
call fcn.0058aed0
add esp, 0xc
add dword [esi], ebx
adc dword [esi + 4], 0
cmp edi, dword [esi + 0x10]
jb 0x55511b
lea eax, [edi + 1]
mov dword [esi + 0x10], eax
add dword [ebp - 0x10], ebx
sub dword [ebp + 0xc], ebx
jne 0x5550c0
jmp 0x55535e
cmp byte [ebx], 0
jne 0x5552c3
mov byte [ebp + 0xb], 1
cmp byte [esi + 0x1c], 0
je 0x55514e
mov ecx, dword [esi + 0x20]
call fcn.0046f570
xor al, 1
mov byte [esi + 0x1c], al
jne 0x55523a
mov eax, dword [esi + 0x20]
xor ecx, ecx
mov dword [esi + 0x24], 0
push 8
mov word [eax], cx
call fcn.0058813f
xor ecx, ecx
mov dword [ebp - 0x1c], eax
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 3
mov word [eax], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x1c]
call fcn.0046f860
test al, al
jne 0x5551a3
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x1c]
call fcn.00588148
add esp, 4
jmp 0x55523a
push 4
call fcn.0058813f
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 3
mov byte [eax], 0
mov byte [ebp - 4], 1
xor ebx, ebx
nop word [eax + eax]
inc ebx
cmp word [ebx*2 + 0x5d2098], 0
jne 0x5551d0
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0046ce40
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
lea ecx, [eax + edi*2]
lea eax, [ebx*2 + 2]
push eax
push 0x5d2098
push ecx
call fcn.0058aed0
lea eax, [esi + 0x2c]
add edi, ebx
mov ebx, dword [ebp - 0x1c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edi
push eax
call fcn.0046f980
add esp, 0x14
test al, al
jne 0x55528c
push dword [ebp - 0x28]
call fcn.00588148
push ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00588148
add esp, 8
lea ebx, [esi + 0x15]
cmp byte [ebp + 0xb], 0
mov byte [ebx], 1
je 0x5550b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x55526a
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
jle 0x555360
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 0x20]
call fcn.0046d120
mov edi, dword [ebp - 0x28]
lea ecx, [esi + 0x20]
push edi
call fcn.0046d3b0
push edi
mov byte [esi + 0x1c], 1
call fcn.00588148
push ebx
call fcn.00588148
mov edi, dword [ebp + 0xc]
add esp, 8
mov ebx, dword [ebp - 0x10]
mov byte [esi + 0x14], 1
jmp 0x5552df
mov eax, 0x8007000e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x10], ebx
mov dword [ebp + 0xc], ecx
mov edx, ebx
nop dword [eax]
cmp ecx, 0x400000
mov dword [ebp + 8], 0
mov eax, ecx
mov ecx, 0x400000
cmova eax, ecx
cmp eax, ecx
push 0
cmova eax, ecx
lea ecx, [ebp + 8]
push ecx
push eax
push edx
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x555247
mov eax, dword [ebp + 8]
test eax, eax
je 0x555340
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add edx, eax
sub ecx, eax
mov dword [ebp - 0x10], edx
mov dword [ebp + 0xc], ecx
jne 0x5552f0
jmp 0x55534a
cmp dword [ebp + 0xc], 0
jne 0x555247
mov ecx, dword [esi + 0x18]
mov edx, ebx
push edi
call fcn.0044a290
add dword [esi], edi
mov dword [esi + 0x18], eax
adc dword [esi + 4], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8