Function at 0x1004c520
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1004ceb5
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0x7bededb5
mov dword [ebp - 0x48], 0xcf7921e1
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], 0
jmp 0x1004c561
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jge 0x1004c574
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x34], 0xfffffff6
jmp 0x1004c55a
mov dword [ebp - 0x10], 0
jmp 0x1004c584
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x1004c59a
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x1b4], 0xd5fb
jmp 0x1004c57d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1004c5ef
cmp dword [ebp - 0x24], 0xfe8b0d19
ja 0x1004c5bb
mov dword [ebp - 0xd0], 1
jmp 0x1004c5c2
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0xd0]
jge 0x1004c5d6
mov dword [ebp - 0x74], 1
jmp 0x1004c5da
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], 0
jne 0x1004c5ef
and dword [ebp - 0xe4], 0
jmp 0x1004c5f9
mov dword [ebp - 0xe4], 1
imul eax, dword [ebp - 0xe4], 0x2f67
cmp eax, 0xffffffff
jg 0x1004c611
mov dword [ebp - 0x7c], 1
jmp 0x1004c615
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x48], eax
jne 0x1004c62c
mov dword [ebp - 0x54], 1
jmp 0x1004c630
and dword [ebp - 0x54], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x54]
mov dword [ebp + eax - 0x34], ecx
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x54], eax
jne 0x1004c651
mov dword [ebp - 0xec], 1
jmp 0x1004c658
and dword [ebp - 0xec], 0
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x18], 0
jmp 0x1004c671
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x1004c718
mov eax, dword [ebp - 0x18]
cmp dword [ebp + eax*4 - 0x34], 0
je 0x1004c68a
jmp 0x1004c718
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x48], 0xfffffff7
jge 0x1004c6ae
mov dword [ebp - 0x84], 1
jmp 0x1004c6b5
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0x34]
cmp dword [ebp - 0x84], eax
jg 0x1004c6e0
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x1b4], 0
je 0x1004c6e0
mov dword [ebp - 0xf4], 1
jmp 0x1004c6e7
and dword [ebp - 0xf4], 0
cmp dword [ebp - 0xf4], 0x18bd8502
jne 0x1004c6ff
mov dword [ebp - 0x8c], 1
jmp 0x1004c706
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x8c]
mov dword [ebp + eax*4 - 0x34], ecx
jmp 0x1004c66a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x160], eax
mov dword [ebp - 4], 0xbac64a68
mov dword [ebp - 0x134], 0x1dba
mov dword [ebp - 0x130], 0x1dba
mov dword [ebp - 0x12c], 0x1dba
mov dword [ebp - 0x128], 0x1dba
mov dword [ebp - 0x154], 0x27b1aa43
mov dword [ebp - 0x1a4], 1
mov dword [ebp - 0x110], 0x278539ae
mov dword [ebp - 0x6c], 0xfffffffe
mov dword [ebp - 0x19c], 0xffffffff
mov dword [ebp - 0x17c], 0x52a3e9f7
mov dword [ebp - 0x2c], 0
jmp 0x1004c7a5
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jge 0x1004c7bb
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0x18c], 2
jmp 0x1004c79e
mov dword [ebp - 4], 0
jmp 0x1004c7cb
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xfffffff9
jl 0x1004cba5
mov dword [ebp - 0xc], 0xa5043c4a
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x64], 0x950cfdfe
mov dword [ebp - 0x144], 0xd1a38ad7
mov dword [ebp - 0x3c], 0
jmp 0x1004c804
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 2
jge 0x1004c81a
mov eax, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x1d4], 0x6ce2e7c5
jmp 0x1004c7fd
mov dword [ebp - 0xc], 0
jmp 0x1004c82a
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
jg 0x1004cba0
mov dword [ebp - 0x58], 0xfffffffc
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x14], 0
jmp 0x1004c852
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jge 0x1004c865
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x28], 6
jmp 0x1004c84b
mov dword [ebp - 0x14], 0
jmp 0x1004c875
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jge 0x1004c88b
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x190], 0x69ed994a
jmp 0x1004c86e
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x28], 0
jmp 0x1004c8b0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x28]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x28], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x28], 3
jg 0x1004cb9b
mov dword [ebp - 0x158], 0xffffffff
mov dword [ebp - 0x15c], 0x1ad31fc5
mov dword [ebp - 0x178], 0xf2ca1253
mov dword [ebp - 0x174], 0xf2ca1253
mov dword [ebp - 0x170], 0xf2ca1253
mov dword [ebp - 0x16c], 0xf2ca1253
mov dword [ebp - 0x50], 0
jmp 0x1004c90d
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 2
jge 0x1004c923
mov eax, dword [ebp - 0x50]
mov dword [ebp + eax*4 - 0x168], 0x9e206048
jmp 0x1004c906
mov eax, dword [ebp - 0xc]
cmp dword [ebp + eax*4 - 0x134], 0
jne 0x1004ca16
cmp dword [ebp - 0xc], 0
je 0x1004c9a2
mov dword [ebp - 0x44], 0x6d8
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
lea eax, [eax + ecx - 0x554c61e]
cmp eax, 0xc4a8
je 0x1004c961
mov dword [ebp - 0xfc], 1
jmp 0x1004c968
and dword [ebp - 0xfc], 0
cmp dword [ebp - 0xfc], 0
jb 0x1004c97d
mov dword [ebp - 0x94], 1
jmp 0x1004c984
and dword [ebp - 0x94], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x28]
add eax, dword [ebp - 0x94]
je 0x1004c9a2
mov dword [ebp - 0x104], 1
jmp 0x1004c9a9
and dword [ebp - 0x104], 0
mov eax, dword [ebp - 0x104]
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0xc]
jne 0x1004c9c3
mov dword [ebp - 0x9c], 1
jmp 0x1004c9ca
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ebp + ecx*4 - 0x134]
jl 0x1004c9eb
mov dword [ebp - 0x10c], 1
jmp 0x1004c9f2
and dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10c], eax
jg 0x1004ca16
push 4
pop eax
imul eax, eax, 3
cmp dword [ebp + eax - 0x134], 0
jne 0x1004ca16
and dword [ebp - 0xa4], 0
jmp 0x1004ca20
mov dword [ebp - 0xa4], 1
cmp dword [ebp - 0xa4], 1
jge 0x1004ca35
mov dword [ebp - 0x114], 1
jmp 0x1004ca3c
and dword [ebp - 0x114], 0
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x44], 0
je 0x1004cb75
mov eax, dword [ebp - 0x158]
cmp dword [ebp - 0x44], eax
je 0x1004ca66
mov dword [ebp - 0xac], 1
jmp 0x1004ca6d
and dword [ebp - 0xac], 0
cmp dword [ebp - 0xac], 0xfffffffc
jg 0x1004ca82
mov dword [ebp - 0x11c], 1
jmp 0x1004ca89
and dword [ebp - 0x11c], 0
mov eax, dword [ebp - 0x58]
cmp dword [ebp - 0x11c], eax
jge 0x1004caa0
mov dword [ebp - 0xb4], 1
jmp 0x1004caa7
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0xb4]
jg 0x1004cabe
mov dword [ebp - 0x124], 1
jmp 0x1004cac5
and dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x5c]
dec eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x124]
jl 0x1004cae3
mov dword [ebp - 0xc0], 1
jmp 0x1004caea
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xc0], eax
jne 0x1004cb01
mov dword [ebp - 0xbc], 1
jmp 0x1004cb08
and dword [ebp - 0xbc], 0
imul eax, dword [ebp - 0xbc], 0x3c8d
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0x1799
jne 0x1004cb2a
mov dword [ebp - 0x118], 1
jmp 0x1004cb31
and dword [ebp - 0x118], 0
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x118]
push 4
pop ecx
shl ecx, 0
cmp eax, dword [ebp + ecx - 0x168]
jge 0x1004cb55
mov dword [ebp - 0xc8], 1
jmp 0x1004cb5c
and dword [ebp - 0xc8], 0
cmp dword [ebp - 0xc8], 1
jae 0x1004cb75
cmp dword [ebp - 0x15c], 0
jne 0x1004cb75
cmp dword [ebp - 0x144], 0
mov eax, dword [ebp - 0x58]
push 4
pop ecx
shl ecx, 0
imul eax, dword [ebp + ecx - 0x168]
add eax, 9
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x178], eax
jmp 0x1004c89b
jmp 0x1004c823
jmp 0x1004c7c4
mov dword [ebp - 4], 3
jmp 0x1004cbb5
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x1004cd33
mov dword [ebp - 0xe8], 0x63aebc01
mov dword [ebp - 0x14c], 0x8d280d01
mov dword [ebp - 0x4c], 0
jmp 0x1004cbe3
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 3
jge 0x1004cbf9
mov eax, dword [ebp - 0x4c]
mov dword [ebp + eax*4 - 0x1cc], 0xc03a2c1
jmp 0x1004cbdc
mov eax, dword [ebp - 4]
cmp dword [ebp + eax*4 - 0x134], 0
mov eax, 0x4a9589ab
test eax, eax
je 0x1004cc14
cmp dword [ebp - 0x110], 0
push 0xfffffffffffffffd
pop eax
cmp eax, 0xab14a3d9
je 0x1004cc2a
mov dword [ebp - 0xf8], 1
jmp 0x1004cc31
and dword [ebp - 0xf8], 0
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x134]
mov dword [ebp - 0x194], eax
cmp dword [ebp - 0x110], 0
jl 0x1004cc5f
mov dword [ebp - 0xd8], 1
jmp 0x1004cc66
and dword [ebp - 0xd8], 0
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x134]
cmp dword [ebp - 0xd8], eax
jg 0x1004cc84
mov dword [ebp - 0x100], 1
jmp 0x1004cc8b
and dword [ebp - 0x100], 0
mov eax, dword [ebp - 0x100]
dec eax
je 0x1004cca7
push 7
pop eax
test eax, eax
je 0x1004cca7
mov dword [ebp - 0xe0], 1
jmp 0x1004ccae
and dword [ebp - 0xe0], 0
cmp dword [ebp - 0xe0], 0xf0e9b23d
jb 0x1004ccc6
mov dword [ebp - 0x120], 1
jmp 0x1004cccd
and dword [ebp - 0x120], 0
imul eax, dword [ebp - 0x154], 0x6b51
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xe8]
add ecx, dword [ebp + eax*4 - 0x134]
mov dword [ebp - 0x108], ecx
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x108]
mov dword [ebp + eax - 0x1cc], ecx
cmp dword [ebp - 0x108], 0xfffffffd
ja 0x1004cd1b
mov dword [ebp - 0xf0], 1
jmp 0x1004cd22
and dword [ebp - 0xf0], 0
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x14c], eax
jmp 0x1004cbae
mov eax, dword [ebp - 0x160]
movzx eax, byte [eax]
test eax, eax
je 0x1004ce6e
mov dword [ebp - 0x60], 0xfffffff9
mov dword [ebp - 0x13c], 1
mov dword [ebp - 0xb8], 0x6b65720b
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x140], 0xffffffff
mov dword [ebp - 0x40], 0
jmp 0x1004cd80
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 2
jge 0x1004cd96
mov eax, dword [ebp - 0x40]
mov dword [ebp + eax*4 - 0x188], 0x3dfa
jmp 0x1004cd79
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x60]
neg eax
je 0x1004cdc7
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0x4320e32c
je 0x1004cdc7
mov dword [ebp - 0xc4], 1
jmp 0x1004cdce
and dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x68], 0x203bd652
cmp dword [ebp - 0x68], 1
jg 0x1004cdf0
mov dword [ebp - 0xcc], 1
jmp 0x1004cdf7
and dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0xcc]
add eax, 0xffff
jne 0x1004ce26
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x188], 0
jne 0x1004ce26
mov eax, 0xffff
test eax, eax
jne 0x1004ce26
and dword [ebp - 0xd4], 0
jmp 0x1004ce30
mov dword [ebp - 0xd4], 1
cmp dword [ebp - 0xd4], 0xd7f19125
je 0x1004ce48
mov dword [ebp - 0xdc], 1
jmp 0x1004ce4f
and dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x140], eax
push 0
push 0x1d5f
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov dword [ebp - 0x198], 0xfffffff7
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x1004ce91
push 0x56e
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov byte [ebp - 0x1a], 0
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x1004ceb0
push 0
push 0x1d5f
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
jmp 0x1004d062
mov dword [ebp - 8], 0x110c93b4
mov dword [ebp - 0x80], 0x9fcfbce0
mov dword [ebp - 0x30], 0
jmp 0x1004ced3
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
jge 0x1004cee9
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0x1c0], 0x7165
jmp 0x1004cecc
mov dword [ebp - 8], 0
jmp 0x1004cef9
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xfffffff3
jge 0x1004d02f
mov dword [ebp - 0x38], 0xb0cb8ce3
mov dword [ebp - 0x148], 0xffff
mov dword [ebp - 0x150], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 8], 0
jne 0x1004cf36
mov dword [ebp - 0x70], 1
jmp 0x1004cf3a
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x70], eax
je 0x1004cf4b
mov dword [ebp - 0x78], 1
jmp 0x1004cf4f
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x80], eax
jge 0x1004cf69
mov dword [ebp - 0x88], 1
jmp 0x1004cf70
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x88]
sub eax, 0xeda8
cmp eax, dword [ebp - 8]
jne 0x1004cf91
or eax, 0xffffffff
je 0x1004cf91
mov dword [ebp - 0x90], 1
jmp 0x1004cf98
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x90], eax
jne 0x1004cfaf
mov dword [ebp - 0x98], 1
jmp 0x1004cfb6
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x148]
cmp dword [ebp - 0x98], eax
jg 0x1004cfd0
mov dword [ebp - 0xa0], 1
jmp 0x1004cfd7
and dword [ebp - 0xa0], 0
cmp dword [ebp - 0xa0], 1
jb 0x1004cfec
mov dword [ebp - 0xa8], 1
jmp 0x1004cff3
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xa8]
lea eax, [eax + ecx - 0xfff7]
cmp eax, dword [ebp - 0x38]
jg 0x1004d017
mov dword [ebp - 0xb0], 1
jmp 0x1004d01e
and dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x150], eax
jmp 0x1004cef2
mov dword [ebp - 8], 0
jmp 0x1004d03f
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jge 0x1004d055
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x1c0], 0x488a
jmp 0x1004d038
push 0x56e
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esp, ebp
pop ebp
ret