Function at 0x4201f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aafd4
mov eax, dword fs:[0]
push eax
sub esp, 0xc90
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 2
mov dword [ebp - 0xc94], ebx
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0xc4c], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0xc64], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0xc24], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0xc48], eax
mov word [eax], cx
xor esi, esi
push 2
mov dword [ebp - 0xc50], esi
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0xc68], eax
add esp, 0x14
mov word [eax], cx
push 0x208
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 4
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp byte [ebp + 0x10], 0
jne 0x4202d0
lea edi, [ebp - 0x420]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4202b4
mov ecx, 0xb
mov esi, 0x4b5468
rep movsd dword es:[edi], dword [esi]
xor esi, esi
jmp 0x420315
lea ecx, [ebp - 0x420]
add ecx, 0xfffffffe
lea esp, [esp]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4202e0
mov eax, dword [0x4b5494]
mov dword [ecx], eax
mov eax, dword [0x4b5498]
mov dword [ecx + 4], eax
mov eax, dword [0x4b549c]
mov dword [ecx + 8], eax
mov eax, dword [0x4b54a0]
mov dword [ecx + 0xc], eax
mov ax, word [0x4b54a4]
mov word [ecx + 0x10], ax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x42045a
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0xc40], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0xc44], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0xc3c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0xc30], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0xc34], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0xc38], eax
lea eax, [ebp - 0x420]
push eax
call fcn.0048faa4
mov dword [ebp - 0xc2c], eax
lea eax, [ebp - 0x420]
push eax
call fcn.0048faa4
mov dword [ebp - 0xc28], eax
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0xc40]
mov byte [ebp - 4], 0xc
push eax
push 1
push 0
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0xc3c]
push eax
lea eax, [ebp - 0xc30]
push eax
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0xc38]
push eax
lea eax, [ebp - 0xc2c]
push eax
lea eax, [ebp - 0xc28]
push eax
push 0
push 0xffffffffffffffff
push 2
push ebx
call fcn.00403eb0
add esp, 0x64
mov dword [ebp + 0xc], eax
push dword [ebp - 0xc28]
call fcn.0048faf7
push dword [ebp - 0xc2c]
call fcn.0048faf7
push dword [ebp - 0xc38]
call fcn.0048faf7
push dword [ebp - 0xc34]
call fcn.0048faf7
push dword [ebp - 0xc30]
call fcn.0048faf7
push dword [ebp - 0xc3c]
call fcn.0048faf7
push dword [ebp - 0xc44]
call fcn.0048faf7
push dword [ebp - 0xc40]
mov byte [ebp - 4], 4
call fcn.0048faf7
add esp, 0x20
lea eax, [ebp - 0x420]
push 0x4b54a8
push eax
call fcn.00492ce5
mov edi, eax
add esp, 8
mov dword [ebp - 0xc80], edi
test edi, edi
je 0x420995
push edi
lea eax, [ebp - 0xc20]
push 0x400
push eax
call fcn.00492c29
add esp, 0xc
test eax, eax
je 0x42098c
jmp 0x4204a0
cmp word [ebp - 0xc20], 0x5b
jne 0x4204d2
push 9
lea eax, [ebp - 0xc20]
push 0x4b54b0
push eax
call fcn.004917b4
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov dword [ebp - 0xc50], esi
jmp 0x42096f
test esi, esi
je 0x42096f
push 5
lea eax, [ebp - 0xc20]
push 0x4b54c4
push eax
call fcn.004917b4
add esp, 0xc
test eax, eax
jne 0x4204fc
lea ebx, [ebp - 0xc16]
jmp 0x420520
push 4
lea eax, [ebp - 0xc20]
push 0x4b54d0
push eax
call fcn.004917b4
add esp, 0xc
test eax, eax
jne 0x42096f
lea ebx, [ebp - 0xc18]
push 0
push ebx
mov dword [ebp - 0xc28], ebx
call fcn.0049110f
mov esi, eax
add esp, 8
cmp esi, ebx
jbe 0x420554
movzx eax, word [esi - 2]
add esi, 0xfffffffe
push eax
call fcn.00490e58
add esp, 4
test eax, eax
je 0x420554
xor eax, eax
mov word [esi], ax
cmp esi, ebx
ja 0x420537
mov dword [ebp - 0xc60], 0
mov dword [ebp - 0xc5c], 0
mov dword [ebp - 0xc58], 0
push 0
lea eax, [ebp - 0xc60]
mov byte [ebp - 4], 0xd
push eax
push 0x2c
push ebx
call fcn.00406950
mov edx, dword [ebp - 0xc5c]
add esp, 0x10
mov ecx, dword [ebp - 0xc60]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0xc8c], 0
sar eax, 4
test eax, eax
je 0x420921
xor edi, edi
mov dword [ebp - 0xc70], edi
jmp 0x4205c0
push dword [edi + ecx]
mov esi, dword [ebp - 0xc48]
add edi, ecx
call fcn.0048faa4
push esi
mov dword [ebp - 0xc48], eax
call fcn.0048faf7
push 0
push edi
mov edi, dword [ebp - 0xc94]
lea eax, [ebp - 0xc98]
push edi
push eax
call fcn.00404cf0
mov esi, dword [ebp - 0xc24]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0xc24], eax
call fcn.0048faf7
push dword [ebp - 0xc98]
call fcn.0048faf7
mov eax, dword [ebp - 0xc24]
add esp, 0x24
cmp word [eax], 0
je 0x4208e4
lea ecx, [ebp - 0xc64]
push ecx
lea ecx, [ebp - 0xc4c]
push ecx
push eax
push edi
call fcn.00404ce0
mov esi, eax
lea eax, [ebp - 0x420]
push eax
call fcn.0048faa4
mov dword [ebp - 0xc3c], eax
lea eax, [ebp - 0x420]
push eax
call fcn.0048faa4
mov dword [ebp - 0xc44], eax
push ebx
call fcn.0048faa4
mov dword [ebp - 0xc40], eax
lea eax, [ebp - 0xc9c]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0xc68]
push eax
lea eax, [ebp - 0xc4c]
push eax
lea eax, [ebp - 0xc24]
push eax
lea eax, [ebp - 0xc3c]
push eax
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0xc40]
push eax
push edi
call fcn.00403c00
push dword [ebp - 0xc40]
mov bl, al
call fcn.0048faf7
add esp, 0x40
push dword [ebp - 0xc44]
call fcn.0048faf7
push dword [ebp - 0xc3c]
mov byte [ebp - 4], 0xd
call fcn.0048faf7
add esp, 8
test bl, bl
je 0x4208de
cmp dword [ebp + 0xc], 0xffffffff
jne 0x420824
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0xc74], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0xc90], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0xc88], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0xc6c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0xc2c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0xc38], eax
lea eax, [ebp - 0x420]
push eax
call fcn.0048faa4
mov dword [ebp - 0xc34], eax
lea eax, [ebp - 0x420]
push eax
call fcn.0048faa4
mov dword [ebp - 0xc30], eax
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0xc74]
mov byte [ebp - 4], 0x18
push eax
movzx eax, byte [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0xc90]
push eax
lea eax, [ebp - 0xc88]
push eax
lea eax, [ebp - 0xc6c]
push eax
lea eax, [ebp - 0xc2c]
push eax
lea eax, [ebp - 0xc38]
push eax
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0xc30]
push eax
push 0
push 0xffffffffffffffff
push 2
push edi
call fcn.00403eb0
add esp, 0x64
mov dword [ebp + 0xc], eax
push dword [ebp - 0xc30]
call fcn.0048faf7
push dword [ebp - 0xc34]
call fcn.0048faf7
push dword [ebp - 0xc38]
call fcn.0048faf7
push dword [ebp - 0xc2c]
call fcn.0048faf7
push dword [ebp - 0xc6c]
call fcn.0048faf7
push dword [ebp - 0xc88]
call fcn.0048faf7
push dword [ebp - 0xc90]
call fcn.0048faf7
push dword [ebp - 0xc74]
call fcn.0048faf7
add esp, 0x20
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0xc7c], eax
lea eax, [ebp - 0x420]
push eax
call fcn.0048faa4
mov dword [ebp - 0xc84], eax
mov ebx, dword [ebp - 0xc28]
push ebx
call fcn.0048faa4
mov dword [ebp - 0xc78], eax
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0xc7c]
mov byte [ebp - 4], 0x1b
push eax
movzx eax, byte [ebp + 0x10]
push eax
push dword [ebp - 0xc9c]
lea eax, [ebp - 0xc48]
push eax
lea eax, [ebp - 0xc68]
push eax
lea eax, [ebp - 0xc64]
push eax
lea eax, [ebp - 0xc4c]
push eax
lea eax, [ebp - 0xc24]
push eax
lea eax, [ebp - 0xc84]
push eax
lea eax, [ebp - 0xc78]
push eax
push 4
push dword [ebp + 0xc]
push esi
push edi
call fcn.00403eb0
add esp, 0x50
push dword [ebp - 0xc78]
call fcn.0048faf7
push dword [ebp - 0xc84]
call fcn.0048faf7
push dword [ebp - 0xc7c]
mov byte [ebp - 4], 0xd
call fcn.0048faf7
add esp, 0xc
jmp 0x4208e4
mov ebx, dword [ebp - 0xc28]
mov edx, dword [ebp - 0xc5c]
mov eax, edx
mov esi, dword [ebp - 0xc8c]
mov ecx, dword [ebp - 0xc60]
inc esi
mov edi, dword [ebp - 0xc70]
sub eax, ecx
add edi, 0x10
sar eax, 4
mov dword [ebp - 0xc8c], esi
mov dword [ebp - 0xc70], edi
cmp esi, eax
jb 0x4205c0
mov edi, dword [ebp - 0xc80]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x420969
push dword [ebp - 0xc80]
lea eax, [ebp - 0xc51]
push eax
push edx
push ecx
call fcn.00402b30
push dword [ebp - 0xc60]
call fcn.0048f453
add esp, 0x14
mov dword [ebp - 0xc60], 0
mov dword [ebp - 0xc5c], 0
mov dword [ebp - 0xc58], 0
mov esi, dword [ebp - 0xc50]
push edi
lea eax, [ebp - 0xc20]
push 0x400
push eax
call fcn.00492c29
add esp, 0xc
test eax, eax
jne 0x4204a0
push edi
call fcn.00492e75
add esp, 4
push dword [ebp - 0xc68]
call fcn.0048faf7
push dword [ebp - 0xc48]
call fcn.0048faf7
push dword [ebp - 0xc24]
call fcn.0048faf7
push dword [ebp - 0xc64]
call fcn.0048faf7
push dword [ebp - 0xc4c]
call fcn.0048faf7
mov eax, dword [ebp + 0xc]
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret