Function at 0x33afc5
Capabilities:
Parse url
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3aa8
call sub.ntdll.dll__chkstk
mov eax, dword [ebp + 0x20]
push ebx
push esi
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x24]
push edi
push 0x38
mov dword [eax], ebx
lea eax, [ebp - 0x84]
push ebx
push eax
mov dword [ebp - 0x88], ebx
call sub.ntdll.dll_memset
mov esi, 0x3258a0
lea edi, [ebp - 0x9c]
movsd dword es:[edi], dword [esi]
xor eax, eax
inc eax
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x44], eax
mov eax, dword [0x35440c]
add esp, 0xc
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x3c], ebx
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x4c], 4
cmp eax, ebx
jne 0x33b076
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x8b0]
push eax
mov esi, 0x3ff
push ebx
mov byte [ebp - 0x8b0], bl
mov dword [ebp - 0x38], esi
call sub.urlmon.dll_ObtainUserAgentString
test eax, eax
jne 0x33b061
cmp dword [ebp - 0x38], esi
ja 0x33b05a
mov esi, dword [ebp - 0x38]
mov byte [ebp + esi - 0x8b0], bl
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x8b0]
push eax
call fcn.003483b4
mov dword [0x35440c], eax
mov esi, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
push ebx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x31]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x40], 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
jne 0x33b103
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x33b103
mov eax, dword [ebp - 0x40]
cmp eax, ebx
je 0x33b0c6
inc eax
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
jmp 0x33b0c9
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
je 0x33b103
push ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x33b103
push dword [ebp - 8]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x33b0fd
push dword [ebp - 8]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x9b0]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x4b0]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0xab0]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x2aa8]
mov dword [ebp - 0x5c], eax
mov eax, 0x1000
mov esi, 0x100
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x3aa8]
mov dword [ebp - 0x88], 0x3c
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x54], ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x33b168
lea ecx, [ebp - 0x88]
push ecx
push 0x80000000
sub eax, edi
push eax
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x33b693
mov eax, dword [ebp - 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x33b195
sub eax, edx
cmp eax, 8
jb 0x33b693
mov eax, dword [ebp - 8]
add eax, 8
push 0x32589c
push eax
call sub.ntdll.dll_strstr
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x33b693
push esi
lea eax, [ebp - 0x29c]
push ebx
push eax
call sub.ntdll.dll_memset
lea eax, [ebp - 0x19c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x33b1df
sub eax, edx
je 0x33b20a
cmp eax, esi
jb 0x33b1f3
mov eax, 0xff
push eax
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x29c]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
push esi
push dword [ebp - 0x78]
call fcn.0033959a
pop ecx
pop ecx
push 8
lea eax, [ebp - 0x90]
push eax
push 0x32
push dword [ebp - 0x10]
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x90], 1
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push ebx
push ebx
push 3
push dword [ebp - 0x64]
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push dword [ebp - 0x78]
push dword [ebp - 0x10]
call fcn.00348407
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, ebx
je 0x33b693
cmp dword [ebp - 0x7c], 4
jne 0x33b26b
mov eax, 0x800000
jmp 0x33b26d
xor eax, eax
push ebx
or eax, 0x8400f200
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push dword [ebp + 0xc]
push edi
call fcn.00348463
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x33b290
push edi
jmp 0x33b68e
cmp dword [ebp + 0x10], ebx
je 0x33b372
lea eax, [ebp - 0x24]
push eax
push 0x3251d8
push dword [ebp + 0x10]
jmp 0x33b360
push 8
lea eax, [ebp - 0x9c]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNA]
test eax, eax
jne 0x33b356
lea eax, [ebp - 0x3c]
push eax
push 0x3253b8
add edi, 8
push edi
jmp 0x33b343
cmp byte [eax], 0x20
jne 0x33b2da
inc eax
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x3c]
cmp dword [ebp - 0x24], edi
jae 0x33b2e5
mov edi, dword [ebp - 0x24]
cmp edi, ebx
jne 0x33b2ec
mov edi, dword [ebp - 0x24]
push 0x325898
push dword [ebp - 0x10]
call sub.ntdll.dll_strstr
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x33b356
inc dword [ebp - 0x18]
mov byte [eax], bl
cmp edi, ebx
je 0x33b314
mov al, byte [edi - 1]
mov byte [ebp - 0x19], al
mov byte [edi - 1], bl
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetSetCookieA]
mov eax, dword [ebp - 0x18]
mov byte [eax - 1], 0x3d
cmp edi, ebx
je 0x33b334
mov al, byte [ebp - 0x19]
mov byte [edi - 1], al
cmp edi, dword [ebp - 0x24]
je 0x33b356
lea eax, [ebp - 0x3c]
push eax
push 0x3253b8
push ebx
call fcn.0032e752
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x33b2d1
lea eax, [ebp - 0x24]
push eax
push 0x3251d8
push ebx
call fcn.0032e752
mov edi, eax
add esp, 0xc
cmp edi, ebx
jne 0x33b2aa
cmp dword [ebp - 0x7c], 4
jne 0x33b39f
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x1f
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [ebp - 0x30], esi
push 4
lea eax, [ebp - 0x30]
push eax
push 0x1f
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
lea esi, [ebp - 0x29c]
lea eax, [ebp - 0x19c]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x33b3cb
cmp cl, bl
je 0x33b3c7
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x33b3cb
add eax, 2
add esi, 2
cmp cl, bl
jne 0x33b3ab
xor eax, eax
jmp 0x33b3d0
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x33b417
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x3b0]
push 0x32588c
push eax
call sub.ntdll.dll_sprintf
lea eax, [ebp - 0x3b0]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x33b3f8
push 0x20000000
sub eax, edx
push eax
lea eax, [ebp - 0x3b0]
push eax
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
cmp dword [ebp + 0x10], ebx
je 0x33b42d
mov eax, dword [ebp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x33b422
sub eax, edx
jmp 0x33b42f
xor eax, eax
push dword [ebp + 0x1c]
mov edi, dword [ebp - 4]
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push edi
call fcn.00348504
test eax, eax
jne 0x33b44c
push edi
jmp 0x33b686
mov esi, dword [ebp + 0x24]
push ebx
push ebx
push esi
push edi
call fcn.00348557
test eax, eax
je 0x33b446
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esi], ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x367d8c], ebx
mov dword [0x355f44], ebx
mov dword [0x34e39c], ebx
cmp dword [ebp - 0x28], ebx
je 0x33b535
lea eax, [ebp - 0x28]
push eax
push 0xff8
lea eax, [ebp - 0x1aa8]
push eax
push dword [ebp - 4]
call fcn.003485a7
mov dword [ebp - 0x44], eax
cmp eax, ebx
je 0x33b53a
push 0x1001
push 8
call edi
push eax
call esi
mov dword [0x367d8c], eax
cmp eax, ebx
je 0x33b520
mov dword [eax + 0xffc], ebx
cmp dword [0x34e39c], ebx
jne 0x33b4d7
mov eax, dword [0x367d8c]
mov dword [0x34e39c], eax
jmp 0x33b4ed
mov eax, dword [0x355f44]
mov ecx, dword [0x367d8c]
mov dword [eax + 0xffc], ecx
mov eax, dword [0x367d8c]
mov ecx, dword [ebp - 0x28]
mov dword [0x355f44], eax
mov dword [eax + 0xff8], ecx
push dword [ebp - 0x28]
lea eax, [ebp - 0x1aa8]
push eax
push dword [0x367d8c]
call sub.ntdll.dll_memcpy
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp - 0x28]
add esp, 0xc
add dword [eax], ecx
jmp 0x33b47c
call fcn.0032e708
push dword [ebp - 4]
call fcn.003484bf
push dword [ebp - 0xc]
call fcn.003484bf
cmp dword [ebp - 0x44], ebx
jne 0x33b544
call fcn.0032e708
jmp 0x33b683
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 0x14], ebx
je 0x33b5b0
push ebx
lea eax, [ebp - 0x14]
push eax
push 0xbaadc0de
push 0x16
push dword [ebp - 4]
call fcn.003485f7
test eax, eax
jne 0x33b5de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x33b5de
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 1]
test ecx, ecx
je 0x33b589
add eax, 2
push eax
push 8
call edi
push eax
call esi
mov dword [ebp - 0x20], eax
jmp 0x33b58c
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x20], ebx
je 0x33b53a
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
push 0x16
push dword [ebp - 4]
call fcn.003485f7
test eax, eax
je 0x33b53a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov byte [eax + ecx], bl
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp - 0x14]
add dword [eax], ecx
mov eax, dword [eax]
lea ecx, [eax + 1]
test ecx, ecx
je 0x33b5ce
add eax, 2
push eax
push 8
call edi
push eax
call esi
jmp 0x33b5d0
xor eax, eax
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
cmp eax, ebx
jne 0x33b5f8
mov eax, dword [ebp + 0x24]
mov dword [eax], ebx
push dword [ebp - 4]
call fcn.003484bf
push dword [ebp - 0xc]
call fcn.003484bf
call fcn.0032e708
jmp 0x33b693
xor esi, esi
cmp dword [ebp - 0x20], ebx
je 0x33b611
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push eax
call sub.ntdll.dll_memcpy
mov esi, dword [ebp - 0x14]
add esp, 0xc
mov eax, dword [0x34e39c]
mov dword [0x367d8c], eax
cmp dword [ebp - 0x2c], ebx
je 0x33b643
push dword [ebp - 0x2c]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x33b63e
push dword [ebp - 0x2c]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [0x367d8c]
cmp eax, ebx
je 0x33b674
push dword [eax + 0xff8]
push eax
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
add eax, esi
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [0x367d8c]
add esp, 0xc
add esi, dword [eax + 0xff8]
mov dword [ebp - 0x2c], eax
mov eax, dword [eax + 0xffc]
jmp 0x33b616
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov byte [esi + eax], bl
mov dword [ebp - 0x48], 1
push dword [ebp - 4]
call fcn.003484bf
push dword [ebp - 0xc]
call fcn.003484bf
mov edi, dword [ebp - 8]
cmp edi, ebx
je 0x33b6bf
cmp edi, dword [ebp + 8]
je 0x33b6bf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x33b6bf
push edi
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x48]
pop edi
pop esi
pop ebx
leave
ret