Function at 0x57bced
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x65c
mov eax, dword [0x70b744]
xor eax, esp
mov dword [esp + 0x658], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0xffffffff
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
je 0x57bd20
mov edi, dword [ebx]
call fcn.0057a550
mov eax, dword [ebx]
mov edi, dword [ebp + 0xc]
or dword [ebx + 4], 0xffffffff
cmp edi, dword [eax + 4]
jl 0x57bd38
mov eax, 0x10000
jmp 0x57bfa4
cmp edi, dword [eax + 0x10]
jge 0x57bd48
mov esi, eax
call fcn.0057b515
mov esi, dword [esp + 0x18]
mov eax, dword [ebx]
cmp dword [eax + 0x10], edi
jge 0x57bd61
mov esi, dword [ebx]
call fcn.0057b4c4
mov eax, dword [ebx]
cmp dword [eax + 0x10], edi
jl 0x57bd4f
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push edi
mov ecx, ebx
call fcn.0057b6ef
mov eax, dword [esp + 0x22c]
shr eax, 4
test al, 1
movzx eax, word [esi]
je 0x57bdb2
cmp ax, 0x2f
je 0x57bd97
cmp ax, 0x5c
je 0x57bd97
test ax, ax
je 0x57bd9c
cmp word [esi + 2], 0x3a
jne 0x57bd9c
push esi
push 0
jmp 0x57bda4
push esi
add ebx, 0x244
push ebx
call fcn.0057a8f5
pop ecx
pop ecx
xor eax, eax
jmp 0x57bfa4
and word [esp + 0x458], 0
test ax, ax
mov edi, esi
mov ecx, esi
je 0x57bde0
movzx eax, ax
cmp ax, 0x2f
je 0x57bdd3
cmp ax, 0x5c
jne 0x57bdd6
lea edi, [ecx + 2]
inc ecx
inc ecx
movzx eax, word [ecx]
test ax, ax
jne 0x57bdc7
push 0x104
lea eax, [esp + 0x254]
push esi
push eax
call fcn.00520e6b
add esp, 0xc
cmp edi, esi
jne 0x57be6c
and word [esp + 0x250], 0
push edi
lea eax, [esp + 0x254]
push eax
lea esi, [ebx + 0x244]
push esi
lea eax, [esp + 0x464]
push str._s_s_s
push eax
call fcn.00430d33
add esp, 0x14
lea eax, [esp + 0x250]
push eax
push esi
call fcn.0057a8f5
pop ecx
pop ecx
xor eax, eax
push eax
push dword [esp + 0x230]
push 2
push eax
push eax
push 0x40000000
lea eax, [esp + 0x470]
push eax
call dword [0x71f620]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x57bee1
mov eax, 0x200
jmp 0x57bfa4
mov eax, edi
sub eax, esi
sar eax, 1
and word [esp + eax*2 + 0x250], 0
cmp word [esp + 0x250], 0x2f
je 0x57beaf
cmp word [esp + 0x250], 0x5c
je 0x57beaf
cmp word [esp + 0x250], 0
je 0x57be03
cmp word [esp + 0x252], 0x3a
jne 0x57be03
push edi
lea eax, [esp + 0x254]
push eax
lea eax, [esp + 0x460]
push str._s_s
push eax
call fcn.00430d33
lea eax, [esp + 0x260]
push eax
push 0
call fcn.0057a8f5
add esp, 0x18
jmp 0x57be38
push dword [ebx + 0x23c]
push dword [ebx]
call fcn.0057b361
cmp dword [ebx + 0x240], 0
pop ecx
pop ecx
mov esi, 0x4000
jne 0x57bf0b
push esi
call fcn.004fed14
pop ecx
mov dword [ebx + 0x240], eax
and dword [esp + 0x14], 0
lea eax, [esp + 0x13]
push eax
push dword [ebx + 0x240]
mov eax, dword [ebx]
mov ecx, esi
call fcn.0057aba5
mov edi, eax
cmp edi, 0xffffff96
pop ecx
pop ecx
je 0x57bfbb
test edi, edi
jl 0x57bf5e
jle 0x57bf53
push 0
lea eax, [esp + 0x20]
push eax
push edi
push dword [ebx + 0x240]
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x57bfc5
cmp byte [esp + 0x13], 0
jne 0x57bf66
test edi, edi
jne 0x57bf10
mov dword [esp + 0x14], 0x5000000
mov edi, dword [ebx]
call fcn.0057a550
cmp dword [esp + 0x14], 0
jne 0x57bf96
lea eax, [esp + 0x240]
push eax
lea eax, [esp + 0x234]
push eax
lea eax, [esp + 0x240]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x664]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051d721
mov esp, ebp
pop ebp
ret 8
mov dword [esp + 0x14], 0x1000
jmp 0x57bf66
mov dword [esp + 0x14], 0x400
jmp 0x57bf66