Function at 0x41dd40
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f301
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6e0
push ebx
mov eax, dword [0x431708]
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
push ebx
push ebx
push ebx
mov esi, ecx
push ebx
push ebx
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x40], esi
mov dword [eax + 0x7378], 1
mov dword [ebp - 0x2c], ebx
call sub.mfc42.dll_CInternetSession::CInternetSession
mov eax, dword [0x431708]
mov dword [ebp - 4], ebx
cmp dword [eax + 0x7374], ebx
jne 0x41e579
lea ecx, [ebp - 0x20]
mov dword [eax + 0x7360], ebx
call sub.mfc42.dll_CString::CString_3
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x1c7]
mov byte [ebp - 0x1c8], bl
rep stosd dword es:[edi], eax
mov ecx, dword [0x431708]
mov esi, dword [sym.imp.msvcrt.dll_sprintf]
add ecx, 0x720c
lea edx, [ebp - 0x1c8]
stosw word es:[edi], ax
push ecx
push 0x403a80
push edx
mov byte [ebp - 4], 1
stosb byte es:[edi], al
call esi
add esp, 0xc
lea ecx, [ebp - 0x58]
call fcn.0042da10
push ebx
lea eax, [ebp - 0x1c8]
push 0x3002
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call sub.mfc42.dll_CStdioFile::Open
test eax, eax
je 0x41deed
lea ecx, [ebp - 0x1c8]
push 0x104
push ecx
lea ecx, [ebp - 0x58]
call sub.mfc42.dll_CStdioFile::ReadString
test eax, eax
je 0x41dee5
lea edi, [ebp - 0x1c8]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebp - 0x1c8]
mov byte [ebp + ecx - 0x1c9], al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41de83
mov al, byte [ebp + edx - 0x1c8]
lea edi, [ebp - 0x1c8]
xor al, dl
or ecx, 0xffffffff
mov byte [ebp + edx - 0x1c8], al
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x41de5e
lea edx, [ebp - 0x1c8]
lea eax, [ebp - 0x20]
push edx
push 0x4019f0
push eax
call sub.mfc42.dll_CString::Format
mov edx, dword [0x431708]
add esp, 0xc
lea ecx, [ebp - 0x20]
mov eax, dword [edx + 0x7360]
push ecx
lea ecx, [eax*4 + 0x4316e0]
call sub.mfc42.dll_CString::operator
mov eax, dword [0x431708]
push 0x104
mov ecx, dword [eax + 0x7360]
inc ecx
mov dword [eax + 0x7360], ecx
lea ecx, [ebp - 0x1c8]
push ecx
lea ecx, [ebp - 0x58]
call sub.mfc42.dll_CStdioFile::ReadString
test eax, eax
jne 0x41de35
lea ecx, [ebp - 0x58]
call sub.mfc42.dll_CStdioFile::Close
mov eax, dword [0x431708]
cmp dword [eax + 0x7360], ebx
jne 0x41e31d
cmp byte [eax + 0x71f8], 0x30
jne 0x41e31d
lea ecx, [ebp - 0x8c]
call fcn.0042da10
mov edx, dword [0x431708]
lea eax, [ebp - 0x350]
add edx, 0x720c
mov byte [ebp - 4], 3
push edx
push 0x403a80
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x350]
push ebx
push 0x3002
push ecx
lea ecx, [ebp - 0x8c]
call sub.mfc42.dll_CStdioFile::Open
lea ecx, [ebp - 0x18]
call sub.mfc42.dll_CString::CString_3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.mfc42.dll_CString::CString_3
mov edx, dword [0x431708]
mov byte [ebp - 4], 5
mov dword [ebp - 0x1c], ebx
mov edi, 0x403e58
cmp dword [edx + 0x7208], ebx
je 0x41df83
mov edi, 0x403e20
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0xa0]
call sub.mfc42.dll_CInternetSession::CInternetSession
push ebx
push ebx
push 1
push 1
push edi
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 7
call sub.mfc42.dll_CInternetSession::OpenURL
mov esi, eax
mov eax, 1
jmp 0x41dfcf
test eax, eax
mov dword [ebp - 4], 6
je 0x41e130
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call dword [eax + 0x60]
test eax, eax
je 0x41e130
lea ecx, [ebp - 0x14]
call sub.mfc42.dll_CString::TrimLeft
lea ecx, [ebp - 0x14]
call sub.mfc42.dll_CString::TrimRight
lea edx, [ebp - 0x1c]
push 2
push edx
lea ecx, [ebp - 0x14]
call sub.mfc42.dll_CString::Left
mov eax, dword [eax]
push 0x403e00
push eax
call dword [sym.imp.msvcrt.dll__mbscmp]
add esp, 8
lea ecx, [ebp - 0x1c]
test eax, eax
sete bl
call sub.mfc42.dll_CString::CString
test bl, bl
je 0x41e130
mov edi, dword [ebp - 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffc
lea eax, [ebp - 0x24]
push ecx
push eax
lea ecx, [ebp - 0x14]
call sub.mfc42.dll_CString::Right
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call sub.mfc42.dll_CString::operator
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call sub.mfc42.dll_CString::CString
mov edx, dword [0x431708]
lea ecx, [ebp - 0x18]
push ecx
mov eax, dword [edx + 0x7360]
lea ecx, [eax*4 + 0x4316e0]
call sub.mfc42.dll_CString::operator
mov edi, dword [ebp - 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffc
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x14]
call sub.mfc42.dll_CString::Right
mov eax, dword [eax]
lea edx, [ebp - 0x78]
push eax
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 8
lea ecx, [ebp - 0x28]
call sub.mfc42.dll_CString::CString
lea edi, [ebp - 0x78]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41e0e7
mov cl, byte [ebp + edx - 0x78]
lea edi, [ebp - 0x78]
xor cl, dl
xor eax, eax
mov byte [ebp + edx - 0x78], cl
or ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x41e0cb
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x18]
push eax
push 0x401e44
push ecx
call sub.mfc42.dll_CString::Format
mov edx, dword [ebp - 0x18]
add esp, 0xc
lea ecx, [ebp - 0x8c]
push edx
call sub.mfc42.dll_CStdioFile::WriteString
mov eax, dword [0x431708]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
mov edi, dword [eax + 0x7360]
inc edi
mov dword [eax + 0x7360], edi
mov eax, dword [esi]
call dword [eax + 0x60]
test eax, eax
jne 0x41dff1
mov eax, dword [0x431708]
mov ecx, dword [eax + 0x7360]
test ecx, ecx
jne 0x41e2bd
mov ecx, dword [eax + 0x7208]
mov eax, 0x403dc8
test ecx, ecx
je 0x41e157
mov eax, 0x403d94
push 0
push 0
push 1
push 1
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xa
call sub.mfc42.dll_CInternetSession::OpenURL
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
mov edx, dword [esi]
mov dword [ebp - 4], 6
call dword [edx + 0x60]
test eax, eax
je 0x41e2bd
lea ecx, [ebp - 0x14]
call sub.mfc42.dll_CString::TrimLeft
lea ecx, [ebp - 0x14]
call sub.mfc42.dll_CString::TrimRight
lea ecx, [ebp - 0x28]
push 2
push ecx
lea ecx, [ebp - 0x14]
call sub.mfc42.dll_CString::Left
mov eax, dword [eax]
push 0x403e00
push eax
call dword [sym.imp.msvcrt.dll__mbscmp]
add esp, 8
lea ecx, [ebp - 0x28]
test eax, eax
sete bl
call sub.mfc42.dll_CString::CString
test bl, bl
je 0x41e2bd
mov edi, dword [ebp - 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1c]
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffc
push ecx
push edx
lea ecx, [ebp - 0x14]
call sub.mfc42.dll_CString::Right
push eax
mov eax, dword [0x431708]
mov byte [ebp - 4], 0xc
mov ecx, dword [eax + 0x7360]
lea ecx, [ecx*4 + 0x4316e0]
call sub.mfc42.dll_CString::operator
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call sub.mfc42.dll_CString::CString
mov edi, dword [ebp - 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x24]
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffc
push ecx
push edx
lea ecx, [ebp - 0x14]
call sub.mfc42.dll_CString::Right
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 8
lea ecx, [ebp - 0x24]
call sub.mfc42.dll_CString::CString
lea edi, [ebp - 0x78]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41e274
mov cl, byte [ebp + edx - 0x78]
lea edi, [ebp - 0x78]
xor cl, dl
xor eax, eax
mov byte [ebp + edx - 0x78], cl
or ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x41e258
lea ecx, [ebp - 0x78]
lea edx, [ebp - 0x18]
push ecx
push 0x401e44
push edx
call sub.mfc42.dll_CString::Format
mov eax, dword [ebp - 0x18]
add esp, 0xc
lea ecx, [ebp - 0x8c]
push eax
call sub.mfc42.dll_CStdioFile::WriteString
mov eax, dword [0x431708]
mov ecx, esi
mov ebx, dword [eax + 0x7360]
inc ebx
mov dword [eax + 0x7360], ebx
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push eax
call dword [edx + 0x60]
test eax, eax
jne 0x41e18b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
lea ecx, [ebp - 0xa0]
call sub.mfc42.dll_CInternetSession::Close
lea ecx, [ebp - 0x8c]
call sub.mfc42.dll_CStdioFile::Close
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 5
call fcn.0042dd70
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.mfc42.dll_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.mfc42.dll_CString::CString
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call sub.mfc42.dll_CStdioFile::CStdioFile
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
test eax, eax
jne 0x41e3e4
push ebx
push 2
push 2
call dword [sym.imp.wsock32.dll_socket]
mov edi, eax
lea eax, [ebp - 0x3c]
push 0x10
push eax
push edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x3c], 2
mov word [ebp - 0x3a], bx
call dword [sym.imp.wsock32.dll_bind]
test eax, eax
jge 0x41e3ad
push edi
call dword [sym.imp.wsock32.dll_closesocket]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call sub.mfc42.dll_CStdioFile::CStdioFile
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call sub.mfc42.dll_CString::CString
jmp 0x41e5bc
lea ecx, [ebp - 0x2c]
push 4
push ecx
push 0x1002
push 0xffff
push edi
mov dword [ebp - 0x2c], 0x3e8
call dword [sym.imp.wsock32.dll_setsockopt]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], 1
push edx
push 0x8004667e
push edi
call dword [sym.imp.wsock32.dll_ioctlsocket]
jmp 0x41e3e7
mov edi, dword [ebp - 0x18]
mov eax, dword [0x431708]
mov eax, dword [eax + 0x7360]
cmp eax, ebx
jle 0x41e352
test eax, eax
jle 0x41e4c3
mov esi, 0x4316e0
mov edi, dword [esi]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffa
push ecx
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call sub.mfc42.dll_CString::Left
mov eax, dword [eax]
push eax
call dword [sym.imp.wsock32.dll_inet_addr]
lea ecx, [ebp - 0x2c]
mov edi, eax
call sub.mfc42.dll_CString::CString
lea edx, [ebp - 0x1c]
push 4
push edx
mov ecx, esi
call sub.mfc42.dll_CString::Right
mov eax, dword [eax]
push eax
call dword [sym.imp.msvcrt.dll_atoi]
mov ecx, dword [0x431708]
add esp, 4
mov dword [ecx + 0x732c], eax
lea ecx, [ebp - 0x1c]
call sub.mfc42.dll_CString::CString
mov edx, dword [0x431708]
mov dword [ebp - 0x38], edi
mov word [ebp - 0x3c], 2
mov ax, word [edx + 0x732c]
push eax
call dword [sym.imp.wsock32.dll_htons]
lea ecx, [ebp - 0x3c]
push 0x10
push ecx
mov word [ebp - 0x3a], ax
mov eax, dword [ebp - 0x18]
push 0
lea edx, [ebp - 0x24c]
push 0x84
push edx
push eax
mov dword [ebp - 0x24c], 0x26
call dword [sym.imp.wsock32.dll_sendto]
mov ecx, dword [0x431708]
inc ebx
add esi, 4
cmp ebx, dword [ecx + 0x7360]
jl 0x41e407
mov edi, dword [ebp - 0x18]
mov ebx, dword [sym.imp.kernel32.dll_GetTickCount]
call ebx
mov esi, eax
mov dword [ebp - 0x44], 0x10
lea edx, [ebp - 0x44]
lea eax, [ebp - 0xc4]
push edx
push eax
push 0
lea ecx, [ebp - 0x6ec]
push 0x39c
push ecx
push edi
call dword [sym.imp.wsock32.dll_recvfrom]
test eax, eax
jle 0x41e535
cmp byte [ebp - 0x6ec], 0x26
jne 0x41e4d4
mov edx, dword [ebp - 0xc0]
push edx
call dword [sym.imp.wsock32.dll_inet_ntoa]
push eax
mov eax, dword [0x431708]
add eax, 0x7314
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
mov ecx, dword [0x431708]
add esp, 8
mov dword [ecx + 0x7374], 1
jmp 0x41e550
call ebx
sub eax, esi
cmp eax, 0xbb8
jbe 0x41e4d4
mov edx, dword [0x431708]
mov dword [edx + 0x7360], 0
push edi
call dword [sym.imp.wsock32.dll_closesocket]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call sub.mfc42.dll_CStdioFile::CStdioFile
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call sub.mfc42.dll_CString::CString
mov eax, dword [0x431708]
mov esi, dword [ebp - 0x40]
xor ebx, ebx
mov dword [eax + 0x7378], ebx
mov eax, dword [0x431708]
xor edi, edi
cmp dword [eax + 4], ebx
jle 0x41e5bc
mov ecx, dword [ebx + eax + 0x4f4]
test ecx, ecx
je 0x41e5ae
mov ecx, dword [ebx + eax + 0x578]
test ecx, ecx
je 0x41e5ae
push edi
mov ecx, esi
call fcn.0041e9d0
mov eax, dword [0x431708]
mov ecx, dword [eax + 4]
inc edi
add ebx, 0x358
cmp edi, ecx
jl 0x41e58b
lea ecx, [ebp - 0xb4]
mov dword [ebp - 4], 0xffffffff
call fcn.0042dd70
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret