Function at 0x1003708d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100370f0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
movzx eax, byte [eax]
test eax, eax
je 0x100370d3
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x58]
mov dword [ecx], eax
jmp 0x100370eb
mov byte [ebp - 0x1a], 0
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x100370eb
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
jmp 0x10037612
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x90]
movzx eax, byte [eax]
test eax, eax
je 0x1003712d
push 0x8f3
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x10037612
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x34]
call fcn.1004afee
movzx eax, al
test eax, eax
je 0x1003715c
mov eax, dword [ebp - 0x3c]
mov byte [eax], 0
jmp 0x10037612
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.10037fa3
pop ecx
pop ecx
push 0x7f1e
push 0
call fcn.10034f6a
pop ecx
pop ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.1003370d
jmp 0x1003718d
lea ecx, [ebp - 0x28]
call fcn.1004aff7
lea eax, [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.10033721
push eax
lea ecx, [ebp - 0x28]
call fcn.100332e5
movzx eax, al
test eax, eax
je 0x1003760c
lea ecx, [ebp - 0x28]
call fcn.10033807
movsx eax, byte [eax]
cmp eax, 0x30
jl 0x100371f6
lea ecx, [ebp - 0x28]
call fcn.10033807
movsx eax, byte [eax]
cmp eax, 0x39
jg 0x100371f6
push 0x2ccc
push 0x693d
push 0x7a14
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.1004a203
add esp, 0x18
jmp 0x10037607
mov dword [ebp - 0xc], 0xe387fb0b
mov dword [ebp - 8], 0
jmp 0x1003720d
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jge 0x10037223
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0xb8], 0
jmp 0x10037206
mov dword [ebp - 8], 0
jmp 0x10037233
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x10037249
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0xec], 0x39ed080c
jmp 0x1003722c
mov dword [ebp - 8], 0
jmp 0x10037259
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jge 0x1003726f
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0xc8], 0
jmp 0x10037252
mov dword [ebp - 0xc], 0
jmp 0x1003727f
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jge 0x10037295
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0xb8], 1
jmp 0x10037278
mov dword [ebp - 0xc], 3
jmp 0x100372a5
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x18
jne 0x1003734b
mov dword [ebp - 0xac], 1
mov dword [ebp - 0xa0], 0x5cc25bfc
mov dword [ebp - 0xd0], 0x7603
mov dword [ebp - 0xb0], 0xafa9b64f
mov dword [ebp - 0xcc], 0xe6aa1654
mov dword [ebp - 0xbc], 0x509e71b3
mov dword [ebp - 0x8c], 0xdf0ebf90
mov dword [ebp - 0x30], 0
jmp 0x10037305
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
jge 0x1003731b
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0xdc], 0xc34e
jmp 0x100372fe
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xc8]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0xc8], eax
push 0
lea eax, [ebp - 0x8c]
push eax
call fcn.10037e51
pop ecx
pop ecx
jmp 0x1003729e
push 0
push 0x4da9
lea eax, [ebp - 0x38]
push eax
push 0x672b
call fcn.10036dde
add esp, 0x10
mov dword [ebp - 4], 0xfb02
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0x28c7fffa
mov dword [ebp - 0x24], 0x32b7b88c
mov dword [ebp - 0xa4], 0x44c9cadc
mov dword [ebp - 0x2c], 0
jmp 0x10037399
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 2
jge 0x100373af
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0x9c], 0xf5ecce35
jmp 0x10037392
cmp dword [ebp - 4], 0
jne 0x10037464
cmp dword [ebp - 4], 0
je 0x100373ce
cmp dword [ebp - 4], 0
je 0x100373ce
mov dword [ebp - 0x5c], 1
jmp 0x100373d2
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x5c], eax
jle 0x100373e3
mov dword [ebp - 0x4c], 1
jmp 0x100373e7
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0x426a7609
jne 0x100373fc
cmp dword [ebp - 4], 0
jne 0x100373fc
and dword [ebp - 0x6c], 0
jmp 0x10037403
mov dword [ebp - 0x6c], 1
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1003741e
cmp dword [ebp - 0x18], 0
je 0x1003741e
mov dword [ebp - 0x54], 1
jmp 0x10037422
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x54]
je 0x10037433
mov dword [ebp - 0x64], 1
jmp 0x10037437
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 4]
jge 0x1003744f
cmp dword [ebp - 4], 0
jne 0x1003744f
and dword [ebp - 0x44], 0
jmp 0x10037456
mov dword [ebp - 0x44], 1
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 4]
jne 0x10037464
and dword [ebp - 0x48], 0
jmp 0x1003746b
mov dword [ebp - 0x48], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x48]
lea eax, [ecx + eax - 0x8a2b]
cmp eax, dword [ebp - 4]
jge 0x10037486
mov dword [ebp - 0x50], 1
jmp 0x1003748a
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 8
jne 0x1003749f
mov dword [ebp - 0x40], 1
jmp 0x100374a3
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 4]
neg eax
sub eax, dword [ebp - 0x40]
cmp eax, 9
ja 0x100374b9
mov dword [ebp - 0x60], 1
jmp 0x100374bd
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x68], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x68]
mov dword [ebp + eax - 0x9c], ecx
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x68], eax
jge 0x100374ea
mov dword [ebp - 0x70], 1
jmp 0x100374ee
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x70], eax
jne 0x100375bd
mov dword [ebp - 0x20], 0xfffffff7
mov dword [ebp - 4], 0xfffffff3
jmp 0x10037511
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x15
je 0x100375bb
mov dword [ebp - 0x10], 0xfffffff5
jmp 0x1003752b
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jne 0x100375b6
mov dword [ebp - 0x94], 0xffff
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x20], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp + eax - 0x9c], ecx
mov dword [ebp - 0x24], 0
jmp 0x10037568
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xfffffff8
jg 0x100375b1
mov dword [ebp - 0x18], 2
jmp 0x1003757e
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x18
jne 0x100375af
mov dword [ebp - 0x20], 0xfffffff5
jmp 0x10037594
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xfffffff6
jl 0x100375ad
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x11]
push eax
push 0
call fcn.10034edc
pop ecx
pop ecx
jmp 0x1003758d
jmp 0x10037577
jmp 0x10037561
jmp 0x10037524
jmp 0x1003750a
jmp 0x100375ff
mov byte [ebp - 0x19], 0
push 0x6507
lea eax, [ebp - 0x19]
push eax
push 0x66c1
push 0
push 0x601
push 0x3fa1
call fcn.1004a74d
add esp, 0x18
push 0x22ca
push 0xd1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
call fcn.10035169
add esp, 0x14
mov eax, dword [ebp - 0x3c]
mov byte [eax], 0
jmp 0x10037612
jmp 0x10037185
mov eax, dword [ebp - 0x3c]
mov byte [eax], 1
mov esp, ebp
pop ebp
ret