Function at 0x402a80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476122
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x49d4a4]
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.0045c360
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 2
push 0x492924
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
call fcn.00404ee0
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], 0
jne 0x402b23
push 3
push 0x492928
lea ecx, [ebp - 0x148]
call fcn.004047f0
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.00404a60
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.004032f0
cmp eax, 0xffffffff
je 0x402c4b
push 1
push 0x492914
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x14c], 0xf
mov dword [ebp - 0x150], 0
mov byte [ebp - 0x160], 0
call fcn.00404ee0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x178]
push 1
push 0x492914
mov dword [ebp - 0x164], 0xf
mov dword [ebp - 0x168], 0
mov byte [ebp - 0x178], 0
call fcn.00404ee0
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x1a8]
push eax
call fcn.00403800
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x190]
call fcn.00403830
add esp, 0x10
lea ecx, [ebp - 0x130]
push eax
call fcn.00403110
lea ecx, [ebp - 0x190]
call fcn.00404950
lea ecx, [ebp - 0x1a8]
call fcn.00404950
lea ecx, [ebp - 0x178]
call fcn.00404950
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 1
call fcn.00404950
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x160]
push 0x49292c
push eax
call fcn.004038c0
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 5
call fcn.004046f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14c]
cmp eax, 0x10
jb 0x402cce
mov ecx, dword [ebp - 0x160]
inc eax
cmp eax, 0x1000
jb 0x402cc5
test cl, 0x1f
je 0x402ca1
call fcn.00463c41
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x402cad
call fcn.00463c41
sub ecx, eax
cmp ecx, 4
jae 0x402cb9
call fcn.00463c41
cmp ecx, 0x23
jbe 0x402cc3
call fcn.00463c41
mov ecx, eax
push ecx
call fcn.0042fd23
add esp, 4
cmp dword [ebp - 0x134], 0x10
lea eax, [ebp - 0x148]
push 1
cmovae eax, dword [ebp - 0x148]
push 0
push eax
lea eax, [ebp - 0x118]
push str.regsvr32.exe
push eax
call fcn.00402700
mov eax, dword [ebp - 0x11c]
add esp, 0x14
cmp eax, 0x10
jb 0x402d4b
mov ecx, dword [ebp - 0x130]
inc eax
cmp eax, 0x1000
jb 0x402d42
test cl, 0x1f
je 0x402d1e
call fcn.00463c41
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x402d2a
call fcn.00463c41
sub ecx, eax
cmp ecx, 4
jae 0x402d36
call fcn.00463c41
cmp ecx, 0x23
jbe 0x402d40
call fcn.00463c41
mov ecx, eax
push ecx
call fcn.0042fd23
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 0x402db6
mov ecx, dword [ebp - 0x148]
inc eax
cmp eax, 0x1000
jb 0x402dad
test cl, 0x1f
je 0x402d89
call fcn.00463c41
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x402d95
call fcn.00463c41
sub ecx, eax
cmp ecx, 4
jae 0x402da1
call fcn.00463c41
cmp ecx, 0x23
jbe 0x402dab
call fcn.00463c41
mov ecx, eax
push ecx
call fcn.0042fd23
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.0045a746
mov esp, ebp
pop ebp
ret