Function at 0x46cf51
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
push esi
movzx eax, byte [ebp + 0x38]
test eax, eax
je 0x46d297
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x60], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x98], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x78]
movzx eax, byte [eax]
test eax, eax
je 0x46d257
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x46d221
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xc], eax
push 1
mov ecx, dword [ebp - 4]
call fcn.0043566b
cmp dword [eax], 0
je 0x46d213
mov eax, dword [ebp - 8]
cmp dword [eax], 0x86c8a81d
jbe 0x46d1a1
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xe0], eax
push 1
mov ecx, dword [ebp - 4]
call fcn.0043566b
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x5c]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x46d0da
mov dword [ebp - 0x24], 1
jmp 0x46d0de
and dword [ebp - 0x24], 0
push 1
mov ecx, dword [ebp - 4]
call fcn.0043566b
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax]
jle 0x46d100
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x46d100
mov dword [ebp - 0x14], 1
jmp 0x46d104
and dword [ebp - 0x14], 0
push 0
mov ecx, dword [ebp - 4]
call fcn.0043566b
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + eax + 0x39f617e0]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xe4], eax
push 1
mov ecx, dword [ebp - 4]
call fcn.0043566b
push 1
mov ecx, dword [ebp - 4]
call fcn.0043566b
cmp dword [eax], 0xfffffffe
jle 0x46d14c
mov dword [ebp - 0x2c], 1
jmp 0x46d150
and dword [ebp - 0x2c], 0
push 1
mov ecx, dword [ebp - 4]
call fcn.0043566b
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax]
jl 0x46d16a
mov dword [ebp - 0x1c], 1
jmp 0x46d16e
and dword [ebp - 0x1c], 0
mov esi, dword [ebp - 0x1c]
sub esi, 0xfff7
push 1
mov ecx, dword [ebp - 4]
call fcn.0043566b
cmp esi, dword [eax]
je 0x46d18e
mov dword [ebp - 0x3c], 1
jmp 0x46d192
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0
je 0x46d1a1
mov dword [ebp - 0x34], 1
jmp 0x46d1a5
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x34], eax
jne 0x46d1b8
mov dword [ebp - 0x10], 1
jmp 0x46d1bc
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add eax, 0x2b9bf611
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx]
jne 0x46d1d4
mov dword [ebp - 0x20], 1
jmp 0x46d1d8
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0x4743
jl 0x46d1ea
mov dword [ebp - 0x28], 1
jmp 0x46d1ee
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0x3196
jge 0x46d200
mov dword [ebp - 0x30], 1
jmp 0x46d204
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0
ja 0x46d213
mov dword [ebp - 0x38], 1
jmp 0x46d217
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
jmp 0x46d255
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x94]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x46d292
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
push 1
push 1
push 1
push 0x27f4
push 0x70e6
push 0
push 0x2bab
push 0x1da9
push dword [ebp - 0xa4]
push 0xb5c
call fcn.0045cf59
add esp, 0x28
jmp 0x46d33d
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0xb4], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0xac], eax
lea eax, [ebp + 0x34]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xac]
movzx eax, byte [eax]
test eax, eax
je 0x46d2e9
push 0x155b
push 1
push 0x3c66
push 0x3839
push 0x184d
push 0x4dd
push 0x59b
call fcn.00459cd3
add esp, 0x1c
jmp 0x46d33d
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc4]
movzx eax, byte [eax]
test eax, eax
je 0x46d330
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
jmp 0x46d33d
push 0x15dd
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
pop esi
mov esp, ebp
pop ebp
ret