Function at 0x10014f30
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x60
push ebx
mov ebx, ecx
push ebp
push esi
push edi
cmp dword [ebx + 0x1cbc], 0
jne 0x10014f4e
mov al, 0xfe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0xc
mov esi, dword [esp + 0x7c]
mov ebp, 0x1005bdb0
xor edi, edi
mov dword [esp + 0x40], ebp
xor ecx, ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov word [esp + 0x4c], 0xff
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov word [esp + 0x6c], 0
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov word [esp + 0x5c], 0
mov dword [esp + 0x18], edi
test esi, esi
je 0x10015033
mov edi, dword [esp + 0x78]
movzx eax, byte [ecx + edi]
inc ecx
dec eax
cmp eax, 0x68
ja case.0x10014fca.3
movzx eax, byte [eax + 0x10015374]
jmp dword [eax*4 + 0x10015360]
push ecx
push esi
push edi
lea ecx, [esp + 0x6c]
call fcn.100048a0
jmp 0x1001501d
push ecx
push esi
push edi
lea ecx, [esp + 0x5c]
call fcn.100048a0
jmp 0x1001501d
push ecx
push esi
push edi
lea ecx, [esp + 0x4c]
call fcn.10005110
jmp 0x1001501d
push ecx
push esi
push edi
lea edx, [esp + 0x24]
lea ecx, [esp + 0x2c]
call fcn.1000a590
add esp, 0xc
jmp 0x1001501d
push ecx
mov edx, esi
mov ecx, edi
call fcn.1000a570
add esp, 4
mov ecx, eax
test ecx, ecx
js 0x100150d3
cmp ecx, esi
jb 0x10014fb8
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x74]
mov cl, byte [eax]
lea esi, [eax + 8]
mov byte [esp + 0x7c], cl
mov ecx, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x14]
lea eax, [esp + 0x28]
push eax
push esi
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp byte [esp + 0x7c], 7
jne 0x100150de
cmp byte [ebx + 0x1cc0], 7
lea edx, [ebx + 0x1cc0]
mov dword [esp + 0x1c], edx
jne 0x100150de
mov eax, dword [esp + 0x14]
cmp eax, dword [ebx + 0x1cd0]
jne 0x100150de
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx + 0x1cd4]
jne 0x100150de
mov eax, dword [esp + 0x18]
cmp eax, dword [ebx + 0x1cc4]
jne 0x100150de
mov ecx, dword [ebx + 0x1cc8]
mov eax, dword [ebx + 0x1ccc]
add ecx, 0x989680
adc eax, 0
cmp dword [esi + 4], eax
jg 0x100150de
jl 0x100150cf
cmp dword [esi], ecx
jae 0x100150de
mov cl, 1
jmp 0x10015121
mov ebp, dword [esp + 0x40]
mov bl, 0xfe
jmp 0x100151ee
lea eax, [ebx + 0x1cc0]
xor cl, cl
mov dword [esp + 0x1c], eax
mov al, byte [eax]
mov byte [esp + 0x78], cl
cmp al, 7
jne 0x10015121
push dword [ebx + 0x1ce0]
push dword [ebx + 0x1cd4]
push dword [ebx + 0x1cd0]
push str._r_n___________________________I64u__zu_bytes_r_n
push dword [ebx + 0x1cbc]
call dword [sym.imp.msvcrt.dll_fprintf]
mov cl, byte [esp + 0x8c]
add esp, 0x14
movzx eax, byte [esp + 0x7c]
sub eax, 6
je 0x10015233
sub eax, 1
jne 0x100150d7
test edi, edi
je 0x100151db
test cl, cl
jne 0x100151a7
test dword [esp + 0x18], 0x101
mov ecx, str.Outbound
mov eax, str.Inbound
cmove eax, ecx
push eax
push dword [esp + 0x14]
movzx eax, word [esp + 0x46]
push dword [esp + 0x1c]
push eax
movzx eax, word [esp + 0x4c]
push eax
movzx eax, word [esp + 0x4e]
push eax
movzx eax, word [esp + 0x50]
push eax
movzx eax, word [esp + 0x52]
push eax
movzx eax, word [esp + 0x52]
push eax
movzx eax, word [esp + 0x54]
push eax
mov eax, dword [sym.imp.msvcrt.dll_fprintf]
push str.__04d__02d__02d__02d:_02d:_02d._03d___I64u__s_data_r_n____r_n
push dword [ebx + 0x1cbc]
call eax
add esp, 0x30
mov dword [ebx + 0x1ce0], 0
push dword [ebx + 0x1cbc]
push edi
push 1
push dword [esp + 0x2c]
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, edi
je 0x100151d5
push 0
mov ecx, ebx
mov byte [ebx + 0x1181], 0
call fcn.10013f10
mov bl, 0xfe
jmp 0x100151ee
add dword [ebx + 0x1ce0], edi
mov edi, dword [esp + 0x74]
mov esi, edi
mov ecx, 8
mov edi, dword [esp + 0x1c]
mov bl, 0xfd
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x50]
mov esi, dword [sym.imp.msvcrt.dll_free]
cmp eax, 0x1005bdb0
je 0x10015205
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x60]
cmp eax, 0x1005bdb0
je 0x10015216
push eax
call esi
add esp, 4
cmp ebp, 0x1005bdb0
je 0x10015227
lea ecx, [ebp - 4]
push ecx
call esi
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x60
ret 0xc
test dword [esp + 0x18], 0x404
je 0x10015289
push dword [esp + 0x10]
movzx eax, word [esp + 0x42]
push dword [esp + 0x18]
push eax
movzx eax, word [esp + 0x48]
push eax
movzx eax, word [esp + 0x4a]
push eax
movzx eax, word [esp + 0x4c]
push eax
movzx eax, word [esp + 0x4e]
push eax
movzx eax, word [esp + 0x4e]
push eax
movzx eax, word [esp + 0x50]
push eax
mov eax, dword [sym.imp.msvcrt.dll_fprintf]
push str.__04d__02d__02d__02d:_02d:_02d._03d___I64u_Disconnect_r_n
push dword [ebx + 0x1cbc]
call eax
add esp, 0x2c
jmp 0x100151db
push 1
lea edx, [esp + 0x44]
lea ecx, [esp + 0x24]
call fcn.1000a910
add esp, 4
mov ecx, dword [eax]
mov edi, dword [eax + 4]
lea eax, [ecx*2]
add eax, ebp
mov dword [esp + 0x7c], eax
test edi, edi
jle 0x100152e6
add edi, edi
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x100152e6
add esi, 4
test esi, esi
je 0x100152e6
push edi
push dword [esp + 0x80]
xor eax, eax
push esi
mov word [esi + edi], ax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x100152eb
mov esi, 0x1005bdb0
mov edi, dword [esp + 0x74]
movzx eax, word [esp + 0x3e]
push esi
push dword [edi + 0x18]
push dword [esp + 0x58]
push dword [esp + 0x6c]
push dword [esp + 0x20]
push dword [esp + 0x28]
push eax
movzx eax, word [esp + 0x58]
push eax
movzx eax, word [esp + 0x5a]
push eax
movzx eax, word [esp + 0x5c]
push eax
movzx eax, word [esp + 0x5e]
push eax
movzx eax, word [esp + 0x5e]
push eax
movzx eax, word [esp + 0x60]
push eax
mov eax, dword [sym.imp.msvcrt.dll_fprintf]
push str.__04d__02d__02d__02d:_02d:_02d._03d___I64u_Connection__s_____s__process__u___ls__r_n
push dword [ebx + 0x1cbc]
call eax
add esp, 0x3c
cmp esi, 0x1005bdb0
je 0x100151df
lea eax, [esi - 4]
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
jmp 0x100151df