Function at 0x412550
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427f2d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x438348]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx + 0xd0]
lea ecx, [ebx + 0xd0]
cmp dword [eax - 0xc], 0
jne 0x41267b
call fcn.00403a60
mov ecx, eax
test ecx, ecx
je 0x412a19
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x400
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x400
or ecx, edx
mov dword [ebp - 4], 0
jge 0x4125e0
push 0x400
lea ecx, [ebp - 0x10]
call fcn.004060f0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0
call sub.urlmon.dll_ObtainUserAgentString
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.004181ad
add esp, 8
test eax, eax
js 0x412a23
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x412a23
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x412626
xor edi, edi
jmp 0x412648
push 0xfde9
lea eax, [ebx + 0x1f0]
mov ecx, 0x43a16c
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040a360
mov eax, dword [ebp - 0x10]
mov edi, 1
lea esi, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x412667
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push ecx
mov ecx, 0x43a16c
call fcn.0040ae70
cmp dword [ebx + 0xd8], 5
lea esi, [ebx + 0x1f0]
mov edi, eax
mov ecx, str.Mozilla_5.0
mov eax, str.Mozilla_4.0
mov dword [ebp - 0x18], edi
cmovbe ecx, eax
push 0xb
push ecx
mov ecx, esi
call fcn.00404080
cmp edi, 0xa
jg 0x4127ae
push edi
lea eax, [ebp - 0x28]
mov ecx, 0x43a16c
push eax
call fcn.0040acd0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 1
push str.__compatible__MSIE
push eax
call fcn.0040bcb0
push 0x42ab28
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
call fcn.00409ac0
lea ecx, [ebx + 0x1e8]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040d400
push 0x42ab24
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push eax
call fcn.00409ac0
add esp, 0x30
mov eax, dword [eax]
mov ecx, esi
mov byte [ebp - 4], 5
push dword [eax - 0xc]
push eax
call fcn.0040a210
mov edx, dword [ebp - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41274f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov eax, edi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41276d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41278b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4127a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
jmp 0x412811
lea eax, [ebx + 0x1e8]
push eax
lea eax, [ebp - 0x24]
push str.__Windows_NT
push eax
call fcn.0040bcb0
push 0x42ab24
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 6
push eax
call fcn.00409ac0
add esp, 0x18
mov eax, dword [eax]
mov ecx, esi
mov byte [ebp - 4], 7
push dword [eax - 0xc]
push eax
call fcn.0040a210
mov edx, dword [ebp - 0x28]
or edi, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41280e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41282f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx + 0x1ec], 0
je 0x412846
push 7
push str._WOW64_
mov ecx, esi
call fcn.0040a210
mov eax, dword [ebp - 0x18]
cmp eax, 8
jg 0x412861
push 0xd
push str._Trident_4.0_
mov ecx, esi
call fcn.0040a210
jmp 0x412a02
cmp eax, 9
jg 0x412879
push 0xd
push str._Trident_5.0_
mov ecx, esi
call fcn.0040a210
jmp 0x412a02
cmp eax, 0xa
jg 0x412891
push 0xd
push str._Trident_6.0_
mov ecx, esi
call fcn.0040a210
jmp 0x412a02
call fcn.00403a60
mov ecx, eax
test ecx, ecx
je 0x412a2d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push str..0__like_Gecko
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 8
call fcn.00403ef0
test al, al
jne 0x412934
push 0
push 0
push 0xffffffffffffffff
push str..0__like_Gecko
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ebx, [eax - 1]
test ebx, ebx
jle 0x412929
mov esi, dword [ebp - 0x10]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4128ff
push ebx
lea ecx, [ebp - 0x10]
call fcn.00404280
mov esi, dword [ebp - 0x10]
push ebx
push esi
push 0xffffffffffffffff
push str..0__like_Gecko
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp ebx, dword [esi - 8]
jg 0x412a23
mov dword [esi - 0xc], ebx
xor eax, eax
mov word [esi + ebx*2], ax
mov ebx, dword [ebp - 0x14]
jmp 0x412937
lea ecx, [ebp - 0x10]
call fcn.00404220
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x18]
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 9
push eax
mov ecx, 0x43a16c
call fcn.0040acd0
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xa
push str._Trident_7.0__rv:
push eax
call fcn.0040bcb0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xb
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040d400
add esp, 0x18
mov eax, dword [eax]
lea ecx, [ebx + 0x1f0]
mov byte [ebp - 4], 0xc
push dword [eax - 0xc]
push eax
call fcn.0040a210
mov edx, dword [ebp - 0x2c]
mov eax, edi
mov byte [ebp - 4], 0xb
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4129aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
mov eax, edi
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4129c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x34]
mov eax, edi
mov byte [ebp - 4], 9
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4129e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x412a02
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004037a0
push 0x80070057
call fcn.004037a0
push 0x80004005
call fcn.004037a0
int3