Function at 0x1002e8c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b9e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
push esi
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x1002e950
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x114]
mov ecx, dword [ecx]
mov eax, dword [eax]
add eax, dword [ecx + 0x3c]
mov ecx, dword [ebp - 0xf0]
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov dword [ecx], eax
jmp 0x1002f30e
mov eax, dword [ebp + 8]
mov dword [ebp - 0xec], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x100], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x120], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x118], 0xfffffffb
mov dword [ebp - 0x128], 0xffffffff
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0x170], 5
push 4
lea ecx, [ebp - 0x198]
call fcn.10016a6e
and dword [ebp - 4], 0
mov dword [ebp - 0x16c], 0xfffffffe
mov dword [ebp - 0x178], 0x83ad
mov dword [ebp - 0xa8], 1
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x180]
push eax
push 0
call fcn.10026eeb
add esp, 0xc
push 0x6952
push 0x7c2e
push 0
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.1002a59d
add esp, 0x18
mov eax, dword [ebp - 0xa8]
dec eax
mov dword [ebp - 0xa8], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x198]
call fcn.10016ad6
mov eax, dword [ebp - 0x100]
mov eax, dword [eax]
shl eax, 4
mov ecx, dword [ebp - 0x120]
mov ecx, dword [ecx]
lea eax, [eax + ecx*8 + 0x10081844]
mov ecx, dword [ebp - 0x108]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x54]
mov eax, dword [eax + ecx*4]
mov dword [edx], eax
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x7c], 0xfcf09cc2
mov dword [ebp - 0x188], 0xfffffffa
mov dword [ebp - 0x84], 0xffffffff
mov dword [ebp - 0xcc], 1
mov dword [ebp - 0x58], 0x219a
mov dword [ebp - 0x2c], 0
jmp 0x1002ea9b
mov eax, dword [ebp - 0x2c]
dec eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffe9
je 0x1002ee59
mov dword [ebp - 0x28], 0xfffffff8
mov dword [ebp - 0x44], 0xfffffff8
push 1
lea ecx, [ebp - 0x64]
call fcn.10016a6e
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0xbe6
push 0x3664
push 0x5a
push 0x3fd3
lea eax, [ebp - 0x64]
push eax
push 0x4b51
push 1
lea eax, [ebp - 0x38]
push eax
call fcn.10026c33
add esp, 0x1c
mov dword [ebp - 0x38], 0
jmp 0x1002eafe
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jge 0x1002eb14
mov eax, dword [ebp - 0x38]
mov dword [ebp + eax*4 - 0x1b8], 0xf45a3231
jmp 0x1002eaf7
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x110], eax
push 0
lea ecx, [ebp - 0x64]
call fcn.10016adb
mov eax, dword [eax]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x110]
cmp eax, dword [ebp - 0xe0]
jge 0x1002eb50
mov dword [ebp - 0xa4], 1
jmp 0x1002eb57
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x1002eb78
cmp dword [ebp - 0x44], 0
je 0x1002eb78
mov dword [ebp - 0xd8], 1
jmp 0x1002eb7f
and dword [ebp - 0xd8], 0
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0xd8]
jg 0x1002eb96
mov dword [ebp - 0xe4], 1
jmp 0x1002eb9d
and dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1ac], eax
mov esi, dword [ebp - 0x44]
sub esi, dword [ebp - 0x84]
push 0
lea ecx, [ebp - 0x64]
call fcn.10016adb
cmp esi, dword [eax]
jg 0x1002ebc6
mov dword [ebp - 0x74], 1
jmp 0x1002ebca
and dword [ebp - 0x74], 0
push 0
lea ecx, [ebp - 0x64]
call fcn.10016adb
mov ecx, dword [ebp - 0x74]
sub ecx, dword [eax]
mov dword [ebp - 0xcc], ecx
mov eax, dword [ebp - 0xcc]
add eax, dword [ebp - 0x28]
cmp dword [ebp - 0x28], eax
jl 0x1002ebf9
mov dword [ebp - 0xac], 1
jmp 0x1002ec00
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x1a8], eax
push 0
lea ecx, [ebp - 0x64]
call fcn.10016adb
mov ecx, dword [ebp - 0xac]
mov dword [eax], ecx
push 0
lea ecx, [ebp - 0x64]
call fcn.10016adb
cmp dword [eax], 0
je 0x1002ec50
push 0
lea ecx, [ebp - 0x64]
call fcn.10016adb
mov esi, dword [ebp - 0x1c]
add esi, dword [eax]
push 0
lea ecx, [ebp - 0x64]
call fcn.10016adb
mov dword [eax], esi
jmp 0x1002ecd1
mov dword [ebp - 0x28], 0xfffffff7
jmp 0x1002ec60
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x36
jl 0x1002ecd1
mov dword [ebp - 0x1c], 0
jmp 0x1002ec76
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x1c
je 0x1002ecbb
mov byte [ebp - 0x22], 0
movzx eax, byte [ebp - 0x22]
test eax, eax
je 0x1002ec9c
push 0x79bb
push 0x7a61
push 1
call fcn.10026eeb
add esp, 0xc
mov byte [ebp - 0x20], 0
movzx eax, byte [ebp - 0x20]
test eax, eax
je 0x1002ecb9
push 0
push 0xca8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x1002ec6f
mov byte [ebp - 0x1e], 0
movzx eax, byte [ebp - 0x1e]
test eax, eax
je 0x1002eccf
push 0
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
jmp 0x1002ec59
mov dword [ebp - 0x1c], 0
jmp 0x1002ece1
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x20
jl 0x1002ee48
mov dword [ebp - 0xb4], 1
mov dword [ebp - 0x168], 0xf7a2d47e
mov dword [ebp - 0x164], 0xf7a2d47e
mov dword [ebp - 0x160], 0xf7a2d47e
mov dword [ebp - 0x15c], 0xf7a2d47e
mov byte [ebp - 0x1f], 0
movzx eax, byte [ebp - 0x1f]
test eax, eax
je 0x1002ed31
push 0
call fcn.10027111
pop ecx
cmp dword [ebp - 0x84], 0x28d8805e
jg 0x1002ed49
mov dword [ebp - 0xc4], 1
jmp 0x1002ed50
and dword [ebp - 0xc4], 0
cmp dword [ebp - 0xc4], 0xffffffff
jl 0x1002ed65
mov dword [ebp - 0x8c], 1
jmp 0x1002ed6c
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 9
jb 0x1002ed8d
mov dword [ebp - 0x94], 1
jmp 0x1002ed94
and dword [ebp - 0x94], 0
cmp dword [ebp - 0x94], 0
jne 0x1002eda9
mov dword [ebp - 0xd4], 1
jmp 0x1002edb0
and dword [ebp - 0xd4], 0
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x1b8], 0xffffffff
jl 0x1002edcc
mov dword [ebp - 0x9c], 1
jmp 0x1002edd3
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0xd4]
cmp eax, dword [ebp - 0x9c]
jge 0x1002eded
mov dword [ebp - 0xbc], 1
jmp 0x1002edf4
and dword [ebp - 0xbc], 0
cmp dword [ebp - 0xbc], 0x9261
jl 0x1002ee09
mov dword [ebp - 0x6c], 1
jmp 0x1002ee0d
and dword [ebp - 0x6c], 0
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x168]
cmp dword [ebp - 0x6c], eax
jg 0x1002ee2d
mov eax, 0x9ef3
test eax, eax
jne 0x1002ee2d
and dword [ebp - 0x70], 0
jmp 0x1002ee34
mov dword [ebp - 0x70], 1
push 0
lea ecx, [ebp - 0x64]
call fcn.10016adb
mov ecx, dword [ebp - 0x70]
mov dword [eax], ecx
jmp 0x1002ecda
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.10016ad6
jmp 0x1002ea94
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 0x24]
and eax, 0x4000000
je 0x1002f30e
mov dword [ebp - 0x14], 0x76b0f738
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x158], 1
mov dword [ebp - 0x154], 1
mov dword [ebp - 0x150], 1
mov dword [ebp - 0x14c], 1
push 4
lea ecx, [ebp - 0x13c]
call fcn.10016a6e
mov dword [ebp - 4], 2
mov dword [ebp - 0x18], 0
jmp 0x1002eec7
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jge 0x1002eeda
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x3c], 0x70f9e3d3
jmp 0x1002eec0
mov dword [ebp - 0x18], 0
jmp 0x1002eeea
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x1002ef00
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x130], 1
jmp 0x1002eee3
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x13c]
push eax
push 0x5475
push 0xe67
call fcn.1002b7d5
add esp, 0x14
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push 0xfffffffffffffffd
pop eax
test eax, eax
je 0x1002f004
cmp dword [ebp - 0x14], 0xffffffff
jae 0x1002ef3f
mov dword [ebp - 0x78], 1
jmp 0x1002ef43
and dword [ebp - 0x78], 0
cmp dword [ebp - 0x10], 0xb6917ab6
ja 0x1002ef58
mov dword [ebp - 0xf4], 1
jmp 0x1002ef5f
and dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x10], eax
jl 0x1002ef7f
mov dword [ebp - 0x80], 1
jmp 0x1002ef83
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x80]
jle 0x1002ef94
mov dword [ebp - 0x50], 1
jmp 0x1002ef98
and dword [ebp - 0x50], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x50]
mov dword [ebp + eax - 0x3c], ecx
cmp dword [ebp - 0x50], 0x213e
je 0x1002efba
mov dword [ebp - 0x88], 1
jmp 0x1002efc1
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x88], eax
jl 0x1002efd8
mov dword [ebp - 0x90], 1
jmp 0x1002efdf
and dword [ebp - 0x90], 0
cmp dword [ebp - 0x90], 0x7ad53a38
jl 0x1002f004
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x3c], 0
je 0x1002f004
mov dword [ebp - 0xfc], 1
jmp 0x1002f00b
and dword [ebp - 0xfc], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x14], 0xffffffff
jle 0x1002f026
mov dword [ebp - 0x98], 1
jmp 0x1002f02d
and dword [ebp - 0x98], 0
cmp dword [ebp - 0x98], 0x3dec
jg 0x1002f045
mov dword [ebp - 0x104], 1
jmp 0x1002f04c
and dword [ebp - 0x104], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x17c], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x3c]
mov dword [ebp - 0x19c], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x3c]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x10], 0
je 0x1002f14a
mov dword [ebp - 0x14], 0
jmp 0x1002f08f
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x36
jg 0x1002f145
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x10], 0xfffffff7
jmp 0x1002f0b0
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jne 0x1002f0f9
mov dword [ebp - 0x40], 0xfffffffa
mov dword [ebp - 0x10c], 0xfffffffb
mov dword [ebp - 0x40], 0
jmp 0x1002f0d7
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 8
jge 0x1002f0f7
push 1
lea eax, [ebp - 0x10c]
push eax
call fcn.10026f52
pop ecx
pop ecx
cmp dword [ebp - 0x30], 0
je 0x1002f0f5
jmp 0x1002f0f7
jmp 0x1002f0d0
jmp 0x1002f0a9
mov dword [ebp - 0x30], 0
jmp 0x1002f109
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jg 0x1002f140
mov byte [ebp - 0x21], 0
movzx eax, byte [ebp - 0x21]
test eax, eax
je 0x1002f12a
push 0
push 0xcb6
push 0
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x1002f13e
push 1
call fcn.10026f8f
pop ecx
jmp 0x1002f102
jmp 0x1002f088
jmp 0x1002f2f0
mov dword [ebp - 0x34], 0x523e
push 3
lea ecx, [ebp - 0x148]
call fcn.10016a6e
mov byte [ebp - 4], 3
push 0x25b8
push 1
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x1a0]
push eax
push 0x7c80
call fcn.10026fc2
add esp, 0x14
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x34], 1
jg 0x1002f19f
mov dword [ebp - 0xa0], 1
jmp 0x1002f1a6
and dword [ebp - 0xa0], 0
cmp dword [ebp - 0xa0], 0x76dcb0c7
jl 0x1002f1bb
mov dword [ebp - 0x68], 1
jmp 0x1002f1bf
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x68], eax
jle 0x1002f1d6
cmp dword [ebp - 0x34], 0
jne 0x1002f1d6
and dword [ebp - 0xb0], 0
jmp 0x1002f1e0
mov dword [ebp - 0xb0], 1
cmp dword [ebp - 0xb0], 0x56eb3e19
jle 0x1002f1f5
mov dword [ebp - 0x48], 1
jmp 0x1002f1f9
and dword [ebp - 0x48], 0
push 1
lea ecx, [ebp - 0x148]
call fcn.10016adb
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x48], eax
jle 0x1002f21f
mov dword [ebp - 0xb8], 1
jmp 0x1002f226
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0xb8]
jl 0x1002f23a
mov dword [ebp - 0x4c], 1
jmp 0x1002f23e
and dword [ebp - 0x4c], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp + eax - 0x3c], ecx
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x130]
cmp dword [ebp - 0x4c], eax
je 0x1002f269
mov dword [ebp - 0xc0], 1
jmp 0x1002f270
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x10], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x130]
cmp dword [ebp - 0x10], eax
je 0x1002f297
mov dword [ebp - 0xc8], 1
jmp 0x1002f29e
and dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0xc8], eax
jg 0x1002f2c2
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x158], 0
jne 0x1002f2c2
and dword [ebp - 0xd0], 0
jmp 0x1002f2cc
mov dword [ebp - 0xd0], 1
push 2
lea ecx, [ebp - 0x13c]
call fcn.10016adb
mov ecx, dword [ebp - 0xd0]
mov dword [eax], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
call fcn.10016ad6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.10016ad6
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
or eax, 0x200
mov ecx, dword [ebp - 0x54]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret