Function at 0x10031a55
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071992
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10031d3d
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax]
test eax, eax
je 0x10031cde
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
mov dword [eax], 0xffffffee
jmp 0x10031adf
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0xffffffe6
jge 0x10031cdc
push 1
lea ecx, [ebp - 0x9c]
call fcn.1001a0d2
and dword [ebp - 4], 0
mov dword [ebp - 0xa0], 0x62afeddd
mov dword [ebp - 0x24], 0
jmp 0x10031b16
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jge 0x10031b32
push dword [ebp - 0x24]
lea ecx, [ebp - 0x9c]
call fcn.1001a1d1
mov dword [eax], 0xc22f
jmp 0x10031b0f
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x10031b48
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x14
jl 0x10031b60
mov dword [ebp - 0x40], 0xfffffffa
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
jmp 0x10031b3d
mov dword [ebp - 0x84], 0x1e4a
cmp dword [ebp - 0x84], 0x7d1
jge 0x10031caf
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x1000797c
call fcn.10058e8b
add esp, 0xc
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x90]
call fcn.1001a0d2
mov byte [ebp - 4], 1
and dword [ebp - 0x20], 0
jmp 0x10031bae
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x2c]
jge 0x10031bd3
push dword [ebp - 0x20]
lea ecx, [ebp - 0x90]
call fcn.1001a1d1
push eax
push 0x10007810
call fcn.10058e8b
pop ecx
pop ecx
jmp 0x10031ba7
and dword [ebp - 0x3c], 0
jmp 0x10031be0
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x64]
jge 0x10031ca0
lea eax, [ebp - 0x30]
push eax
push 0x10007810
call fcn.10058e8b
pop ecx
pop ecx
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x2c]
dec eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x34]
jg 0x10031c7a
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x34]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x90]
call fcn.1001a1d1
mov eax, dword [eax]
cmp eax, dword [ebp - 0x30]
jne 0x10031c3e
mov byte [ebp - 0xd], 1
jmp 0x10031c7a
push dword [ebp - 0x14]
lea ecx, [ebp - 0x90]
call fcn.1001a1d1
mov eax, dword [eax]
cmp eax, dword [ebp - 0x30]
jge 0x10031c5c
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x38], eax
jmp 0x10031c78
push dword [ebp - 0x14]
lea ecx, [ebp - 0x90]
call fcn.1001a1d1
mov eax, dword [eax]
cmp eax, dword [ebp - 0x30]
jle 0x10031c78
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x34], eax
jmp 0x10031c0b
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x10031c8b
mov dword [ebp - 0x44], 0x100078a0
jmp 0x10031c92
mov dword [ebp - 0x44], 0x100078d8
push dword [ebp - 0x44]
call fcn.10059c06
pop ecx
jmp 0x10031bd9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.1001a156
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x10031cc8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.1001a156
jmp 0x10031cdc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.1001a156
jmp 0x10031ad4
jmp 0x10031d3b
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
jmp 0x10031d18
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 3
jl 0x10031d3b
push 0
mov ecx, dword [ebp - 0x68]
call fcn.1001a1d1
mov dword [eax], 0x95364446
mov eax, dword [ebp - 0x70]
mov dword [eax], 0x95364446
jmp 0x10031d0d
jmp 0x10031d68
lea eax, [ebp + 0x24]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
movzx eax, byte [eax]
test eax, eax
je 0x10031d5c
push 0x824
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x10031d68
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret