Function at 0x418190
Capabilities:
Receive data
Receive data on socket
Resolve function by parsing pe exports
Send data
Send data on socket
Send http request

Disassembly:
sub esp, 0x6c
mov ecx, dword [esp + 0x78]
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x38]
push eax
push 4
xor ebx, ebx
push ecx
mov dword [esp + 0x1c], ebx
call dword [0x42a3ac]
cmp eax, ebx
jne 0x418592
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
add eax, edx
add eax, esi
push eax
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x14], ebp
je 0x41858d
mov edx, dword [esp + 0x8c]
cmp edx, ebx
je 0x41821f
or ecx, 0xffffffff
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x41821f
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
mov al, byte [ecx + edx - 2]
dec ecx
cmp al, 0x2f
jne 0x41821f
or ecx, 0xffffffff
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + edx - 1], al
mov ecx, dword [esp + 0x38]
push edx
lea esi, [ecx + ebp]
push str.GET__s_HTTP_1.0_r_nUser_Agent:_IScClient_r_nAccept:__r_n_r_n
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [esp + 0x44]
add esp, 0xc
or ecx, 0xffffffff
xor eax, eax
mov edi, esi
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x3c]
not ecx
xor edi, edi
dec ecx
push edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x5c], ecx
add ecx, esi
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x68], esi
mov esi, dword [esp + 0x90]
mov dword [esp + 0x74], ecx
push edi
lea ecx, [esp + 0x58]
push esi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], 7
mov dword [esp + 0x6c], 1
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 6
mov dword [esp + 0x84], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 4
mov dword [esp + 0x38], ecx
call dword [0x42a3e4]
cmp eax, edi
mov dword [esp + 0x8c], eax
jl 0x418592
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x80]
add ecx, eax
mov eax, dword [esp + 0x4c]
push edi
add ecx, eax
push ecx
push ebp
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x418586
cmp eax, edi
je 0x418586
xor esi, esi
jmp 0x4182f9
mov ebp, dword [esp + 0x14]
xor edi, edi
cmp esi, edi
je 0x41830a
cmp dword [esp + 0x8c], 0x80090318
jne 0x418337
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x80]
push edi
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x418566
cmp eax, edi
je 0x41853e
add esi, eax
mov edx, dword [esp + 0x88]
push edi
push edi
lea ecx, [esp + 0x28]
push ecx
lea eax, [esp + 0x58]
push edx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], 1
mov dword [esp + 0x6c], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 4
mov dword [esp + 0x38], eax
call dword [0x42a3e8]
cmp eax, 0x80090318
mov dword [esp + 0x8c], eax
je 0x4182f9
mov edx, eax
cmp edx, 0x90317
je 0x418566
cmp edx, edi
je 0x4183af
cmp edx, 0x90321
jne 0x41854f
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x18], esi
lea eax, [esp + 0x58]
mov ecx, 3
test ebp, ebp
jne 0x4183cc
cmp dword [eax + 4], 1
jne 0x4183cc
mov ebp, eax
test esi, esi
jne 0x4183dc
cmp dword [eax + 4], 5
jne 0x4183dc
mov dword [esp + 0x18], eax
mov esi, eax
add eax, 0xc
dec ecx
jne 0x4183c0
test ebp, ebp
je 0x4184b1
mov eax, dword [ebp]
mov edi, dword [esp + 0x10]
lea ecx, [edi + eax + 1]
push ecx
push ebx
call dword [sym.imp.MSVCRT.dll_realloc]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x418559
mov ecx, dword [ebp]
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
add edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, dword [ebp]
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
push str._r_n_r_n
push ebx
mov dword [esp + 0x18], eax
mov byte [eax + ebx], 0
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x4184a6
push str.Content_Length:
push ebx
call edi
mov edx, eax
add esp, 8
test edx, edx
jne 0x418479
push str.Content_length:
push ebx
call edi
mov edx, eax
add esp, 8
test edx, edx
jne 0x418479
push str.content_length:
push ebx
call edi
mov edx, eax
add esp, 8
test edx, edx
je 0x4184a6
or ecx, 0xffffffff
xor eax, eax
mov edi, str.Content_length:
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [esp + 0x14]
sub esi, ebx
lea eax, [eax + esi + 4]
add esp, 4
cmp ecx, eax
jge 0x418566
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x8c]
test esi, esi
je 0x4184d5
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov esi, dword [esi]
mov edx, dword [esp + 0x98]
add esp, 0xc
jmp 0x4184d7
xor esi, esi
cmp edx, 0x90321
jne 0x4182f3
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x84]
push 0
push edx
push eax
push ecx
call fcn.00417ef0
add esp, 0x14
test eax, eax
mov dword [esp + 0x8c], eax
jne 0x418592
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4182f3
mov edx, dword [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov esi, dword [esp + 0x38]
add esp, 0xc
jmp 0x4182f3
cmp esi, edi
je 0x418566
pop edi
pop esi
pop ebp
mov eax, 0x80090304
pop ebx
add esp, 0x6c
ret
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0x6c
ret
pop edi
pop esi
pop ebp
mov eax, 0x80090300
pop ebx
add esp, 0x6c
ret
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x94]
pop edi
pop esi
mov dword [ecx], ebx
pop ebp
mov dword [edx], eax
xor eax, eax
pop ebx
add esp, 0x6c
ret
push esi
call dword [0x42a3a4]
mov eax, 0x80090304
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret