Function at 0x406260
Capabilities:
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x45dc81
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x47b5b0]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b5b0]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov edi, dword [esp + 0x254]
push 0x206
mov esi, ecx
xor ebp, ebp
lea ecx, [esp + 0x3a]
mov ebx, edx
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x38], ebx
mov word [esp + 0x40], ax
call fcn.00434200
add esp, 0xc
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
mov ecx, 0x10
mov eax, ebx
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x4062d5
push ebp
push ebp
push ebp
push 1
push ebp
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
cmp ebx, ebp
je 0x4064f7
cmp edi, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x40632e
push edi
call ebp
test eax, eax
jle 0x40632e
push edi
push str.Host:__s_r_n
lea edx, [esp + 0x3c]
push 0x104
push edx
call fcn.00432d8c
lea eax, [esp + 0x44]
add esp, 0x10
mov ecx, eax
push ecx
mov dword [esp + 0x20], eax
call ebp
mov dword [esp + 0x18], eax
call fcn.00414a0e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406348
push 0x80004005
call fcn.00402190
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
cmp word [esp + 0x250], 0x50
mov dword [esp + 0x248], 0
jne 0x4063af
test esi, esi
jne 0x406384
xor eax, eax
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401f90
jmp 0x4064a9
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406390
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401f90
jmp 0x4064a9
push str.http:__
mov edi, esi
call ebp
push eax
push str.http:__
push esi
call fcn.004487f4
add esp, 0xc
test eax, eax
jne 0x4063d5
push str.http:__
call ebp
lea edi, [esi + eax*2]
push 0x2f
push edi
call fcn.00432dcb
mov edi, eax
add esp, 8
test edi, edi
jne 0x406407
movzx ecx, word [esp + 0x250]
push ecx
push esi
lea edx, [esp + 0x1c]
push str._s:_u
push edx
call fcn.00401e30
add esp, 0x10
jmp 0x4064a9
push esi
lea ecx, [esp + 0x24]
call fcn.00401860
mov ecx, edi
sub ecx, esi
sar ecx, 1
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, eax
mov byte [esp + 0x250], 1
call fcn.00402540
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 2
call fcn.00401940
mov byte [esp + 0x248], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406466
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x248], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40648e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
movzx ecx, word [esp + 0x250]
push edi
push ecx
push str.:_u_s
lea edi, [esp + 0x20]
call fcn.004046f0
add esp, 0xc
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
push 0
push 0
push edx
push eax
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
jne 0x4064fb
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [edi - 0x10]
mov dword [esp + 0x248], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4064f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x406570
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
push 0x4000000b
push esi
mov dword [esp + 0x38], 0x10
mov dword [esp + 0x44], 0
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x406538
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push esi
call ebx
jmp 0x4064d0
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
lea eax, [edi - 0x10]
mov dword [esp + 0x248], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40656b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00431fec
add esp, 0x238
ret