Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push ebx
push esi
push edi
push 0x77f4
call fcn.0040d56c
mov dword [0x4318c0], eax
mov eax, dword [ebp + 8]
mov dword [0x4316b0], eax
pop ecx
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x28]
xor edi, edi
cdq
sub eax, edx
push 0x104
sar eax, 1
mov dword [0x431a2c], eax
mov eax, dword [ebp - 0x24]
cdq
sub eax, edx
sar eax, 1
mov dword [0x431a28], eax
mov eax, dword [0x4318c0]
mov word [eax + 4], di
mov eax, dword [0x4318c0]
mov dword [eax], edi
lea eax, [ebp - 0x134]
push eax
push dword [0x4316b0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 1
lea eax, [ebp - 0x20]
pop esi
mov dword [ebp - 0x20], 0xc
push edi
push 0x80
push 3
push eax
push esi
lea eax, [ebp - 0x134]
push 0x80000000
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401d95
push edi
call fcn.004048df
test eax, eax
pop ecx
je 0x401d8e
lea eax, [ebp - 4]
mov dword [ebp + 8], esi
push eax
push edi
mov dword [ebp - 4], 0x3c96
call fcn.00405026
pop ecx
pop ecx
mov ecx, dword [0x4318c0]
push 2
pop esi
mov word [ecx + 6], ax
mov eax, dword [0x4318c0]
cmp word [eax + 6], si
jae 0x40181c
lea eax, [ebp - 4]
push eax
push edi
call fcn.00405026
pop ecx
pop ecx
mov ecx, dword [0x4318c0]
mov word [ecx + 8], ax
mov eax, dword [0x4318c0]
cmp word [eax + 8], si
jae 0x40181c
lea eax, [ebp - 4]
push eax
push edi
call fcn.00405026
pop ecx
pop ecx
mov ecx, dword [0x4318c0]
mov word [ecx + 0xa], ax
mov eax, dword [0x4318c0]
cmp word [eax + 0xa], si
jae 0x40181c
lea eax, [ebp - 4]
push eax
push edi
call fcn.00405026
pop ecx
pop ecx
mov ecx, dword [0x4318c0]
mov word [ecx + 0xc], ax
mov eax, dword [0x4318c0]
cmp word [eax + 0xc], si
jae 0x40181c
lea eax, [ebp - 4]
push eax
push edi
call fcn.00405026
pop ecx
pop ecx
mov ecx, dword [0x4318c0]
mov word [ecx + 0xe], ax
mov eax, dword [0x4318c0]
cmp word [eax + 0xe], si
jae 0x40181c
lea eax, [ebp - 4]
push eax
push edi
call fcn.00405026
pop ecx
pop ecx
mov ecx, dword [0x4318c0]
mov word [ecx + 0x10], ax
mov eax, dword [0x4318c0]
cmp word [eax + 0x10], si
jae 0x40181c
lea eax, [ebp - 4]
push eax
push edi
call fcn.00405026
pop ecx
pop ecx
mov ecx, dword [0x4318c0]
mov word [ecx + 0x12], ax
mov eax, dword [0x4318c0]
cmp word [eax + 0x12], si
jae 0x40181c
lea eax, [ebp - 4]
push eax
push edi
call fcn.00405026
pop ecx
pop ecx
mov ecx, dword [0x4318c0]
mov word [ecx + 0x14], ax
mov eax, dword [0x4318c0]
cmp word [eax + 0x14], si
jae 0x40181c
lea ecx, [ebp - 4]
add eax, 0x18
push ecx
push 0x1e
pop esi
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x36
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x54
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x73
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x91
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0xaf
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0xcd
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0xeb
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x109
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x145
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x127
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x19f
push 0x50
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
push edi
call fcn.00405026
pop ecx
pop ecx
mov ecx, dword [0x4318c0]
mov word [ecx + 0x1f0], ax
mov eax, dword [0x4318c0]
cmp word [eax + 0x1f0], 3
ja 0x40181c
lea ecx, [ebp - 4]
mov esi, 0xff
push ecx
add eax, 0x1f2
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x2f2
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
mov ebx, 0x7d0
push eax
mov eax, dword [0x4318c0]
add eax, 0x3f2
push ebx
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
inc esi
push eax
mov eax, dword [0x4318c0]
add eax, 0xbc3
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0xcc4
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0xdc5
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0xec6
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0xfc7
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x10c8
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x11c9
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x12ca
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x13cb
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x14cc
push 0x64
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x1531
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x1632
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x1733
push esi
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x1834
push 0x64
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x1899
push ebx
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x206a
push ebx
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x283b
push ebx
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x300c
push ebx
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x37dd
push ebx
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x67dc
push 0x64
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x6841
push ebx
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x7012
push ebx
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
push edi
call fcn.00405026
pop ecx
pop ecx
mov ecx, dword [0x4318c0]
mov word [ecx + 0x77e4], ax
mov eax, dword [0x4318c0]
cmp word [eax + 0x77e4], 2
jae 0x40181c
lea ecx, [ebp - 4]
add eax, 0x3fae
push ecx
push 0x1f40
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
push edi
call fcn.00405026
pop ecx
pop ecx
mov ecx, dword [0x4318c0]
mov word [ecx + 0x16], ax
mov eax, dword [0x4318c0]
cmp word [eax + 0x16], 2
jae 0x40181c
lea ecx, [ebp - 4]
add eax, 0x163
push ecx
push 0x1e
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4318c0]
add eax, 0x181
push 0x1e
push eax
push edi
call fcn.00404f3c
add esp, 0x10
test eax, eax
je 0x40181c
lea eax, [ebp - 4]
push eax
push edi
call fcn.00405026
pop ecx
cmp ax, 0xffff
pop ecx
mov dword [ebp - 0x10], eax
je 0x40181c
lea eax, [ebp - 4]
push eax
push edi
call fcn.00405026
pop ecx
cmp ax, 0xffff
pop ecx
mov dword [ebp - 0x14], eax
je 0x40181c
lea eax, [ebp - 4]
push eax
push edi
call fcn.00405026
pop ecx
cmp ax, 0xffff
pop ecx
mov dword [ebp - 8], eax
je 0x40181c
lea eax, [ebp - 4]
push eax
push edi
call fcn.00405026
pop ecx
cmp ax, 0xffff
pop ecx
mov dword [ebp - 0xc], eax
je 0x40181c
lea eax, [ebp - 4]
push eax
push edi
call fcn.00405026
pop ecx
pop ecx
mov ecx, dword [0x4318c0]
mov word [ecx + 0x77f0], ax
mov eax, dword [0x4318c0]
cmp word [eax + 0x77f0], 2
jae 0x40181c
mov dword [ebp + 8], 2
movzx eax, word [ebp - 0x14]
movzx ecx, word [ebp - 0x10]
shl eax, 0x10
or eax, ecx
mov ecx, dword [0x4318c0]
push edi
mov dword [ecx + 0x77e8], eax
movzx eax, word [ebp - 0xc]
movzx ecx, word [ebp - 8]
shl eax, 0x10
or eax, ecx
mov ecx, dword [0x4318c0]
mov dword [ecx + 0x77ec], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 2
jne 0x401d95
mov eax, dword [0x4318c0]
lea ecx, [eax + 0x19f]
add eax, 0x5eef
push ecx
push eax
call fcn.0040d330
lea eax, [ebp - 0x134]
push eax
mov eax, dword [0x4318c0]
add eax, 0x6040
push eax
call fcn.0040d330
mov eax, dword [0x4318c0]
push 0x5c
pop ebx
lea esi, [eax + 0x6040]
push ebx
push esi
call fcn.0040d4b0
add esp, 0x18
test eax, eax
je 0x4018b5
inc esi
push ebx
push esi
call fcn.0040d4b0
pop ecx
pop ecx
jmp 0x4018a5
mov eax, dword [0x4318c0]
push esi
add eax, 0x5f40
push eax
call fcn.0040d330
mov eax, dword [0x4318c0]
add eax, 0x6040
push eax
call fcn.0040d420
mov ecx, dword [0x4318c0]
add esp, 0xc
lea eax, [eax + ecx + 0x603f]
cmp byte [eax], bl
je 0x4018f0
and byte [eax], 0
dec eax
jmp 0x4018e6
and byte [eax], 0
mov eax, dword [0x4318c0]
cmp byte [eax + 0x1f2], 0
lea ecx, [eax + 0x1f2]
jne 0x40194d
add eax, 0x6040
push eax
push ecx
call fcn.0040d330
mov eax, dword [0x4318c0]
pop ecx
pop ecx
cmp word [eax + 0x77e4], 0
je 0x40194d
add eax, 0x1f2
push eax
call fcn.00404e6c
mov eax, dword [0x4318c0]
mov dword [esp], 0x416034
add eax, 0x1f2
push eax
call fcn.0040d340
mov eax, dword [0x4318c0]
pop ecx
pop ecx
mov esi, 0xff
add eax, 0x6140
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [0x4318c0]
push esi
add eax, 0x6240
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [0x4318c0]
add eax, 0x6340
push eax
push esi
call fcn.004051cc
mov eax, dword [0x4318c0]
add eax, 0x6440
push eax
call fcn.004051e5
mov eax, dword [0x4318c0]
add eax, 0x6540
push eax
push esi
call fcn.0040521e
mov eax, dword [0x4318c0]
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
add esp, 0x14
and byte [eax + 0x6640], 0
push 0x77
push dword [0x4316b0]
call edi
mov ecx, dword [0x4318c0]
push 0x76
mov dword [ecx + 0x6784], eax
push dword [0x4316b0]
call edi
mov ecx, dword [0x4318c0]
push 0x79
mov dword [ecx + 0x6788], eax
push dword [0x4316b0]
call edi
mov ecx, dword [0x4318c0]
push 0x78
mov dword [ecx + 0x678c], eax
push dword [0x4316b0]
call edi
mov ecx, dword [0x4318c0]
push 0x89
mov dword [ecx + 0x6790], eax
push dword [0x4316b0]
call edi
mov ecx, dword [0x4318c0]
xor esi, esi
push 0x7f03
push esi
mov dword [ecx + 0x67a0], eax
call edi
mov ecx, dword [0x4318c0]
push 0x7f04
push esi
mov dword [ecx + 0x6794], eax
call edi
mov ecx, dword [0x4318c0]
push 0x7f02
push esi
mov dword [ecx + 0x6798], eax
call edi
mov ecx, dword [0x4318c0]
push 0x8b
mov dword [ecx + 0x679c], eax
push dword [0x4316b0]
call dword [sym.imp.USER32.dll_LoadCursorA]
mov ecx, dword [0x4318c0]
mov esi, dword [sym.imp.USER32.dll_LoadBitmapA]
push 0x72
mov dword [ecx + 0x67a4], eax
push dword [0x4316b0]
call esi
mov ecx, dword [0x4318c0]
push 0x6e
mov dword [ecx + 0x67a8], eax
push dword [0x4316b0]
call esi
mov ecx, dword [0x4318c0]
push 0x6b
mov dword [ecx + 0x67b4], eax
push dword [0x4316b0]
call esi
mov ecx, dword [0x4318c0]
push 0x6c
mov dword [ecx + 0x67ac], eax
push dword [0x4316b0]
call esi
mov ecx, dword [0x4318c0]
push 0x6a
mov dword [ecx + 0x67b8], eax
push dword [0x4316b0]
call esi
mov ecx, dword [0x4318c0]
push 0x73
mov dword [ecx + 0x67b0], eax
push dword [0x4316b0]
call esi
mov ecx, dword [0x4318c0]
push 0x6f
mov dword [ecx + 0x67bc], eax
push dword [0x4316b0]
call esi
mov ecx, dword [0x4318c0]
push 0x71
mov dword [ecx + 0x67c0], eax
push dword [0x4316b0]
call esi
mov ecx, dword [0x4318c0]
push 0x6d
mov dword [ecx + 0x67c4], eax
push dword [0x4316b0]
call esi
mov ecx, dword [0x4318c0]
push 0x74
mov dword [ecx + 0x67c8], eax
push dword [0x4316b0]
call esi
mov ecx, dword [0x4318c0]
push 0x70
mov dword [ecx + 0x67cc], eax
push dword [0x4316b0]
call esi
mov ecx, dword [0x4318c0]
push 0x82
mov dword [ecx + 0x67d0], eax
push dword [0x4316b0]
call esi
mov ecx, dword [0x4318c0]
push 0x75
mov dword [ecx + 0x67d4], eax
push dword [0x4316b0]
call edi
mov ecx, dword [0x4318c0]
push 0x416030
mov dword [ecx + 0x6780], eax
lea eax, [ebp - 0x238]
push eax
mov eax, dword [0x4318c0]
add eax, 0x1f2
push eax
call fcn.004049c2
lea eax, [ebp - 0x238]
push 0xff
push eax
mov eax, dword [0x4318c0]
add eax, 0x1f2
push eax
call fcn.0040d288
add esp, 0x18
test eax, eax
jne 0x401c03
lea eax, [ebp - 0x238]
push eax
mov eax, dword [0x4318c0]
add eax, 0x1f2
push eax
call fcn.0040d330
pop ecx
pop ecx
mov eax, dword [0x4318c0]
add eax, 0x1f2
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0x2f2
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0x3f2
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0xbc3
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0xcc4
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0xdc5
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0xec6
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0xfc7
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0x10c8
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0x11c9
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0x12ca
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0x13cb
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0x14cc
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0x1531
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0x1632
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0x1733
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add esp, 0x40
add eax, 0x1834
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0x1899
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0x206a
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0x283b
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0x300c
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0x37dd
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0x6841
push eax
call fcn.00404943
mov eax, dword [0x4318c0]
add eax, 0x7012
push eax
call fcn.00404943
add esp, 0x20
push 1
pop eax
jmp 0x401d97
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret