Function at 0x402240
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493e82
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x4d53a4]
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.004726b0
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 2
push 0x4b1374
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
call fcn.00404530
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], 0
jne 0x4022e3
push 3
push 0x4b1378
lea ecx, [ebp - 0x148]
call fcn.00403e30
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.004040b0
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.00402b20
cmp eax, 0xffffffff
je 0x40240b
push 1
push 0x4b1364
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x14c], 0xf
mov dword [ebp - 0x150], 0
mov byte [ebp - 0x160], 0
call fcn.00404530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x178]
push 1
push 0x4b1364
mov dword [ebp - 0x164], 0xf
mov dword [ebp - 0x168], 0
mov byte [ebp - 0x178], 0
call fcn.00404530
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.00402d10
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x190]
call fcn.00402d40
add esp, 0x10
lea ecx, [ebp - 0x130]
push eax
call fcn.00402940
lea ecx, [ebp - 0x190]
call fcn.00403f90
lea ecx, [ebp - 0x1a8]
call fcn.00403f90
lea ecx, [ebp - 0x178]
call fcn.00403f90
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 1
call fcn.00403f90
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x160]
push 0x4b137c
push eax
call fcn.00402dd0
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 5
call fcn.00403d30
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14c]
cmp eax, 0x10
jb 0x40248e
mov ecx, dword [ebp - 0x160]
inc eax
cmp eax, 0x1000
jb 0x402485
test cl, 0x1f
je 0x402461
call fcn.0047ade1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40246d
call fcn.0047ade1
sub ecx, eax
cmp ecx, 4
jae 0x402479
call fcn.0047ade1
cmp ecx, 0x23
jbe 0x402483
call fcn.0047ade1
mov ecx, eax
push ecx
call fcn.0047072d
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.00401e40
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 0x10
jb 0x402507
mov ecx, dword [ebp - 0x130]
inc eax
cmp eax, 0x1000
jb 0x4024fe
test cl, 0x1f
je 0x4024da
call fcn.0047ade1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4024e6
call fcn.0047ade1
sub ecx, eax
cmp ecx, 4
jae 0x4024f2
call fcn.0047ade1
cmp ecx, 0x23
jbe 0x4024fc
call fcn.0047ade1
mov ecx, eax
push ecx
call fcn.0047072d
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 0x402572
mov ecx, dword [ebp - 0x148]
inc eax
cmp eax, 0x1000
jb 0x402569
test cl, 0x1f
je 0x402545
call fcn.0047ade1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x402551
call fcn.0047ade1
sub ecx, eax
cmp ecx, 4
jae 0x40255d
call fcn.0047ade1
cmp ecx, 0x23
jbe 0x402567
call fcn.0047ade1
mov ecx, eax
push ecx
call fcn.0047072d
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.00470931
mov esp, ebp
pop ebp
ret