Function at 0x420730
Capabilities:
Create tcp socket
Create udp socket
Send data
Send data on socket
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x88
push 0xffffffffffffffff
push 0x49b2e3
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4d4028]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x94]
mov edi, dword [ebp + 0x98]
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], edi
call fcn.004232e0
mov dword [ebp - 0x40], vtable.CWSocket.0
mov dword [ebp - 0x3c], 0xffffffff
push 0
push 1
mov dword [ebp - 4], 0
push 2
mov byte [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp - 0x3c], eax
jne 0x4207bf
call fcn.00423a70
mov ecx, dword [esi + 0x18]
mov ecx, dword [ecx - 0xc]
lea eax, [esi + 0x18]
xor edx, edx
test ecx, ecx
setne dl
mov ecx, edx
test ecx, ecx
mov dword [ebp - 0x14], ecx
je 0x4207dd
mov esi, dword [esi + 0x1c]
jmp 0x4207e2
mov esi, dword [ebx + 4]
mov eax, ebx
mov eax, dword [eax]
push esi
push eax
lea esi, [ebp - 0x40]
call fcn.00423af0
lea ecx, [ebp - 0x18]
call dword [0x4a2ef4]
mov eax, dword [ebp + 0x90]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
mov ebx, dword [0x4a2ee0]
push 0x4a7528
push ecx
call ebx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 8]
add esp, 0xc
lea ecx, [ebp - 0x30]
lea edi, [eax - 1]
call dword [0x4a2ef4]
push edi
lea eax, [ebp - 0x30]
push 0x4a3fe0
push eax
mov byte [ebp - 4], 3
call ebx
add esp, 0xc
lea ecx, [ebp - 0x1c]
call dword [0x4a2ef4]
mov byte [ebp - 4], 4
xor esi, esi
lea ebx, [ebx]
cmp esi, edi
jge 0x4208d3
lea ecx, [ebp - 0x38]
call dword [0x4a2ef4]
test esi, esi
mov byte [ebp - 4], 5
jl 0x4208ce
mov eax, dword [ebp - 0x44]
cmp esi, dword [eax + 8]
jge 0x4208ce
mov edx, dword [eax + 4]
lea ecx, [esi + esi*2]
lea eax, [edx + ecx*4]
mov ecx, dword [eax]
mov edx, ecx
shl edx, 4
sub edx, ecx
mov ecx, dword [eax + 4]
lea edx, [ecx + edx*4]
imul edx, edx, 0x4b
add edx, dword [eax + 8]
lea eax, [ebp - 0x38]
push edx
push 0x4a3fe0
push eax
call ebx
add esp, 0xc
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x1c]
call dword [0x4a2db0]
lea edx, [edi - 1]
cmp esi, edx
jge 0x4208bc
push 0x4a7b48
lea ecx, [ebp - 0x1c]
call dword [0x4a2dbc]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call dword [0x4a2ee8]
add esi, 1
jmp 0x420850
call fcn.00490288
test edi, edi
jl 0x4208ce
mov eax, dword [ebp - 0x44]
cmp edi, dword [eax + 8]
jge 0x4208ce
mov edx, dword [eax + 4]
lea ecx, [edi + edi*2]
lea eax, [edx + ecx*4]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, ecx
shl edx, 4
sub edx, ecx
lea ecx, [ebp - 0x28]
lea esi, [eax + edx*4]
call dword [0x4a2ef4]
push esi
lea ecx, [ebp - 0x28]
push 0x4a3fe0
push ecx
mov byte [ebp - 4], 6
call ebx
add esp, 0xc
lea ecx, [ebp - 0x20]
call dword [0x4a2ef4]
mov byte [ebp - 4], 7
cmp dword [ebp - 0x14], 0
jne 0x420970
mov edi, dword [ebp - 0x34]
mov edx, dword [edi]
mov edx, dword [edx]
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call edx
mov byte [ebp - 4], 8
mov eax, dword [eax]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx + 8]
push eax
mov eax, dword [ebp - 0x1c]
push edx
mov edx, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
push edx
push eax
push ecx
lea ecx, [ebp - 0x20]
push str.GET__s_cmdcddbquery_s_s_s_s_s_HTTP_1.0_r_n_r_n
push ecx
call ebx
add esp, 0x20
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call dword [0x4a2ee8]
jmp 0x4209dd
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x48]
push esi
lea eax, [ebp - 0x2c]
push eax
call edx
mov edi, eax
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 9
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [ebp - 0x14]
push edx
call eax
mov byte [ebp - 4], 0xa
mov ecx, dword [edi]
mov eax, dword [eax]
mov edx, dword [esi + 8]
mov esi, dword [esi]
push ecx
mov ecx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
push ecx
push eax
push edx
push esi
lea ecx, [ebp - 0x20]
push str.GET_http:___s_s_cmdcddbquery_s_s_s_s_s_HTTP_1.0_r_n_s_r_n_r_n
push ecx
call ebx
add esp, 0x28
lea ecx, [ebp - 0x14]
call dword [0x4a2ee8]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call dword [0x4a2ee8]
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x20]
lea edx, [ebp + 4]
mov dword [ebp], edx
call dword [0x4d4030]
push eax
push esi
lea eax, [ebp]
call fcn.00416d00
mov byte [ebp - 4], 0xb
mov edx, dword [ebp]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x420a02
push 0
sub eax, esi
push eax
mov eax, dword [ebp - 0x3c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x420a25
call fcn.00423a70
lea ecx, [ebp - 0x24]
call dword [0x4a2da0]
push 0x1000
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xc
call dword [0x4a2be4]
mov edx, dword [edi]
mov edx, dword [edx + 4]
push 1
lea eax, [ebp - 0x24]
push eax
push str._r_n._r_n
lea ecx, [ebp - 0x40]
push ecx
mov ecx, edi
call edx
test eax, eax
je 0x420a7f
mov ecx, dword [ebp - 0x24]
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, edi
call edx
mov ecx, dword [ebp - 0x48]
mov edx, dword [edi]
mov edx, dword [edx + 0x2c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
mov ecx, edi
call edx
test eax, eax
jne 0x420a8d
add edi, 4
push edi
push 0x204
call fcn.00423140
lea ecx, [ebp - 0x24]
call dword [0x4a2d9c]
mov eax, dword [ebp]
lea ecx, [ebp + 4]
cmp eax, ecx
je 0x420aaa
push eax
call dword [0x4a308c]
add esp, 4
lea ecx, [ebp - 0x20]
call dword [0x4a2ee8]
lea ecx, [ebp - 0x28]
call dword [0x4a2ee8]
lea ecx, [ebp - 0x1c]
call dword [0x4a2ee8]
lea ecx, [ebp - 0x30]
call dword [0x4a2ee8]
lea ecx, [ebp - 0x18]
call dword [0x4a2ee8]
mov eax, dword [ebp - 0x3c]
cmp eax, 0xffffffff
mov dword [ebp - 0x40], vtable.CWSocket.0
je 0x420aed
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.00490f79
add ebp, 0x88
mov esp, ebp
pop ebp
ret 0xc