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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db6a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x50e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
movzx edx, dx
mov dword [ebp - 0x1b0], esi
xor edi, edi
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1c8], ecx
mov dword [ebp - 0x1c0], edx
cmp dword [ebx + 0x140], esi
je 0x452dde
mov edi, dword [sym.imp.WININET.dll_InternetQueryOptionW]
lea eax, [ebp - 0x1b8]
push eax
push esi
push 0x26
push esi
mov dword [ebp - 0x1b8], esi
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x452dca
mov ecx, dword [ebp - 0x1b8]
push ecx
call fcn.004a64f8
add esp, 4
lea edx, [ebp - 0x1b8]
push edx
mov esi, eax
push esi
push 0x26
push 0
call edi
mov edi, esi
test esi, esi
jne 0x452dde
mov dword [ebx + 4], 3
xor eax, eax
jmp 0x453457
lea esi, [ebp - 0x2c]
call fcn.0042fb30
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
jne 0x452e01
push 0x66
push str.Mozilla_5.0__Windows_NT_5.1__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_27.0.1453.116_Safari_537.36
mov ecx, esi
call fcn.00405360
movzx eax, byte [0x5130bf]
lea ecx, [ebp - 0x120]
push ecx
mov byte [ebp - 0x1b1], al
call fcn.00404920
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x120]
mov ecx, dword [edx + 4]
push 0
push 0
lea ecx, [ebp + ecx - 0x120]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
movzx eax, byte [ebp - 0x1b1]
mov byte [ebp - 0x77], al
mov dword [ebp - 0x70], 3
mov byte [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0x110]
push 0x4ecb18
push ecx
mov byte [ebp - 4], 2
call fcn.00405c70
mov eax, dword [ebp - 0x2c]
add esp, 8
cmp dword [ebp - 0x18], 0x10
jae 0x452e78
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x110]
push edx
call fcn.00405c70
add esp, 8
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0
call fcn.00458570
cmp dword [ebx + 0x140], 0
je 0x452ed4
mov eax, dword [edi + 8]
push 3
push eax
lea edx, [ebp - 0xf0]
lea ecx, [ebp - 0xec]
push edx
mov dword [ebp - 0xf0], ecx
call fcn.00449870
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0xf0]
mov dword [ebp - 0x1b0], 1
jmp 0x452ed6
xor esi, esi
cmp dword [ebx + 0x140], 0
je 0x452f0c
mov eax, dword [edi + 4]
push 3
push eax
lea edx, [ebp - 0x1a8]
lea ecx, [ebp - 0x1a4]
push edx
mov dword [ebp - 0x1a8], ecx
call fcn.00449870
or dword [ebp - 0x1b0], 2
mov eax, dword [ebp - 0x1a8]
jmp 0x452f0e
xor eax, eax
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
jae 0x452f1a
lea ecx, [ebp - 0x2c]
push 0
push esi
push eax
xor eax, eax
cmp dword [ebx + 0x140], eax
setne al
lea eax, [eax + eax + 1]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
test byte [ebp - 0x1b0], 2
mov esi, dword [sym.imp.MSVCR100.dll_free]
mov dword [ebx + 8], eax
je 0x452f64
mov eax, dword [ebp - 0x1a8]
and dword [ebp - 0x1b0], 0xfffffffd
lea ecx, [ebp - 0x1a4]
cmp eax, ecx
je 0x452f64
push eax
call esi
add esp, 4
mov dword [ebp - 4], 0
test byte [ebp - 0x1b0], 1
je 0x452f8a
mov eax, dword [ebp - 0xf0]
lea edx, [ebp - 0xec]
cmp eax, edx
je 0x452f8a
push eax
call esi
add esp, 4
cmp dword [ebx + 0x140], 0
je 0x452fa1
test edi, edi
je 0x452fa1
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x452fc9
cmp dword [ebp - 0x18], 0x10
mov dword [ebx + 4], 2
jb 0x452fc2
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
jmp 0x453457
cmp dword [ebx + 0x11c], 0
lea eax, [ebx + 0x11c]
jbe 0x452fe4
push 4
push eax
push 2
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [ebx + 8]
push 0x452620
push ecx
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackA]
cmp eax, 0xffffffff
jne 0x453019
cmp dword [ebp - 0x18], 0x10
mov dword [ebx + 4], 4
jb 0x452fc2
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
jmp 0x453457
lea edi, [ebx + 0x50]
call fcn.0042ff40
cmp dword [ebx + 0xd4], 0
lea edi, [ebx + 0xc4]
ja 0x453036
mov edi, dword [ebp - 0x1bc]
cmp dword [edi + 0x14], 0x10
jb 0x45303e
mov edi, dword [edi]
mov esi, 0xf
mov eax, edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x453056
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.00405360
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 4
mov dword [ebp - 0x1b8], esp
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x48]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004059c0
call fcn.00460790
add esp, 0x1c
test al, al
jne 0x4530d5
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1b8], esp
push 0xffffffffffffffff
push 0
lea edx, [ebx + 0xe0]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], 0
push edx
mov byte [ecx], al
call fcn.004059c0
call fcn.00460790
add esp, 0x1c
test al, al
jne 0x4530d5
xor eax, eax
jmp 0x4530da
mov eax, 1
mov edi, 0x10
mov dword [ebx + 0x264], eax
mov dword [ebx + 0x268], eax
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x4530f6
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x1c0]
mov edx, dword [ebx + 8]
push ebx
push 0
push 3
push 0
push 0
push ecx
push eax
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x45315b
cmp dword [ebp - 0x34], edi
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov dword [ebx + 4], 6
jb 0x453133
mov eax, dword [ebp - 0x48]
push eax
call edi
add esp, 4
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
jb 0x452fc2
mov ecx, dword [ebp - 0x2c]
push ecx
call edi
add esp, 4
xor eax, eax
jmp 0x453457
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x1c4]
push edx
lea eax, [ebp - 0x1ac]
push eax
push 0x1f
push ecx
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1c4], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
cmp dword [ebp + 0xc], 0x100b
jne 0x45319e
or dword [ebp - 0x1ac], 0x4800000
jmp 0x4531a8
or dword [ebp - 0x1ac], 0x84000000
cmp dword [ebx + 0x1bc], 0
jne 0x4531bb
or dword [ebp - 0x1ac], 0x200000
mov eax, dword [ebx + 0x20c]
test eax, eax
je 0x45320b
test al, 1
je 0x4531d3
or dword [ebp - 0x1ac], 0x80
test al, 2
je 0x4531e1
or dword [ebp - 0x1ac], 0x100
test al, 4
je 0x4531ef
or dword [ebp - 0x1ac], 0x1000
test al, 8
je 0x4531fd
or dword [ebp - 0x1ac], 0x2000
test al, 0x10
je 0x45320b
or dword [ebp - 0x1ac], 0x200
mov ecx, dword [ebp - 0x1c8]
cmp dword [ecx + 0x14], edi
jb 0x453218
mov ecx, dword [ecx]
mov eax, dword [ebx + 0x1b8]
lea edx, [eax*8]
sub edx, eax
cmp dword [edx*4 + 0x50f7f4], edi
lea eax, [edx*4 + 0x50f7e0]
jb 0x453239
mov eax, dword [eax]
mov edx, dword [ebp - 0x1ac]
push ebx
push edx
push 0
push 0
push 0
push ecx
push eax
mov eax, dword [ebx + 0xc]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebx + 0x10], eax
test eax, eax
jne 0x453285
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x453285
mov dword [ebx + 4], 5
lea ecx, [ebp - 0x48]
call fcn.004054e0
lea ecx, [ebp - 0x2c]
call fcn.004054e0
xor eax, eax
jmp 0x453457
cmp dword [ebx + 0x140], 0
je 0x4532f3
mov ecx, dword [ebx + 0x154]
cmp dword [ebx + 0x158], edi
lea eax, [ebx + 0x144]
jb 0x4532a4
mov eax, dword [eax]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
inc ecx
push ecx
mov ecx, dword [ebx + 0x10]
push eax
push 0x2b
push ecx
call esi
test eax, eax
jne 0x4532c2
mov dword [ebx + 4], 7
jmp 0x45326e
mov ecx, dword [ebx + 0x170]
cmp dword [ebx + 0x174], edi
lea eax, [ebx + 0x160]
jb 0x4532d8
mov eax, dword [eax]
mov edx, dword [ebx + 0x10]
inc ecx
push ecx
push eax
push 0x2c
push edx
call esi
test eax, eax
jne 0x4532f3
mov dword [ebx + 4], 8
jmp 0x45326e
cmp dword [ebx + 0xd4], 0
ja 0x453305
cmp dword [ebx + 0xf0], 0
jbe 0x453320
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1bc]
mov edx, dword [ebx + 0x10]
movzx edi, word [ebp - 0x1c0]
push eax
push ecx
push edx
call fcn.00454000
mov edi, dword [ebx + 0x10]
mov esi, ebx
call fcn.00453f20
cmp dword [ebx + 0x1c0], 0
je 0x453366
push str.Connection:_Close
lea ecx, [ebp - 0x64]
call fcn.00405490
cmp dword [ebp - 0x50], 0x10
mov eax, dword [ebp - 0x64]
jae 0x45334c
lea eax, [ebp - 0x64]
push 0xa0000000
push 0xffffffffffffffff
push eax
mov eax, dword [ebx + 0x10]
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
lea ecx, [ebp - 0x64]
call fcn.004054e0
mov ecx, ebx
call fcn.00454b30
test eax, eax
jne 0x453387
cmp dword [ebx + 0x18], 4
je 0x45326e
mov edi, ebx
call fcn.00454d70
jmp 0x45326e
push 0x16
lea esi, [ebp - 0x64]
mov edi, ebx
call fcn.00453c20
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebx + 0x4cc]
mov byte [ebp - 4], 5
call fcn.0040e640
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004054e0
push 1
lea esi, [ebp - 0x64]
call fcn.00453c20
push eax
lea ecx, [ebx + 0x4b0]
mov byte [ebp - 4], 6
call fcn.004045b0
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004054e0
push 0x13
lea esi, [ebp - 0x64]
call fcn.00453c20
push eax
lea ecx, [ebx + 0x478]
mov byte [ebp - 4], 7
call fcn.004045b0
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004054e0
push 5
lea esi, [ebp - 0x64]
call fcn.00453c20
push eax
lea ecx, [ebx + 0x45c]
mov byte [ebp - 4], 8
call fcn.004045b0
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004054e0
push 0xb
lea esi, [ebp - 0x64]
call fcn.00453c20
push eax
lea ecx, [ebx + 0x440]
mov byte [ebp - 4], 9
call fcn.004045b0
mov ecx, esi
call fcn.004054e0
lea ecx, [ebp - 0x48]
call fcn.004054e0
lea ecx, [ebp - 0x2c]
call fcn.004054e0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a665a
mov esp, ebp
pop ebp
ret 8