Function at 0x402690
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473be2
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x49c404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push 0x105
push 0
push eax
call fcn.00459eb0
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 2
push 0x491f30
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
call fcn.00404920
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], 0
jne 0x402733
push 3
push 0x491f34
lea ecx, [ebp - 0x148]
call fcn.00404230
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
call fcn.004044a0
push 1
push 0
lea eax, [ebp - 0x1ac]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 0x1ac], 0x20
call fcn.00402dc0
cmp eax, 0xffffffff
je 0x402859
push 1
push 0x491f20
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x14c], 0xf
mov dword [ebp - 0x150], 0
mov byte [ebp - 0x160], 0
call fcn.00404920
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x178]
push 1
push 0x491f20
mov dword [ebp - 0x164], 0xf
mov dword [ebp - 0x168], 0
mov byte [ebp - 0x178], 0
call fcn.00404920
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x178]
lea ecx, [ebp - 0x1a8]
call fcn.00403270
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x190]
call fcn.004032a0
add esp, 8
lea ecx, [ebp - 0x130]
push eax
call fcn.00402cb0
lea ecx, [ebp - 0x190]
call fcn.00404390
lea ecx, [ebp - 0x1a8]
call fcn.00404390
lea ecx, [ebp - 0x178]
call fcn.00404390
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 1
call fcn.00404390
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x160]
push 0x491f38
push eax
call fcn.00403330
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 5
call fcn.00404130
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14c]
cmp eax, 0x10
jb 0x4028dc
mov ecx, dword [ebp - 0x160]
inc eax
cmp eax, 0x1000
jb 0x4028d3
test cl, 0x1f
je 0x4028af
call fcn.004614be
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4028bb
call fcn.004614be
sub ecx, eax
cmp ecx, 4
jae 0x4028c7
call fcn.004614be
cmp ecx, 0x23
jbe 0x4028d1
call fcn.004614be
mov ecx, eax
push ecx
call fcn.0042ef8f
add esp, 4
cmp dword [ebp - 0x134], 0x10
lea eax, [ebp - 0x148]
cmovae eax, dword [ebp - 0x148]
push eax
lea eax, [ebp - 0x118]
push str.regsvr32.exe
push eax
call fcn.004022c0
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 0x10
jb 0x402955
mov ecx, dword [ebp - 0x130]
inc eax
cmp eax, 0x1000
jb 0x40294c
test cl, 0x1f
je 0x402928
call fcn.004614be
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x402934
call fcn.004614be
sub ecx, eax
cmp ecx, 4
jae 0x402940
call fcn.004614be
cmp ecx, 0x23
jbe 0x40294a
call fcn.004614be
mov ecx, eax
push ecx
call fcn.0042ef8f
add esp, 4
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
cmp eax, 0x10
jb 0x4029c0
mov ecx, dword [ebp - 0x148]
inc eax
cmp eax, 0x1000
jb 0x4029b7
test cl, 0x1f
je 0x402993
call fcn.004614be
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40299f
call fcn.004614be
sub ecx, eax
cmp ecx, 4
jae 0x4029ab
call fcn.004614be
cmp ecx, 0x23
jbe 0x4029b5
call fcn.004614be
mov ecx, eax
push ecx
call fcn.0042ef8f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004582c7
mov esp, ebp
pop ebp
ret