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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46544b
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push esi
push edi
mov eax, dword [0x4814f0]
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 0x483c48
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x4232f2
lea eax, [ebp - 0x10]
push eax
call fcn.004193c0
push 0x46d480
push eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 4], 0
call fcn.0040f8b0
add esp, 0x10
mov eax, dword [eax]
push eax
mov byte [ebp - 4], 1
call fcn.004222f0
mov ecx, eax
call fcn.00422170
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 0x4232bf
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 0x4232e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x483c48
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esi + 8]
cmp dword [ecx - 0xc], 0
je 0x423320
mov edx, dword [esi + 0xc]
cmp dword [edx - 0xc], 0
je 0x423320
call fcn.004222f0
mov eax, dword [eax + 0x38]
test eax, eax
je 0x423318
call eax
mov ebx, eax
test ebx, ebx
jne 0x423334
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.004210e0
push 0x46d428
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 2
call fcn.0041a4b0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.004231a0
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 0x42338a
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 0x42339c
call fcn.00448717
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 0x4233af
call fcn.00448717
test esi, esi
je 0x4233b8
cmp esi, dword [ebp - 0x30]
je 0x4233bd
call fcn.00448717
cmp edi, dword [ebp - 0x14]
je 0x42342c
test esi, esi
jne 0x4233f7
call fcn.00448717
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4233d7
call fcn.00448717
mov esi, dword [edi]
call fcn.004222f0
mov eax, dword [eax + 0xd4]
test eax, eax
je 0x4233fb
mov ecx, dword [ebp - 0x10]
push esi
push ecx
call eax
add esp, 8
mov dword [ebp - 0x10], eax
jmp 0x423402
mov eax, dword [esi]
jmp 0x4233cd
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x423428
call fcn.00448717
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x42341a
call fcn.00448717
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x38]
add edi, 4
jmp 0x4233a2
mov eax, dword [eax]
jmp 0x423410
push 0
push 0x2b
push ebx
call fcn.00422350
push 0x422ae0
push 0x4e58
push ebx
call fcn.00422350
mov esi, dword [ebp - 0x18]
push esi
push 0x2749
push ebx
call fcn.00422350
push esi
push 0x2711
push ebx
call fcn.00422350
push 0x422290
push 0x4e2b
push ebx
call fcn.00422350
push esi
push 0x272d
push ebx
call fcn.00422350
add esp, 0x48
push 0x422160
push 0x4e6f
push ebx
call fcn.00422350
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.00416fc0
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.00422350
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xb8]
add esp, 0x8c
mov byte [ebp - 4], 2
cmp eax, ecx
je 0x4234fa
push eax
call fcn.00448a6b
add esp, 4
push 0x2710
push 0x9c
push ebx
call fcn.00422350
mov esi, dword [ebp - 0x18]
mov edx, dword [esi + 0x20]
imul edx, edx, 0x3e8
push edx
push 0x9b
push ebx
call fcn.00422350
push 0
push 0x40
push ebx
call fcn.00422350
push 0
push 0x51
push ebx
call fcn.00422350
push 1
push 0x34
push ebx
call fcn.00422350
add esp, 0x3c
call fcn.004222f0
mov eax, dword [eax + 0x40]
test eax, eax
je 0x423559
push ebx
call eax
add esp, 4
mov edi, eax
jmp 0x42355e
mov edi, 2
call fcn.004222f0
mov eax, dword [eax + 0x28]
test eax, eax
je 0x423570
push ebx
call eax
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x42358c
call fcn.004222f0
mov eax, dword [eax + 0xd8]
test eax, eax
je 0x42358c
push ebx
call eax
add esp, 4
mov eax, dword [esi + 0x68]
test eax, eax
je 0x4235ab
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.00422c90
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