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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x4012f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x4012c0
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], esi
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea eax, [ebp - 0x20]
push eax
push 0x800
call dword [sym.imp.MSVBVM60.DLL___vbaFixstrConstruct]
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
push esi
push esi
push esi
push esi
push 0x40eb94
lea ecx, [ebp - 0x48]
push ecx
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
call ebx
push eax
call fcn.0040ef60
mov esi, eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 0x24], esi
lea ecx, [ebp - 0x48]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
call edi
push 0
push 0x80000000
push 0
push 0
mov edx, dword [ebp - 0x34]
push edx
lea eax, [ebp - 0x48]
push eax
call ebx
push eax
push esi
call fcn.0040efac
mov esi, eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ecx, dword [ebp - 0x48]
push ecx
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
mov dword [ebp - 0x30], esi
lea ecx, [ebp - 0x48]
call edi
mov edx, 0x40f0c0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov dword [ebp - 0x40], 0xffffffff
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaLsetFixstr]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
cmp word [ebp - 0x40], 0
je 0x410a73
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0
call esi
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call edi
push eax
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
mov edx, dword [ebp - 0x30]
push edx
call fcn.0040eff8
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
push eax
mov edx, dword [ebp - 0x20]
push edx
push 0
call esi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 2
call ebx
add esp, 0xc
mov edx, dword [ebp - 0x38]
push edx
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcLeftCharBstr]
mov edx, eax
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
call esi
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x48]
push edx
push 2
call ebx
add esp, 0xc
mov eax, dword [ebp - 0x2c]
push eax
call edi
cmp eax, 0x400
jle 0x410a5c
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x41098e
mov dword [ebp - 0x40], 0
jmp 0x41098e
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x410a86
push eax
call fcn.0040f044
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x410a99
push eax
call fcn.0040f044
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x410aeb
jmp 0x410ad5
lea ecx, [ebp - 0x20]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
call esi
lea ecx, [ebp - 0x2c]
call esi
lea ecx, [ebp - 0x34]
call esi
ret