Function at 0x402e60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4132bc
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4190a4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x24c], eax
xor edi, edi
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.USER32.dll_GetWindow]
push edi
push edi
mov dword [ebp - 0x250], edi
call esi
mov edx, dword [0x419020]
mov eax, dword [edx + 0xc]
mov ecx, 0x419020
call eax
add eax, 0x10
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 2
mov edx, dword [0x419020]
mov eax, dword [edx + 0xc]
mov ecx, 0x419020
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 3
mov edx, dword [0x419020]
mov eax, dword [edx + 0xc]
mov ecx, 0x419020
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 4
mov edx, dword [0x419020]
mov eax, dword [edx + 0xc]
mov ecx, 0x419020
call eax
add eax, 0x10
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 5
mov edx, dword [0x419020]
mov eax, dword [edx + 0xc]
mov ecx, 0x419020
call eax
add eax, 0x10
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 6
mov edx, dword [0x419020]
mov eax, dword [edx + 0xc]
mov ecx, 0x419020
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
push edi
push edi
mov byte [ebp - 4], 7
call esi
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
call dword [sym.imp.USER32.dll_GetParent]
lea eax, [ebp - 0x21c]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x402fa4
sub eax, ecx
sar eax, 1
lea edx, [ebp - 0x21c]
push edx
mov edi, eax
lea ebx, [ebp - 0x224]
call fcn.004047c0
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, dword [ebp - 0x224]
test edi, edi
je 0x403053
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jl 0x403053
push edi
push eax
call fcn.0040707a
add esp, 8
test eax, eax
je 0x403053
mov ecx, dword [ebp + 8]
sub eax, ecx
sar eax, 1
jne 0x403053
mov eax, dword [ecx - 0xc]
mov ecx, dword [edi - 0xc]
lea edx, [ebp + 8]
sub eax, ecx
push edx
lea ebx, [ebp - 0x244]
call fcn.00403a40
lea ecx, [ebp + 8]
mov byte [ebp - 4], 8
call fcn.004038a0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403044
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
call dword [sym.imp.USER32.dll_FlashWindow]
jmp 0x403161
lea ecx, [ebp - 0x22c]
push ecx
lea edi, [ebp - 0x224]
call fcn.00403c00
add esp, 4
lea edx, [ebp - 0x244]
mov bl, 9
push edx
mov edi, eax
mov byte [ebp - 4], bl
call fcn.00403b40
add esp, 4
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xa
call fcn.004038a0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [ebp - 0x224]
test edi, edi
je 0x403161
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jl 0x403161
push edi
push eax
call fcn.0040707a
add esp, 8
test eax, eax
je 0x403161
mov ecx, dword [ebp + 8]
sub eax, ecx
sar eax, 1
jne 0x403161
mov eax, dword [ecx - 0xc]
mov ecx, dword [edi - 0xc]
lea edx, [ebp + 8]
sub eax, ecx
push edx
lea ebx, [ebp - 0x22c]
call fcn.00403a40
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xb
call fcn.004038a0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403155
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_AnimateWindow]
mov edi, dword [ebp - 0x248]
test edi, edi
jne 0x40316f
xor eax, eax
jmp 0x403183
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403174
sub eax, edx
sar eax, 1
push eax
push edi
lea ebx, [ebp - 0x238]
call fcn.00404060
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [ebp - 0x234]
test edi, edi
jne 0x4031a8
xor eax, eax
jmp 0x4031bf
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4031b0
sub eax, edx
sar eax, 1
push eax
push edi
lea ebx, [ebp - 0x238]
call fcn.00404060
push 0
push 0
call esi
mov ecx, dword [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x250]
call fcn.00403910
mov byte [ebp - 4], 0xc
mov ecx, dword [eax]
mov edi, dword [ebp - 0x220]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x40324b
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40323c
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40323c
call fcn.00404930
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x403231
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0x10
mov dword [ebp - 0x220], esi
jmp 0x40324b
mov edi, dword [ecx - 0xc]
push ecx
lea ebx, [ebp - 0x220]
call fcn.004047c0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403271
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, dword [ebp - 0x220]
cmp dword [edi - 0xc], 0
mov esi, dword [ebp - 0x228]
je 0x403633
mov ecx, dword [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x250]
call fcn.00403910
mov byte [ebp - 4], 0xd
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x403308
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4032f3
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4032f3
call fcn.00404930
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4032e8
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0x10
mov dword [ebp - 0x228], esi
jmp 0x403302
mov edi, dword [ecx - 0xc]
push ecx
lea ebx, [ebp - 0x228]
call fcn.004047c0
mov esi, dword [ebp - 0x228]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40332e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov ebx, dword [ebp - 0x238]
xor eax, eax
test ebx, ebx
setne al
test eax, eax
jne 0x403351
push 0x80004005
call fcn.00405cc0
mov eax, dword [ebp - 0x220]
mov ecx, ebx
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403386
test dx, dx
je 0x403382
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403386
add eax, 4
add ecx, 4
test dx, dx
jne 0x403360
xor edi, edi
jmp 0x40338b
sbb edi, edi
sbb edi, 0xffffffff
push 0
push 0
call dword [sym.imp.USER32.dll_FlashWindow]
test edi, edi
jne 0x403548
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x4034c2
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4033ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4033ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403414
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403434
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40345a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403480
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004062ab
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x248]
test ecx, ecx
je 0x4034e8
test eax, eax
js 0x4034e8
push ecx
push esi
call fcn.0040707a
add esp, 8
test eax, eax
je 0x4034e8
sub eax, esi
sar eax, 1
je 0x4033a8
mov ecx, dword [ebp - 0x240]
mov edi, dword [ecx]
lea eax, [esi - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x40353e
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x403533
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x403533
call fcn.00404930
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x403526
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x240]
add esi, 0x10
mov dword [ecx], esi
jmp 0x40353e
mov edi, dword [esi - 0xc]
push esi
mov ebx, ecx
call fcn.004047c0
push 0
push 0
call dword [sym.imp.USER32.dll_FlashWindow]
mov esi, dword [ebp - 0x220]
mov edi, dword [ebp - 0x230]
add esi, 0xfffffff0
add edi, 0xfffffff0
cmp esi, edi
je 0x4035b6
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4035a1
mov edx, dword [esi]
cmp edx, dword [edi]
jne 0x4035a1
mov eax, esi
call fcn.00404930
mov dword [ebp - 0x22c], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x403590
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x22c]
add ecx, 0x10
mov dword [ebp - 0x230], ecx
jmp 0x4035b6
mov eax, dword [ebp - 0x220]
mov edi, dword [eax - 0xc]
push eax
lea ebx, [ebp - 0x230]
call fcn.004047c0
push 0
call dword [sym.imp.USER32.dll_CloseWindow]
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
cmp eax, esi
je 0x403624
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40360f
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40360f
call fcn.00404930
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4035f7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
push 0
add ebx, 0x10
push 0
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x403279
mov eax, dword [ebp - 0x228]
mov edi, dword [eax - 0xc]
push eax
lea ebx, [ebp - 0x220]
call fcn.004047c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x403279
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403659
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40367f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4036a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4036c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
lea eax, [edi - 0x10]
jmp 0x403441