Function at 0x41030b
Capabilities:
Get common file path
Query environment variable

Disassembly:
sub esp, 0x218
mov eax, dword [0x4755d0]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x220]
and dword [esp + 8], 0
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push esi
mov esi, dword [esp + 0x228]
push edi
push 0x207
mov dword [esp + 0x18], eax
lea eax, [esp + 0x21]
push 0
push eax
mov dword [esp + 0x1c], esi
mov byte [esp + 0x28], 0
call fcn.00448090
add esp, 0xc
test ebp, ebp
je 0x410366
mov byte [ebp], 0
test esi, esi
je 0x4108f7
cmp byte [esi], 0
je 0x4108f7
test ebp, ebp
je 0x4108f7
mov ebx, dword [esp + 0x238]
cmp ebx, 1
jl 0x4108f7
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
cmp eax, 0x104
jl 0x4103c0
push esi
call edi
inc eax
cmp ebx, eax
jge 0x4103ab
mov eax, ebx
jmp 0x4103af
push esi
call edi
inc eax
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
inc eax
jmp 0x4108f9
push 0x45f818
push esi
call fcn.00447a30
pop ecx
pop ecx
test eax, eax
jne 0x4103e2
push 0x45e494
push esi
call fcn.00447a30
pop ecx
pop ecx
test eax, eax
je 0x4103ec
push esi
call fcn.0040d00f
test eax, eax
jne 0x41039f
lea eax, [ebx + 0x10000]
mov ecx, 0x1000
cmp eax, ecx
jg 0x4103fd
mov eax, ecx
push 1
push eax
call fcn.00447e84
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4108f7
push dword [esp + 0x10]
mov eax, ebx
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_sPath
dec eax
push eax
push ebp
push 0
push 3
call fcn.00442f38
add esp, 0x18
push ebp
call fcn.0040d00f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
jne 0x410441
mov byte [ebp], 0
jmp 0x410480
push 0
push 0x45f760
push ebp
call fcn.004417cc
push ebp
call edi
cmp byte [eax + ebp - 1], 0x5c
je 0x410460
push 0x45c800
push ebp
call ebx
push dword [esp + 0x10]
call edi
cmp eax, dword [esp + 0x238]
jge 0x410476
push dword [esp + 0x10]
push ebp
call ebx
cmp byte [ebp], 0
jne 0x410700
push esi
push 0x102
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
call edi
cmp byte [eax + esi - 1], 0x5c
je 0x41049e
push 0x45c800
push esi
call ebx
push dword [esp + 0x10]
push esi
call ebx
push esi
call fcn.0040d00f
test eax, eax
je 0x4104d2
push esi
call edi
inc eax
cmp dword [esp + 0x238], eax
jge 0x4104c5
mov eax, dword [esp + 0x238]
jmp 0x4104c9
push esi
call edi
inc eax
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [ebp], 0
jne 0x410700
cmp dword [esp + 0x14], 0
je 0x4104f0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4104f3
mov byte [esi], 0
push 3
push 0x45c800
push esi
call fcn.004417cc
push 0x45c800
push esi
call ebx
push dword [esp + 0x10]
push esi
call ebx
push esi
call fcn.0040d00f
test eax, eax
je 0x41053c
push esi
call edi
inc eax
cmp dword [esp + 0x238], eax
jge 0x41052f
mov eax, dword [esp + 0x238]
jmp 0x410533
push esi
call edi
inc eax
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [ebp], 0
jne 0x410700
push 0x102
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x45c800
push esi
call fcn.004417cc
push 0x45c800
push esi
call ebx
push dword [esp + 0x10]
push esi
call ebx
push esi
call fcn.0040d00f
test eax, eax
je 0x4105a4
push esi
call edi
inc eax
cmp dword [esp + 0x238], eax
jge 0x410597
mov eax, dword [esp + 0x238]
jmp 0x41059b
push esi
call edi
inc eax
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [ebp], 0
jne 0x410700
push 0x102
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call edi
cmp byte [eax + esi - 1], 0x5c
je 0x4105cc
push 0x45c800
push esi
call ebx
push dword [esp + 0x10]
push esi
call ebx
push esi
call fcn.0040d00f
test eax, eax
je 0x410600
push esi
call edi
inc eax
cmp dword [esp + 0x238], eax
jge 0x4105f3
mov eax, dword [esp + 0x238]
jmp 0x4105f7
push esi
call edi
inc eax
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [ebp], 0
jne 0x410700
push 0x102
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
call edi
cmp byte [eax + esi - 1], 0x5c
je 0x410628
push 0x45c800
push esi
call ebx
push dword [esp + 0x10]
push esi
call ebx
push esi
call fcn.0040d00f
test eax, eax
je 0x41065c
push esi
call edi
inc eax
cmp dword [esp + 0x238], eax
jge 0x41064f
mov eax, dword [esp + 0x238]
jmp 0x410653
push esi
call edi
inc eax
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [ebp], 0
jne 0x410700
push str.IEXPLORE.EXE
push dword [esp + 0x14]
call fcn.004010ff
pop ecx
pop ecx
test eax, eax
jne 0x4106a1
push str.Internet_Explore
push dword [esp + 0x14]
call fcn.004010ff
pop ecx
pop ecx
test eax, eax
jne 0x4106a1
push 0x45f7a0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x410700
push 0x102
push esi
push 0x45f790
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
call edi
cmp byte [eax + esi - 1], 0x5c
je 0x4106c4
push 0x45c800
push esi
call ebx
push str.Internet_Explorer_
push esi
call ebx
push dword [esp + 0x10]
push esi
call ebx
push esi
call fcn.0040d00f
test eax, eax
je 0x410700
push esi
call edi
inc eax
cmp dword [esp + 0x238], eax
jge 0x4106f3
mov eax, dword [esp + 0x238]
jmp 0x4106f7
push esi
call edi
inc eax
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
and dword [esp + 0x14], 0
cmp byte [ebp], 0
jne 0x41075d
mov eax, dword [esp + 0x14]
push esi
inc eax
push eax
call fcn.0040e350
push esi
call edi
cmp byte [eax + esi - 1], 0x5c
je 0x410729
push 0x45c800
push esi
call ebx
push dword [esp + 0x10]
push esi
call ebx
push esi
call fcn.0040d00f
test eax, eax
je 0x41075d
push esi
call edi
inc eax
cmp dword [esp + 0x238], eax
jge 0x410750
mov eax, dword [esp + 0x238]
jmp 0x410754
push esi
call edi
inc eax
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 3
jl 0x410705
cmp byte [ebp], 0
jne 0x4108c4
mov eax, dword [esp + 0x238]
add eax, 0xfffffc00
push eax
push esi
push 0x45f774
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
and dword [esp + 0x14], 0
push 0
push 1
push 0x103
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x24]
push 0x45f760
push esi
call fcn.00444fa4
test eax, eax
je 0x41082a
cmp byte [esp + 0x1c], 0
je 0x41082a
lea eax, [esp + 0x1c]
push eax
call edi
lea ecx, [esp + 0x1c]
cmp byte [eax + ecx - 1], 0x5c
je 0x4107d4
push 0x45c800
mov eax, ecx
push eax
call ebx
push dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
call ebx
lea eax, [esp + 0x1c]
push eax
call fcn.0040d00f
test eax, eax
je 0x41081c
lea eax, [esp + 0x1c]
push eax
call edi
inc eax
cmp dword [esp + 0x238], eax
jge 0x410807
mov eax, dword [esp + 0x238]
jmp 0x41080f
lea eax, [esp + 0x1c]
push eax
call edi
inc eax
push eax
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
inc dword [esp + 0x14]
cmp byte [ebp], 0
je 0x410790
cmp byte [ebp], 0
jne 0x4108c4
mov ebx, dword [esp + 0x10]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x45f444
push 0
push esi
call fcn.00441ac4
push esi
call fcn.0040d00f
test eax, eax
je 0x41087a
push esi
call edi
inc eax
cmp dword [esp + 0x238], eax
jge 0x41086d
mov eax, dword [esp + 0x238]
jmp 0x410871
push esi
call edi
inc eax
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [ebp], 0
jne 0x4108c8
lea eax, [esp + 0x18]
push eax
push esi
push 0x102
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x4108c8
cmp byte [esi], 0
je 0x4108c8
push esi
call edi
inc eax
cmp dword [esp + 0x238], eax
jge 0x4108b5
mov eax, dword [esp + 0x238]
jmp 0x4108b9
push esi
call edi
inc eax
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x4108c8
mov ebx, dword [esp + 0x10]
push esi
call fcn.00447ab6
cmp byte [ebp], 0
pop ecx
jne 0x4103b8
push ebx
call edi
lea ecx, [eax + 1]
mov eax, dword [esp + 0x238]
cmp eax, ecx
jl 0x4108ee
push ebx
call edi
inc eax
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00448080
add esp, 0x218
ret 0x10