Function at 0x403775
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4531ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 0xc]
lea eax, [esp + 0x80]
push eax
mov dword [esp + 0x18], esi
call fcn.004030ed
pop ecx
pop ecx
and dword [esp + 0x194], 0
cmp dword [esp + 0x90], 0
je 0x403e36
lea eax, [esp + 0x44]
push eax
call fcn.0040a39c
mov byte [esp + 0x194], 1
cmp dword [esp + 0x94], 0x10
mov ebx, dword [esp + 0x80]
jae 0x4037f1
lea ebx, [esp + 0x80]
lea edi, [esp + 0x44]
call fcn.004266b9
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x50]
push 0x1c
cdq
pop ecx
idiv ecx
xor edi, edi
inc edi
cmp eax, edi
jb 0x403e51
push 0x458620
lea ecx, [esp + 0x154]
call fcn.0040162e
lea eax, [esp + 0x150]
push eax
push 0
lea esi, [esp + 0x4c]
mov byte [esp + 0x19c], 2
call fcn.004043c0
lea ecx, [esp + 0xd4]
push ecx
mov ecx, eax
call fcn.004043e4
xor ebx, ebx
push ebx
push edi
lea ecx, [esp + 0x158]
mov byte [esp + 0x19c], 4
call fcn.004017a5
lea eax, [esp + 0xd0]
push eax
call fcn.004044a5
test al, al
je 0x403e71
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0xd4]
call fcn.00404563
mov esi, dword [esp + 0x10]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x10]
mov byte [esp + 0x1a0], 5
call fcn.004016f1
push ebx
push edi
lea ecx, [esp + 0x68]
mov byte [esp + 0x19c], 4
call fcn.004017a5
lea eax, [esp + 0xd0]
push eax
call fcn.004044a5
test al, al
je 0x403e75
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0xd4]
call fcn.00404563
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x2c]
push eax
mov byte [esp + 0x1a0], 6
mov dword [esp + 0x18], ecx
call fcn.004016f1
push ebx
push edi
lea ecx, [esp + 0x68]
mov byte [esp + 0x19c], 4
call fcn.004017a5
lea eax, [esp + 0xd0]
push eax
call fcn.004044a5
test al, al
je 0x403e75
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0xd4]
call fcn.00404563
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x68]
mov byte [esp + 0x1a0], 7
call fcn.004016f1
push ebx
push edi
lea ecx, [esp + 0x68]
mov byte [esp + 0x19c], 4
call fcn.004017a5
push ebx
push 0x458570
push dword [esp + 0x14]
call fcn.00402bb0
add esi, 0x48
mov edi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], esi
call fcn.0040433a
cmp dword [esp + 0x14], 0xffffffff
je 0x403b10
mov esi, dword [esp + 0x14]
inc esi
push esi
push 0x4585e0
push dword [esp + 0x14]
call fcn.00402bb0
mov edi, eax
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x44], 0xf
call fcn.004019d2
mov byte [esp + 0x194], 8
cmp edi, 0xffffffff
jne 0x4039d3
push edi
push esi
push dword [esp + 0x14]
lea esi, [esp + 0x6c]
call fcn.00402ccd
mov byte [esp + 0x194], 9
jmp 0x4039f1
mov eax, edi
sub eax, dword [esp + 0x14]
dec eax
push eax
push esi
push dword [esp + 0x14]
lea esi, [esp + 0x6c]
call fcn.00402ccd
mov byte [esp + 0x194], 0xa
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x34]
call fcn.004016f1
push ebx
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0x19c], 8
call fcn.004017a5
push ebx
push 0x458644
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x20], edi
call fcn.00402bb0
mov dword [esp + 0x5c], eax
cmp eax, 0xffffffff
je 0x403af3
push eax
push ebx
lea eax, [esp + 0x30]
push eax
lea esi, [esp + 0x178]
call fcn.00402ccd
lea ecx, [esp + 0x60]
push ecx
mov ebx, eax
mov byte [esp + 0x198], 0xb
call fcn.00426430
pop ecx
xor edi, edi
push edi
push 1
mov ecx, esi
mov byte [esp + 0x19c], 0xd
call fcn.004017a5
mov eax, dword [esp + 0x5c]
push 0xffffffffffffffff
inc eax
push eax
lea eax, [esp + 0x30]
push eax
lea esi, [esp + 0xc0]
call fcn.00402ccd
lea ecx, [esp + 0x98]
push ecx
mov ebx, eax
mov byte [esp + 0x198], 0xe
call fcn.00426430
pop ecx
push edi
push 1
mov ecx, esi
mov byte [esp + 0x19c], 0x10
call fcn.004017a5
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x60]
push eax
call fcn.004041bb
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0xa0]
push ecx
mov ecx, eax
call fcn.004016f1
push edi
push 1
lea ecx, [esp + 0xa0]
call fcn.004017a5
push edi
push 1
lea ecx, [esp + 0x68]
call fcn.004017a5
mov edi, dword [esp + 0x20]
xor ebx, ebx
push ebx
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x19c], 4
call fcn.004017a5
cmp edi, 0xffffffff
jne 0x403981
push ebx
push 0x458570
push dword [esp + 0x14]
call fcn.00402bb0
push eax
push ebx
push dword [esp + 0x14]
lea esi, [esp + 0xc0]
call fcn.00402ccd
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push ebx
push eax
mov byte [esp + 0x1a0], 0x11
call fcn.004016f1
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0xbc]
mov byte [esp + 0x19c], 4
call fcn.004017a5
mov edi, dword [esp + 0x10]
add edi, 0x84
call fcn.0040433a
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x50]
push 0x1c
cdq
pop ecx
idiv ecx
mov dword [esp + 0xc], esi
cmp eax, esi
jbe 0x403d0d
push ebx
push 0x458648
push dword [esp + 0x14]
lea esi, [esp + 0x50]
call fcn.004043c0
push eax
call fcn.00402bb0
mov edi, eax
cmp edi, 0xffffffff
je 0x403cf1
push edi
push ebx
push dword [esp + 0x14]
call fcn.004043c0
push eax
lea esi, [esp + 0xc0]
call fcn.00402ccd
push eax
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0x19c], 0x12
call fcn.004010eb
pop ecx
pop ecx
push ebx
push 1
mov ecx, esi
mov byte [esp + 0x19c], 0x14
call fcn.004017a5
push 0xffffffffffffffff
add edi, 2
push edi
push dword [esp + 0x14]
lea esi, [esp + 0x50]
call fcn.004043c0
push eax
lea esi, [esp + 0x34]
call fcn.00402ccd
mov byte [esp + 0x194], 0x15
mov edi, dword [esp + 0x3c]
dec edi
mov eax, esi
call fcn.0042667b
cmp byte [eax], 0xd
jne 0x403c61
mov eax, dword [esp + 0x3c]
dec eax
push eax
mov eax, esi
push ebx
push eax
lea esi, [esp + 0xc0]
call fcn.00402ccd
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x1a0], 0x16
call fcn.004016f1
push ebx
push 1
mov ecx, esi
mov byte [esp + 0x19c], 0x15
call fcn.004017a5
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x98]
add esi, 0x84
push eax
mov ecx, esi
call fcn.004041bb
cmp dword [eax + 0x14], ebx
lea eax, [esp + 0x98]
mov ecx, esi
push eax
je 0x403cba
call fcn.004041bb
push 0x4585d0
mov ecx, eax
call fcn.00402b8d
lea eax, [esp + 0x98]
push eax
mov ecx, esi
call fcn.004041bb
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.00402eb1
jmp 0x403cce
call fcn.004041bb
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.004016f1
push ebx
push 1
lea ecx, [esp + 0x30]
call fcn.004017a5
push ebx
push 1
lea ecx, [esp + 0xa0]
mov byte [esp + 0x19c], 4
call fcn.004017a5
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x50]
push 0x1c
cdq
pop ecx
idiv ecx
inc dword [esp + 0xc]
cmp dword [esp + 0xc], eax
jb 0x403b88
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 8]
add edi, 0x10
lea esi, [esp + 0x138]
call fcn.00404116
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 8]
add edi, 0x10
lea esi, [esp + 0x148]
call fcn.00404132
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x403d54
cmp eax, dword [esi]
je 0x403d59
call fcn.0043b0d6
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
cmp eax, dword [esi + 4]
je 0x403d98
lea esi, [esp + 0x18]
call fcn.004142d8
mov ecx, dword [eax]
push dword [edi + 0xc]
mov edx, dword [ecx]
lea eax, [edi + 4]
push eax
call dword [edx + 4]
cmp eax, 1
je 0x403d98
cmp eax, ebx
je 0x403eb4
lea edi, [esp + 0x130]
call fcn.0040435e
jmp 0x403d30
mov edi, dword [edi + 8]
add edi, 0x10
lea esi, [esp + 0x140]
call fcn.00404132
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x403db8
cmp eax, dword [esi]
je 0x403dbd
call fcn.0043b0d6
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 4]
je 0x403ecb
push ebx
push 1
lea ecx, [esp + 0x114]
call fcn.004017a5
push ebx
push 1
lea ecx, [esp + 0xf8]
call fcn.004017a5
lea esi, [esp + 0x44]
call fcn.00404393
or dword [esp + 0x194], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0x84]
call fcn.004017a5
mov eax, dword [esp + 0x10]
push dword [eax + 0xc]
lea eax, [esp + 0x80]
push eax
call fcn.004030ed
pop ecx
pop ecx
mov esi, dword [esp + 0x10]
mov dword [esp + 0x194], ebx
cmp dword [esp + 0x90], ebx
jne 0x4037c7
push 1
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
jmp 0x403f77
push edi
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
lea esi, [esp + 0x44]
call fcn.00404393
push 0
jmp 0x403eae
mov esi, dword [esp + 0x10]
push edi
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
push edi
lea ecx, [esp + 0x114]
call fcn.004017a5
push ebx
push edi
lea ecx, [esp + 0xf8]
call fcn.004017a5
lea esi, [esp + 0x44]
call fcn.00404393
push ebx
push edi
jmp 0x403f79
push ebx
push 1
lea ecx, [esp + 0x114]
call fcn.004017a5
push ebx
push 1
jmp 0x403f61
push str.HTTP_1.0_404_Not_Found_r_n_r_n
lea ecx, [esp + 0x2c]
call fcn.0040162e
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
xor esi, esi
cmp eax, ebx
jbe 0x403f30
cmp dword [esp + 0x40], 0x10
mov ecx, dword [esp + 0x2c]
jae 0x403efd
lea ecx, [esp + 0x2c]
push ebx
sub eax, esi
push eax
add ecx, esi
push ecx
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
jne 0x403f24
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x403f30
add esi, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
cmp esi, eax
jb 0x403eee
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x30]
call fcn.004017a5
push esi
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
push esi
lea ecx, [esp + 0x114]
call fcn.004017a5
push ebx
push esi
lea ecx, [esp + 0xf8]
call fcn.004017a5
lea esi, [esp + 0x44]
call fcn.00404393
push ebx
push 1
lea ecx, [esp + 0x84]
call fcn.004017a5
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret