Function at 0x436561
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x184
call fcn.00454e00
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4365ad
push ebx
call fcn.004547ee
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0x400
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4365de
push 6
call fcn.004547fa
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x436605
mov eax, 0x46845a
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x436601
push ebx
call fcn.004547ee
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 4
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x436624
mov eax, 0x46845a
push eax
push 2
mov ebx, 0x134
call fcn.004567b0
add esp, 0x1c
mov dword [ebp - 0xc], eax
push str.___
push dword [ebp - 0xc]
call fcn.00402f27
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x436668
push ebx
call fcn.004547ee
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x4366fe
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x436685
mov eax, 0x46845a
push eax
push 1
mov ebx, 0x130
call fcn.00454e50
add esp, 0x10
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fsub qword [0x46852f]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.00402f00
push 0x80000301
push 0
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4366d0
mov eax, 0x46845a
push eax
push 2
mov ebx, 0x138
call fcn.00456890
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4366fa
push ebx
call fcn.004547ee
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0xc
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x43671d
mov eax, 0x46845a
push eax
push 2
mov ebx, 0x134
call fcn.004567b0
add esp, 0x1c
mov dword [ebp - 0xc], eax
push str.SystemRoot_
push dword [ebp - 0xc]
call fcn.00402f27
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x436761
push ebx
call fcn.004547ee
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x436882
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.00454e00
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4367a0
push ebx
call fcn.004547ee
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0xff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4367cb
push 6
call fcn.004547fa
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4367de
mov eax, 0x46845a
push eax
push 1
mov ebx, 0x130
call fcn.00454e50
add esp, 0x10
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fsub qword [0x469496]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.00402f00
push 0x80000301
push 0
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x436829
mov eax, 0x46845a
push eax
push 2
mov ebx, 0x138
call fcn.00456890
add esp, 0x1c
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push 0x468d65
push dword [ebp - 8]
mov ecx, 3
call fcn.00402ea4
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x43686a
push ebx
call fcn.004547ee
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x43687e
push ebx
call fcn.004547ee
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x43689e
push eax
mov ebx, eax
call fcn.00402b03
inc eax
push eax
call fcn.004547f4
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4368a3
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4368b4
push ebx
call fcn.004547ee
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4368c4
push ebx
call fcn.004547ee
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8