Function at 0x5c6bb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x264
fldz
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x27c]
mov esi, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
sub esp, 8
mov ecx, edi
fstp qword [esp]
call edx
push 0x6e17b0
push str.Encoding__s_image
lea eax, [esp + 0x70]
mov word [esp + 0x70], 0
call fcn.00483050
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
add esp, 8
push 0
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call edx
mov eax, dword [esi + 0xe]
mov ecx, dword [esi + 0x12]
lea edx, [esp + 0x4c]
mov ebp, 4
push edx
lea edi, [esp + 0x2c]
mov byte [esp + 0x50], 0x38
mov byte [esp + 0x51], 0x42
mov byte [esp + 0x52], 0x50
mov byte [esp + 0x53], 0x53
mov word [esp + 0x54], 1
mov word [esp + 0x5c], bp
mov dword [esp + 0x62], eax
mov dword [esp + 0x5e], ecx
mov word [esp + 0x66], 8
mov dword [esp + 0x68], 3
call fcn.005ca1e0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5c6c71
mov ecx, dword [esp + 0x278]
mov dword [ecx], eax
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x264
ret 8
mov edx, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x24]
push eax
xor edi, edi
bswap edi
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
mov eax, dword [edx + 0x10]
push ecx
push eax
mov dword [esp + 0x3c], edi
call ebx
cmp dword [esp + 0x20], ebp
je 0x5c6cb8
mov eax, dword [esp + 0x278]
mov dword [eax], 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x264
ret 8
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x24]
push ecx
push ebp
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
mov ecx, dword [eax + 0x10]
push edx
push ecx
call ebx
cmp dword [esp + 0x20], ebp
jne 0x5c6c9e
mov eax, dword [esi + 4]
test eax, eax
mov dword [esp + 0x10], 6
mov dword [esp + 0x20], eax
je 0x5c6dd9
mov edi, edi
mov edx, dword [esp + 0x20]
mov edi, dword [edx]
lea eax, [edi + 0x18]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5c6d00
sub eax, edx
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [edi + 0x18]
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x5c6d23
sub eax, ecx
lea ebp, [eax + 1]
push ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebp
call fcn.0069c0de
add esp, 4
mov ebx, eax
push ebp
lea eax, [edi + 0x18]
push eax
push ebx
mov dword [esp + 0x38], ebx
call fcn.006a4bd0
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x18]
call fcn.004a59b0
push ebx
call fcn.0069c8fa
movzx eax, byte [esp + 0x28]
lea ecx, [eax + 1]
add esp, 4
and ecx, reloc.WS2_32.dll_closesocket
jns 0x5c6d82
dec ecx
or ecx, 0xfffffffc
inc ecx
mov edx, 4
sub edx, ecx
and edx, reloc.WS2_32.dll_closesocket
jns 0x5c6d96
dec edx
or edx, 0xfffffffc
inc edx
movzx ecx, dl
mov edx, dword [esp + 0x18]
lea ecx, [ecx + edx*2]
add ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x10]
add ecx, dword [edi + 8]
add ecx, dword [edi + 4]
add ecx, eax
add ecx, dword [edi]
lea eax, [edx + ecx + 0x6f]
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x14], eax
call fcn.0069c8fa
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
add esp, 4
test eax, eax
mov dword [esp + 0x20], eax
jne 0x5c6cf0
mov edi, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov eax, edi
bswap eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x10]
mov ebp, 4
push ebp
lea edx, [esp + 0x30]
push edx
push ecx
call ebx
cmp dword [esp + 0x10], ebp
jne 0x5c6c9e
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x14]
push edx
add edi, 0xfffffffc
push ebp
bswap edi
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edi
mov edx, dword [ecx + 0x10]
push eax
push edx
call ebx
cmp dword [esp + 0x10], ebp
jne 0x5c6c9e
mov eax, dword [esi + 4]
xor ecx, ecx
test eax, eax
je 0x5c6e4a
mov eax, dword [eax + 4]
add ecx, 1
test eax, eax
jne 0x5c6e40
mov eax, dword [esi]
push ecx
push eax
call fcn.005c2570
test al, al
je 0x5c6c9e
mov eax, dword [esi + 4]
test eax, eax
mov dword [esp + 0x20], eax
je 0x5c7219
lea ebx, [ebx]
mov eax, dword [eax]
lea ecx, [eax + 0x18]
mov dword [esp + 0x38], eax
mov eax, ecx
mov dword [esp + 0x10], ecx
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x5c6e82
sub eax, edi
mov byte [esp + 0x44], al
movzx eax, al
mov dword [esp + 0x48], eax
add eax, 1
and eax, reloc.WS2_32.dll_closesocket
jns 0x5c6ea7
dec eax
or eax, 0xfffffffc
inc eax
mov ebx, 4
sub ebx, eax
and ebx, reloc.WS2_32.dll_closesocket
jns 0x5c6ebb
dec ebx
or ebx, 0xfffffffc
inc ebx
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, ecx
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x5c6ed0
sub eax, ecx
lea edi, [eax + 1]
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
call fcn.0069c0de
mov ecx, dword [esp + 0x14]
add esp, 4
push edi
mov ebp, eax
push ecx
push ebp
mov dword [esp + 0x38], ebp
call fcn.006a4bd0
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x18]
call fcn.004a59b0
push ebp
call fcn.0069c8fa
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
add esp, 4
push 0
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x10]
push 4
lea edx, [esp + 0x30]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x40], 4
jne 0x5c7249
mov edx, dword [esp + 0x28]
push 0
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x2c], edx
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push 4
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x3c], 4
jne 0x5c7272
mov edi, dword [esp + 0x38]
mov ecx, dword [edi + 0x14]
mov edx, dword [esi]
push ecx
call fcn.005c25b0
test al, al
je 0x5c729b
mov edx, dword [edi + 0x10]
push edx
mov edx, dword [esi]
call fcn.005c25b0
test al, al
je 0x5c7249
mov eax, dword [esi]
push 4
push eax
invalid