Function at 0x1000503e
Capabilities:
Connect to http server
Create http request
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
push ebx
lea eax, [ecx + 0x61858]
xor ebx, ebx
push esi
cmp word [eax], bx
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ebx
je 0x10005065
mov dword [ebp - 4], eax
jmp 0x10005111
cmp word [0x10011e28], bx
jne 0x1000510a
mov al, byte [0x10011a24]
mov ecx, 0x208
mov byte [ebp - 0x83c], al
xor eax, eax
lea edi, [ebp - 0x83b]
mov dword [ebp - 8], 0x823
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x83c]
push eax
push ebx
call sub.urlmon.dll_ObtainUserAgentString
test eax, eax
jne 0x10005101
lea eax, [ebp - 0x83c]
test eax, eax
jne 0x100050b9
xor edi, edi
jmp 0x100050ee
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.1000b600
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x83c]
push 0xffffffffffffffff
push eax
push ebx
push ebx
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x824
push 0x10011e28
push edi
call fcn.100081a5
add esp, 0xc
cmp word [0x10011e28], bx
je 0x10005111
mov dword [ebp - 4], 0x10011e28
push 0x10000000
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, dword [ebp + 8]
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x10005278
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
add eax, 0x2348
mov dword [ebp - 4], ebx
push eax
mov dword [ebp + 8], ebx
mov dword [ebp - 8], 3
call edi
test eax, eax
pop ecx
je 0x1000515e
mov eax, dword [esi + 0x20]
add eax, 0x2348
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x20]
add eax, 0x2048
push eax
call edi
test eax, eax
pop ecx
je 0x10005179
mov eax, dword [esi + 0x20]
add eax, 0x2048
mov dword [ebp + 8], eax
cmp dword [ebp - 4], ebx
jne 0x10005199
mov eax, dword [ebp - 0xc]
add eax, 0x60610
push eax
call edi
test eax, eax
pop ecx
je 0x10005199
mov eax, dword [ebp - 0xc]
add eax, 0x60610
mov dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
jne 0x100051b9
mov eax, dword [ebp - 0xc]
add eax, 0x60710
push eax
call edi
test eax, eax
pop ecx
je 0x100051b9
mov eax, dword [ebp - 0xc]
add eax, 0x60710
mov dword [ebp + 8], eax
mov ecx, dword [esi + 0x20]
push 1
pop eax
cmp dword [ecx + 4], eax
jne 0x100051c7
mov dword [ebp - 8], eax
push 0x100035a3
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov ecx, dword [ebp - 0xc]
push esi
mov eax, dword [esi + 0x20]
push dword [ecx + 0x26d8]
mov cx, word [eax]
add eax, 0x2148
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp - 4]
push ecx
push eax
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x10005278
mov eax, dword [ebp - 0xc]
add eax, 0x60810
push eax
mov dword [ebp + 8], eax
call edi
test eax, eax
pop ecx
jbe 0x10005273
cmp dword [ebp + 8], ebx
push 3
pop edi
mov dword [ebp - 0x18], edi
jne 0x10005228
mov dword [ebp - 0x14], ebx
jmp 0x1000525b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 8], eax
add eax, edi
and al, 0xfc
call fcn.1000b600
mov edi, esp
push ebx
push ebx
push dword [ebp - 8]
mov byte [edi], bl
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x18]
push 0xc
push eax
push 0x26
push dword [esi + 0x14]
mov dword [ebp - 0x10], 0x10011a24
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 1
pop eax
jmp 0x1000527a
xor eax, eax
lea esp, [ebp - 0x848]
pop edi
pop esi
pop ebx
leave
ret 4