Function at 0x40433e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440375
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x10
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.00424820
add esp, 0xc
mov word [ebp - 0x24], 2
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov dx, word [ebp + 0xc]
mov word [ebp - 0x22], dx
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
push 0
push 1
push 2
call fcn.0040d220
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x404435
push 0x10
call fcn.00438b8f
add esp, 4
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4c], 0
je 0x40440a
call fcn.0040cf70
mov dword [ebp - 0x84], eax
push str.socket_failed.
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00413380
add esp, 0xc
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
jmp 0x404414
mov dword [ebp - 0x8c], 0
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x48], edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
push 0x449ab0
lea ecx, [ebp - 0x44]
push ecx
call fcn.004236ae
push 0x10
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040d060
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0xffffffff
jne 0x4044dc
push 0x10
call fcn.00438b8f
add esp, 4
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x58], 0
je 0x4044b1
call fcn.0040cf70
mov dword [ebp - 0x98], eax
push str.connect_failed.
mov edx, dword [ebp - 0x98]
push edx
mov eax, dword [ebp - 0x58]
push eax
call fcn.00413380
add esp, 0xc
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], ecx
jmp 0x4044bb
mov dword [ebp - 0xa0], 0
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x54], edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
push 0x449ab0
lea ecx, [ebp - 0x50]
push ecx
call fcn.004236ae
mov edx, dword [ebp + 0x10]
push edx
call fcn.00423170
add esp, 4
test eax, eax
jbe 0x40465e
push 0xffff
lea ecx, [ebp - 0x3c]
call fcn.00413440
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x10]
push eax
push str._s_r_n_r_n
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040d6c0
add esp, 0xc
lea ecx, [ebp - 0x3c]
call fcn.004136b0
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0x3c]
call fcn.004136c0
mov dword [ebp - 0xac], eax
push str.ConnectMaster
push 0x403e40
push 0x3c
push 0x4503e4
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.0040d7c0
add esp, 0x1c
lea ecx, [ebp - 0x3c]
call fcn.004136c0
mov dword [ebp - 0xb0], eax
push str.HTTP_1.0_200_OK
mov edx, dword [ebp - 0xb0]
push edx
call fcn.00423b50
add esp, 8
test eax, eax
je 0x404652
lea ecx, [ebp - 0x3c]
call fcn.004136c0
mov dword [ebp - 0xb4], eax
push 0x4503fc
mov eax, dword [ebp - 0xb4]
push eax
call fcn.00423b50
add esp, 8
test eax, eax
je 0x404652
lea ecx, [ebp - 0x3c]
call fcn.004136c0
mov dword [ebp - 0xb8], eax
push str.OKAY
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.00423b50
add esp, 8
test eax, eax
je 0x404652
push 0x10
call fcn.00438b8f
add esp, 4
mov dword [ebp - 0xbc], eax
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x64], edx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x64], 0
je 0x404627
push str.invalid_data.
push 0xd
mov eax, dword [ebp - 0x64]
push eax
call fcn.00413380
add esp, 0xc
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], ecx
jmp 0x404631
mov dword [ebp - 0xc4], 0
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0x60], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
push 0x449ab0
lea ecx, [ebp - 0x5c]
push ecx
call fcn.004236ae
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00413510
lea edx, [ebp - 0x30]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
push 0x403470
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4046fa
push 0x10
call fcn.00438b8f
add esp, 4
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0x70], ecx
mov byte [ebp - 4], 5
cmp dword [ebp - 0x70], 0
je 0x4046cf
push str.CreateThread___failed.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x70]
push edx
call fcn.00413380
add esp, 0xc
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], eax
jmp 0x4046d9
mov dword [ebp - 0xd0], 0
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x68], edx
push 0x449ab0
lea eax, [ebp - 0x68]
push eax
call fcn.004236ae
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40478e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret