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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462e6b
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push esi
push edi
mov eax, dword [0x47e4f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
push 1
push 1
push 0x480c28
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x422992
lea eax, [ebp - 0x10]
push eax
call fcn.00418bf0
push 0x46a4c8
push eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 4], 0
call fcn.0040f860
add esp, 0x10
mov eax, dword [eax]
push eax
mov byte [ebp - 4], 1
call fcn.004219e0
mov ecx, eax
call fcn.00421860
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42295f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422985
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x480c28
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esi + 8]
cmp dword [ecx - 0xc], 0
je 0x4229c0
mov edx, dword [esi + 0xc]
cmp dword [edx - 0xc], 0
je 0x4229c0
call fcn.004219e0
mov eax, dword [eax + 0x38]
test eax, eax
je 0x4229b8
call eax
mov ebx, eax
test ebx, ebx
jne 0x4229d4
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], 0
call fcn.00420560
push 0x46a470
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 2
call fcn.00419ce0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00422840
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422a2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp edi, eax
jbe 0x422a3c
call fcn.00446257
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], eax
jbe 0x422a4f
call fcn.00446257
test esi, esi
je 0x422a58
cmp esi, dword [ebp - 0x30]
je 0x422a5d
call fcn.00446257
cmp edi, dword [ebp - 0x14]
je 0x422acc
test esi, esi
jne 0x422a97
call fcn.00446257
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x422a77
call fcn.00446257
mov esi, dword [edi]
call fcn.004219e0
mov eax, dword [eax + 0xd4]
test eax, eax
je 0x422a9b
mov ecx, dword [ebp - 0x10]
push esi
push ecx
call eax
add esp, 8
mov dword [ebp - 0x10], eax
jmp 0x422aa2
mov eax, dword [esi]
jmp 0x422a6d
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x422ac8
call fcn.00446257
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x422aba
call fcn.00446257
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x38]
add edi, 4
jmp 0x422a42
mov eax, dword [eax]
jmp 0x422ab0
push 0
push 0x2b
push ebx
call fcn.00421a40
push 0x422210
push 0x4e58
push ebx
call fcn.00421a40
mov esi, dword [ebp - 0x18]
push esi
push 0x2749
push ebx
call fcn.00421a40
push esi
push 0x2711
push ebx
call fcn.00421a40
push 0x421980
push 0x4e2b
push ebx
call fcn.00421a40
push esi
push 0x272d
push ebx
call fcn.00421a40
add esp, 0x48
push 0x421730
push 0x4e6f
push ebx
call fcn.00421a40
mov eax, dword [esi + 8]
add esp, 0xc
push 0xfde9
lea edx, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xbc], edx
call fcn.00421790
sub esp, 0x84
mov edi, esp
push 0x2712
mov ecx, 0x21
lea esi, [ebp - 0xbc]
push ebx
mov byte [ebp - 4], 4
rep movsd dword es:[edi], dword [esi]
call fcn.00421a40
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xb8]
add esp, 0x8c
mov byte [ebp - 4], 2
cmp eax, ecx
je 0x422b9a
push eax
call fcn.004465ab
add esp, 4
push 0x2710
push 0x9c
push ebx
call fcn.00421a40
mov esi, dword [ebp - 0x18]
mov edx, dword [esi + 0x20]
imul edx, edx, 0x3e8
push edx
push 0x9b
push ebx
call fcn.00421a40
push 0
push 0x40
push ebx
call fcn.00421a40
push 0
push 0x51
push ebx
call fcn.00421a40
push 1
push 0x34
push ebx
call fcn.00421a40
add esp, 0x3c
call fcn.004219e0
mov eax, dword [eax + 0x40]
test eax, eax
je 0x422bf9
push ebx
call eax
add esp, 4
mov edi, eax
jmp 0x422bfe
mov edi, 2
call fcn.004219e0
mov eax, dword [eax + 0x28]
test eax, eax
je 0x422c10
push ebx
call eax
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x422c2c
call fcn.004219e0
mov eax, dword [eax + 0xd8]
test eax, eax
je 0x422c2c
push ebx
call eax
add esp, 4
mov eax, dword [esi + 0x68]
test eax, eax
je 0x422c4b
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [esi + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x68], 0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ecx, ecx
test edi, edi
sete cl
mov dword [ebp - 4], 0xffffffff
mov esi, ecx
lea ecx, [ebp - 0x30]
call fcn.00419e80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret