Function at 0x1002c69d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
push 1
push 0x5130
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
push 0x2b94
call fcn.1002b27a
add esp, 0x14
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 8], 0
jmp 0x1002c6d8
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jge 0x1002c6eb
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 4], 0xffffffff
jmp 0x1002c6d1
mov dword [ebp - 8], 0
jmp 0x1002c6fb
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jge 0x1002c70e
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x50], 0xffffffff
jmp 0x1002c6f4
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 4], 0
jmp 0x1002c733
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 4]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 4], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 4], 4
jle 0x1002c915
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0xdc], 0xffffffff
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x11c]
mov dword [ebp - 0x16c], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 4], 0
jle 0x1002c7a2
mov dword [ebp - 0xe0], 1
jmp 0x1002c7a9
and dword [ebp - 0xe0], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 4]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
push 4
pop ecx
imul ecx, ecx, 0
sub eax, dword [ebp + ecx - 4]
cmp dword [ebp - 0xe0], eax
jg 0x1002c7da
mov dword [ebp - 0x6c], 1
jmp 0x1002c7de
and dword [ebp - 0x6c], 0
cmp dword [ebp - 0x6c], 0xf3cc
jg 0x1002c7f0
mov dword [ebp - 0x58], 1
jmp 0x1002c7f4
and dword [ebp - 0x58], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x58]
mov dword [ebp + eax - 0x50], ecx
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x11c]
cmp dword [ebp - 0x58], eax
jne 0x1002c81e
mov dword [ebp - 0xe8], 1
jmp 0x1002c825
and dword [ebp - 0xe8], 0
imul eax, dword [ebp - 0xe8], 0x4709
push 4
pop ecx
imul ecx, ecx, 3
cmp eax, dword [ebp + ecx - 0x11c]
jle 0x1002c847
mov dword [ebp - 0x74], 1
jmp 0x1002c84b
and dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 1
jge 0x1002c85d
mov dword [ebp - 0xf0], 1
jmp 0x1002c864
and dword [ebp - 0xf0], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x11c]
cmp dword [ebp - 0xf0], eax
jne 0x1002c882
mov dword [ebp - 0x7c], 1
jmp 0x1002c886
and dword [ebp - 0x7c], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 4]
imul eax, dword [ebp - 0x7c]
push 4
pop ecx
imul ecx, ecx, 0
cmp eax, dword [ebp + ecx - 4]
je 0x1002c8ac
mov dword [ebp - 0xf8], 1
jmp 0x1002c8b3
and dword [ebp - 0xf8], 0
cmp dword [ebp - 0xf8], 0xa12a
jl 0x1002c8cb
mov dword [ebp - 0x84], 1
jmp 0x1002c8d2
and dword [ebp - 0x84], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x11c]
imul eax, dword [ebp - 0x84]
cmp eax, 0xb6d6
jl 0x1002c8f9
mov dword [ebp - 0x100], 1
jmp 0x1002c900
and dword [ebp - 0x100], 0
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], 0xae9f9034
jmp 0x1002c71e
mov dword [ebp - 0x14], 0xf
jmp 0x1002c925
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffea
jge 0x1002ca83
mov dword [ebp - 0x34], 0x59baaa4f
mov dword [ebp - 0x5c], 0x5379a1d1
mov dword [ebp - 0xf4], 0xc256fae
mov dword [ebp - 0xd4], 0
mov byte [ebp - 0xe], 0
push 1
push 0x29f1
lea eax, [ebp - 0xe]
push eax
call fcn.1002b2f6
add esp, 0xc
cmp dword [ebp - 0x34], 0
jne 0x1002c97a
mov dword [ebp - 0x90], 1
jmp 0x1002c981
and dword [ebp - 0x90], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x50]
mov dword [ebp - 0x188], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 4], 0
je 0x1002c9bf
mov eax, dword [ebp - 0x14]
push 4
pop ecx
imul ecx, ecx, 0
sub eax, dword [ebp + ecx - 0x50]
je 0x1002c9bf
cmp dword [ebp - 0x34], 0
je 0x1002c9bf
mov dword [ebp - 0x94], 1
jmp 0x1002c9c6
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x94], eax
jle 0x1002c9dd
mov dword [ebp - 0x8c], 1
jmp 0x1002c9e4
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x5c], eax
imul eax, dword [ebp - 0x90], 0xe074
add eax, dword [ebp - 0x5c]
jne 0x1002ca00
cmp dword [ebp - 0x5c], 0
cmp dword [ebp - 0x34], 0xfffffff9
jae 0x1002ca12
mov dword [ebp - 0xcc], 1
jmp 0x1002ca19
and dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0xcc], eax
jle 0x1002ca30
mov dword [ebp - 0x9c], 1
jmp 0x1002ca37
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0xf4], 0x860c
jne 0x1002ca5b
mov dword [ebp - 0xa4], 1
jmp 0x1002ca62
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xd4], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0xd4]
mov dword [ebp + eax - 0x50], ecx
jmp 0x1002c91e
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x1002ce74
push 0x6f21
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x18]
push eax
push 1
lea eax, [ebp + 0x14]
push eax
call fcn.1002b360
add esp, 0x14
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x2c], 0x32a17d0b
mov dword [ebp - 0xa0], 0x66c4a87f
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x3c], 0
jmp 0x1002cae0
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 4
jge 0x1002caf6
mov eax, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x140], 0
jmp 0x1002cad9
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x140]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x1002cb57
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], eax
je 0x1002cb35
push 4
pop eax
imul eax, eax, 3
cmp dword [ebp + eax - 0x140], 0
je 0x1002cb35
mov dword [ebp - 0xac], 1
jmp 0x1002cb3c
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x1002cb57
mov dword [ebp - 0xec], 1
jmp 0x1002cb5e
and dword [ebp - 0xec], 0
imul eax, dword [ebp - 0xec], 0xfffa
cmp eax, 0xffff
ja 0x1002cb7b
mov dword [ebp - 0xb4], 1
jmp 0x1002cb82
and dword [ebp - 0xb4], 0
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x140]
imul eax, dword [ebp - 0xb4]
cmp eax, 0xbf90edca
jb 0x1002cba6
mov dword [ebp - 0x60], 1
jmp 0x1002cbaa
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffff
ja 0x1002cbd5
mov dword [ebp - 0xbc], 1
jmp 0x1002cbdc
and dword [ebp - 0xbc], 0
push 4
pop eax
imul eax, eax, 3
push 4
pop ecx
imul ecx, ecx, 3
mov ecx, dword [ebp + ecx - 0x140]
imul ecx, dword [ebp - 0xbc]
mov eax, dword [ebp + eax - 0x140]
imul eax, ecx
mov dword [ebp - 0xfc], eax
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 0xfc]
mov dword [ebp + eax - 0x140], ecx
cmp dword [ebp - 0xfc], 0
je 0x1002cc90
mov dword [ebp - 0x20], 0
jmp 0x1002cc32
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jg 0x1002cc8b
mov dword [ebp - 0x1c], 3
jmp 0x1002cc48
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x1002cc64
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x1002cc62
push 0
call fcn.1002c597
pop ecx
jmp 0x1002cc41
mov byte [ebp - 0xf], 0
movzx eax, byte [ebp - 0xf]
test eax, eax
je 0x1002cc89
push 0x34e7
push 1
push 0x1ec9
push 0x193f
call fcn.1002b3c7
add esp, 0x10
jmp 0x1002cc2b
jmp 0x1002cd5b
mov dword [ebp - 0xc4], 7
mov dword [ebp - 0x130], 1
mov dword [ebp - 0x144], 0x4c3e
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x19c], eax
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x140], 0
jne 0x1002ccdb
mov eax, 0x5e42506e
test eax, eax
jne 0x1002ccdb
and dword [ebp - 0x120], 0
jmp 0x1002cce5
mov dword [ebp - 0x120], 1
cmp dword [ebp - 0x1c], 0x54f8
jl 0x1002ccfa
mov dword [ebp - 0xe4], 1
jmp 0x1002cd01
and dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x130]
add ecx, dword [ebp - 0xe4]
add eax, ecx
je 0x1002cd2c
cmp dword [ebp - 0x144], 0
je 0x1002cd2c
mov dword [ebp - 0x88], 1
jmp 0x1002cd33
and dword [ebp - 0x88], 0
cmp dword [ebp - 0x88], 5
jle 0x1002cd48
mov dword [ebp - 0x98], 1
jmp 0x1002cd4f
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x2c], 2
jmp 0x1002cd6b
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 5
jg 0x1002ce61
mov dword [ebp - 0x198], 0x26ae69ed
mov dword [ebp - 0x18c], 0x3f85024d
mov dword [ebp - 0x154], 0x31fc5313
mov dword [ebp - 0x17c], 0xffffffff
mov dword [ebp - 0x15c], 4
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x184], 0x5278539a
mov dword [ebp - 0x148], 0x69002fce
mov dword [ebp - 0x194], 2
mov dword [ebp - 0x174], 0x84085efb
mov dword [ebp - 0x14c], 0x8a218178
mov dword [ebp - 0x150], 0xfffffffa
mov dword [ebp - 0x158], 0x62392e18
mov dword [ebp - 0x160], 0x54d1843a
mov dword [ebp - 0x168], 0x7655505f
mov dword [ebp - 0x170], 0x1979
mov dword [ebp - 0xa8], 0xe9e61979
mov dword [ebp - 0x48], 0
jmp 0x1002ce39
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 1
jge 0x1002ce4f
mov eax, dword [ebp - 0x48]
mov dword [ebp + eax*4 - 0x178], 0x66fa41d
jmp 0x1002ce32
mov eax, dword [ebp - 0xa8]
dec eax
mov dword [ebp - 0xa8], eax
jmp 0x1002cd64
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
add ecx, dword [eax + 0x10]
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
jmp 0x1002d1cc
mov dword [ebp - 0x24], 0x845d
mov dword [ebp - 0x38], 0xfffffff8
mov dword [ebp - 0x180], 0xfffffff6
mov dword [ebp - 0x54], 0
jmp 0x1002ce9c
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 3
jge 0x1002ceb2
mov eax, dword [ebp - 0x54]
mov dword [ebp + eax*4 - 0x1a8], 4
jmp 0x1002ce95
cmp dword [ebp - 0x24], 1
jle 0x1002cec4
mov dword [ebp - 0xb0], 1
jmp 0x1002cecb
and dword [ebp - 0xb0], 0
cmp dword [ebp - 0xb0], 0xfff9
ja 0x1002cee3
mov dword [ebp - 0xb8], 1
jmp 0x1002ceea
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], 0
jmp 0x1002cf03
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 2
jg 0x1002cfaf
mov eax, dword [ebp - 0x24]
mov ecx, 0xfecafe8
sub ecx, dword [ebp + eax*4 - 0x1a8]
je 0x1002cf45
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x1002cf32
push 1
call fcn.1002c597
pop ecx
mov byte [ebp - 0xc], 0
push 1
lea eax, [ebp - 0xc]
push eax
call fcn.1002c5bf
pop ecx
pop ecx
jmp 0x1002cf72
mov byte [ebp - 0x10], 0
movzx eax, byte [ebp - 0x10]
test eax, eax
je 0x1002cf59
push 1
call fcn.1002c611
pop ecx
mov byte [ebp - 9], 0
movzx eax, byte [ebp - 9]
test eax, eax
je 0x1002cf72
push 0x976
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [ebp - 0x38], 2
jmp 0x1002cf82
mov eax, dword [ebp - 0x38]
dec eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jl 0x1002cfaa
mov dword [ebp - 0x128], 0
push 1
push 0x1ff0
lea eax, [ebp - 0x128]
push eax
call fcn.1002c63c
add esp, 0xc
jmp 0x1002cf7b
jmp 0x1002cefc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
add ecx, dword [eax + 0x10]
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov dword [ebp - 0x44], 0xffff
mov dword [ebp - 0x28], 6
mov dword [ebp - 0x4c], 0x53061ece
mov dword [ebp - 0x12c], 0xda37b187
mov dword [ebp - 0x40], 0
jmp 0x1002cfec
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 3
jge 0x1002d002
mov eax, dword [ebp - 0x40]
mov dword [ebp + eax*4 - 0x10c], 0xc6a37d7c
jmp 0x1002cfe5
mov dword [ebp - 0x44], 0x41fc9a57
cmp dword [ebp - 0x44], 0
jne 0x1002d07c
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x1002d073
xor eax, eax
jne 0x1002d04f
xor eax, eax
inc eax
je 0x1002d03d
cmp dword [ebp - 0x44], 0
je 0x1002d03d
mov dword [ebp - 0xc0], 1
jmp 0x1002d044
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0xc0], eax
jl 0x1002d061
cmp dword [ebp - 0x4c], 0
je 0x1002d061
mov dword [ebp - 0xc8], 1
jmp 0x1002d068
and dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0xc8], eax
jg 0x1002d07c
and dword [ebp - 0xd0], 0
jmp 0x1002d086
mov dword [ebp - 0xd0], 1
cmp dword [ebp - 0xd0], 0xf81320f2
je 0x1002d0a4
cmp dword [ebp - 0x4c], 0
je 0x1002d0a4
mov dword [ebp - 0xd8], 1
jmp 0x1002d0ab
and dword [ebp - 0xd8], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x10c]
mov ecx, dword [ebp - 0xd8]
lea eax, [ecx + eax + 0xf7c6]
push 4
pop ecx
shl ecx, 0
cmp eax, dword [ebp + ecx - 0x10c]
jle 0x1002d0dd
mov dword [ebp - 0x64], 1
jmp 0x1002d0e1
and dword [ebp - 0x64], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x10c]
cmp dword [ebp - 0x64], eax
jl 0x1002d0fc
mov dword [ebp - 0x68], 1
jmp 0x1002d100
and dword [ebp - 0x68], 0
cmp dword [ebp - 0x68], 0xad38
jge 0x1002d112
mov dword [ebp - 0x70], 1
jmp 0x1002d116
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x70]
add eax, 0x17c7128a
push 4
pop ecx
shl ecx, 0
imul eax, dword [ebp + ecx - 0x10c]
test eax, eax
je 0x1002d1a3
mov dword [ebp - 0x124], 0xfe2499e6
mov byte [ebp - 0xa], 0
push 0
push 0x271c
lea eax, [ebp - 0xa]
push eax
call fcn.1002ee2e
add esp, 0xc
cmp dword [ebp - 0x28], 0
jne 0x1002d194
cmp dword [ebp - 0x12c], 0
jne 0x1002d194
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x124]
add ecx, dword [ebp + eax - 0x10c]
mov dword [ebp - 0x78], ecx
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x78]
mov dword [ebp + eax - 0x10c], ecx
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x78], eax
jge 0x1002d194
and dword [ebp - 0x80], 0
jmp 0x1002d19b
mov dword [ebp - 0x80], 1
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x28], eax
jmp 0x1002d1be
mov byte [ebp - 0xb], 0
movzx eax, byte [ebp - 0xb]
test eax, eax
je 0x1002d1be
push 0x17e9
push 0
push 0
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
add ecx, dword [eax + 0x10]
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret