Function at 0x581c80
Capabilities:
Reference http user-agent string
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x582452
sub esp, 0x70
mov eax, dword [esp + 0x90]
test eax, eax
jne 0x5821c6
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x5820d0
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x88]
test edx, edx
je 0x582099
mov dword [esp + 0x50], eax
mov dword [esp + 0x30], ecx
mov eax, dword [edx + 0x20]
mov ecx, dword [esp + 0x74]
mov ebx, dword [ecx + 0x13c]
mov ebp, dword [esp + 0x8c]
mov dword [esp], ebp
mov dword [esp + 4], ebx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x14]
test eax, eax
jne 0x582087
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov ebx, dword [esp + 0x78]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
call fcn.0056fab0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
test eax, eax
jne 0x582075
mov eax, dword [esp + 0x74]
mov byte [eax + 0x144], 1
mov dword [esp + 0x68], edx
mov dword [esp + 0x48], ebx
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
call fcn.004a4ae0
mov eax, dword [esp + 8]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x48]
test edx, edx
je 0x581e85
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.00581bc0
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x74]
mov dword [esp], edx
call fcn.00581bc0
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x74]
mov dword [ebx + 0x150], edx
mov edx, dword [0xc83da0]
test edx, edx
jne 0x581e70
mov edx, dword [esp + 0x54]
mov dword [ebx + 0x154], edx
mov dword [ebx + 0x158], ecx
mov ecx, dword [0xc83da0]
test ecx, ecx
jne 0x581e63
mov dword [ebx + 0x15c], eax
lea eax, [0x831980]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [0x7c4500]
mov dword [esp + 8], eax
lea eax, [0x90d190]
mov dword [esp + 0xc], eax
call fcn.004152a0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
add esp, 0x70
ret
lea edi, [ebx + 0x15c]
call fcn.00459d90
jmp 0x581e23
lea edi, [ebx + 0x154]
mov edx, eax
mov eax, dword [esp + 0x54]
call fcn.00459d90
mov eax, edx
jmp 0x581e0d
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
call fcn.004a4bc0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x581f91
mov dword [esp + 0x4c], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.00581bc0
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x74]
mov dword [esp], edx
call fcn.00581bc0
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x74]
mov dword [ebx + 0x150], edx
mov edx, dword [0xc83da0]
test edx, edx
jne 0x581f7c
mov edx, dword [esp + 0x5c]
mov dword [ebx + 0x154], edx
mov dword [ebx + 0x158], eax
mov edx, dword [0xc83da0]
test edx, edx
jne 0x581f6d
mov dword [ebx + 0x15c], ecx
lea eax, [0x831980]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [0x7c4500]
mov dword [esp + 8], eax
lea eax, [0x90d190]
mov dword [esp + 0xc], eax
call fcn.004152a0
jmp 0x581e49
lea edi, [ebx + 0x15c]
mov eax, ecx
call fcn.00459d90
jmp 0x581f42
lea edi, [ebx + 0x154]
mov edx, eax
mov eax, dword [esp + 0x5c]
call fcn.00459d90
mov eax, edx
jmp 0x581f2c
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.00581bc0
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x3c], ecx
lea edx, [0x7e9040]
mov dword [esp], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 8], edx
call fcn.004086d0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x74]
mov dword [ebx + 0x150], edx
mov edx, dword [0xc83da0]
test edx, edx
jne 0x582060
mov edx, dword [esp + 0x58]
mov dword [ebx + 0x154], edx
mov dword [ebx + 0x158], ecx
mov ecx, dword [0xc83da0]
test ecx, ecx
jne 0x582053
mov dword [ebx + 0x15c], eax
lea eax, [0x831980]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [0x7c4500]
mov dword [esp + 8], eax
lea eax, [0x90d190]
mov dword [esp + 0xc], eax
call fcn.004152a0
jmp 0x581e49
lea edi, [ebx + 0x15c]
call fcn.00459d90
jmp 0x582028
lea edi, [ebx + 0x154]
mov edx, eax
mov eax, dword [esp + 0x58]
call fcn.00459d90
mov eax, edx
jmp 0x582012
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
add esp, 0x70
ret
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ebx
add esp, 0x70
ret
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.0056f9a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x5820be
mov eax, dword [esp + 0x74]
xor edx, edx
xor ebx, ebx
jmp 0x581d5e
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x70
ret
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x13c]
mov ebx, dword [esp + 0x84]
mov dword [esp], ebx
mov dword [esp + 4], edx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test edx, edx
jne 0x5821b4
test eax, eax
jne 0x582114
mov edx, eax
mov eax, ecx
mov ecx, edx
jmp 0x581cbb
mov dword [esp + 0x30], eax
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x74]
mov ebx, dword [edx + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004a4a00
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x582149
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
jmp 0x582109
mov dword [esp + 0x40], eax
mov dword [esp + 0x60], ecx
lea eax, [0x7f2bc0]
mov dword [esp], eax
call fcn.0040ac80
mov eax, dword [esp + 4]
mov dword [eax + 4], 4
lea ecx, [0x83f9d4]
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [0xc83da0]
test ecx, ecx
jne 0x5821a2
mov ecx, dword [esp + 0x60]
mov dword [eax + 0xc], ecx
lea ecx, [0x98adf0]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x70
ret
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x60]
call fcn.00459d90
mov eax, ecx
jmp 0x58218a
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], ebx
add esp, 0x70
ret
nop
lea eax, [0x7e7240]
mov dword [esp], eax
call fcn.0040ac80
mov edi, dword [esp + 4]
mov eax, dword [0xc83da0]
test eax, eax
jne 0x582438
mov ebx, dword [esp + 0x74]
mov dword [edi], ebx
mov dword [esp + 0x6c], edi
mov ebp, dword [esp + 0x88]
test ebp, ebp
jne 0x582406
mov esi, dword [esp + 0x80]
test esi, esi
jne 0x5823d4
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x64], ecx
mov edx, ebp
mov ebp, dword [ebx + 0x14c]
mov esi, dword [ebx + 0x148]
cmp ebp, 4
jne 0x582351
cmp dword [esi], 0x78696e75
jne 0x582290
mov ebp, dword [ebx + 0x14c]
mov esi, dword [ebx + 0x148]
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
lea eax, [0x98ecb0]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x90]
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x581ca8
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x70
ret
mov ebp, dword [ebx + 0x148]
mov esi, dword [ebx + 0x14c]
lea edi, [esi - 1]
cmp edi, esi
jae 0x582448
movzx edi, byte [esi + ebp - 1]
xchg edi, eax
cmp al, 0x34
xchg edi, eax
jne 0x5822c3
mov edi, dword [esp + 0x6c]
mov edi, esi
mov esi, ebp
mov ebp, edi
mov edi, dword [esp + 0x6c]
jmp 0x582246
xchg edi, eax
cmp al, 0x36
xchg edi, eax
je 0x5822b3
cmp dword [ebx + 0x13c], 2
jne 0x582312
mov dword [esp], 0
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
lea eax, [0x83f3a3]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.00446f30
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x6c]
jmp 0x582246
mov dword [esp], 0
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
lea eax, [0x83f3a5]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.00446f30
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x6c]
jmp 0x582246
cmp ebp, 8
jne 0x582374
cmp dword [esi], 0x78696e75
jne 0x582290
cmp dword [esi + 4], 0x6d617267
je 0x58223a
jmp 0x582290
cmp ebp, 0xa
jne 0x582290
mov dword [esp], esi
lea eax, [0x84187d]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.00402420
movzx eax, byte [esp + 0xc]
test al, al
je 0x5823b8
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x6c]
jmp 0x58223a
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x6c]
jmp 0x582290
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x84]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x88]
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x6c]
jmp 0x582213
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x8c]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x88]
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x6c]
jmp 0x582213
mov eax, dword [esp + 0x74]
call fcn.00459d90
mov ebx, eax
jmp 0x5821ed
mov eax, edi
mov ecx, esi
call fcn.00459e10
nop
call fcn.00458550
jmp fcn.00581c80