Function at 0x401d80
Capabilities:
Create thread

Disassembly:
mov dword [edi], eax
call fcn.004023c0
push str.MARKAN.SK10317_6B5S7G9Wp7C7
push eax
mov dword [edi + 4], eax
call fcn.004025a0
add esp, 8
mov dword [edi + 0xc], eax
cmp eax, 1
je 0x401dad
mov ecx, dword [edi + 4]
push ecx
call fcn.004025e0
add esp, 4
ret
cmp dword [edi + 0x1228], 0
push ebx
push esi
je 0x401ec2
call fcn.004025d0
lea edx, [edi + 0x1124]
push edx
lea ecx, [edi + 0x1020]
push ecx
push eax
mov dword [edi + 0x10], eax
call fcn.004026b0
add esp, 0xc
mov dword [edi + 0xc], eax
cmp eax, 1
jne 0x401e3a
mov ecx, dword [edi + 0x10]
push ecx
call fcn.00402620
add esp, 4
test eax, eax
je 0x401ffc
lea ebx, [eax - 1]
xor esi, esi
test ebx, ebx
jl 0x401e22
mov eax, dword [edi + 0x10]
push esi
push eax
call fcn.00402680
add esp, 8
mov dword [edi + 0x14], eax
test eax, eax
je 0x401e1d
push eax
call fcn.004025e0
add esp, 4
inc esi
cmp esi, ebx
jle 0x401e00
mov ecx, dword [edi + 0x10]
push str.127.0.0.1
push ecx
call fcn.00402650
add esp, 8
mov dword [edi + 0x14], eax
test eax, eax
jne 0x401e52
mov edx, dword [edi + 4]
push edx
call fcn.004025e0
mov eax, dword [edi + 0x10]
push eax
call fcn.004025e0
add esp, 8
pop esi
pop ebx
ret
mov ecx, dword [edi + 4]
push eax
push ecx
call fcn.004024f0
add esp, 8
mov dword [edi + 0xc], eax
cmp eax, 1
je 0x401eb6
mov edx, dword [edi + 0x14]
push edx
call fcn.004025e0
mov eax, dword [edi + 4]
push eax
call fcn.004023d0
add esp, 8
push eax
push 0x5cf6a4
push 0x1ca
push str..CXHRSock.cpp
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, eax
mov esi, str.CXHRSOCK::StartXHRSock
call fcn.00401070
mov ecx, dword [edi + 4]
push ecx
call fcn.004025e0
mov edx, dword [edi + 0x10]
push edx
call fcn.004025e0
add esp, 0x14
pop esi
pop ebx
ret
mov eax, dword [edi + 0x14]
push eax
call fcn.004025e0
add esp, 4
mov ecx, dword [edi + 0x18]
mov edx, dword [edi]
mov eax, dword [edi + 4]
push ecx
push edx
push eax
call fcn.00402480
add esp, 0xc
mov dword [edi + 0xc], eax
cmp eax, 1
je 0x401f23
mov ecx, dword [edi + 4]
push ecx
call fcn.004023d0
add esp, 4
push eax
push 0x5cf6a4
push 0x1d5
push str..CXHRSock.cpp
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, eax
mov esi, str.CXHRSOCK::StartXHRSock
call fcn.00401070
mov edx, dword [edi + 4]
push edx
call fcn.004025e0
mov eax, dword [edi + 0x10]
push eax
call fcn.004025e0
add esp, 0x14
pop esi
pop ebx
ret
cmp dword [edi + 0x122c], 0
jne 0x401fe7
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ecx]
push str.loop___1st_sequence
push 0x1dd
push str..CXHRSock.cpp
call ebx
mov ecx, eax
mov esi, str.CXHRSOCK::StartXHRSock
call fcn.00401070
mov ecx, dword [edi + 4]
push 0
push ecx
call fcn.00402450
add esp, 0x10
mov dword [edi + 8], eax
test eax, eax
jne 0x401fbb
mov edx, dword [edi + 4]
push edx
call ebp
push eax
push str.__d_____d_
push 0x1e2
push str..CXHRSock.cpp
call ebx
mov ecx, eax
call fcn.00401070
mov eax, dword [edi + 4]
push eax
call fcn.004023d0
add esp, 0x14
push eax
push 0x5cf6a4
push 0x1e3
push str..CXHRSock.cpp
call ebx
mov ecx, eax
call fcn.00401070
add esp, 0xc
jmp 0x401fd9
push 0
push 0
push eax
push 0x401460
push 0
push 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x122c], 0
je 0x401f40
pop ebp
mov ecx, dword [edi + 4]
push ecx
call fcn.004025e0
add esp, 4
cmp dword [edi + 0x1228], 0
je 0x402008
mov edx, dword [edi + 0x10]
push edx
call fcn.004025e0
add esp, 4
pop esi
pop ebx
ret