Function at 0x402c46
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
push ebx
push esi
push edi
lea eax, [ebp - 0x518]
push 0x104
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x414]
push eax
call fcn.004028fd
lea eax, [ebp - 0x414]
push eax
call fcn.0046260c
pop ecx
lea eax, [ebp - 0x108]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00402941
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.00460b40
pop ecx
test eax, eax
pop ecx
je 0x402efb
push 0x47542c
push dword [ebp + 8]
call fcn.004607ce
mov edi, eax
pop ecx
test edi, edi
pop ecx
mov dword [ebp + 8], edi
je 0x402dc3
push 2
push 0
push edi
call fcn.004610a0
push edi
call fcn.00460838
push edi
mov ebx, eax
call fcn.004625b8
push ebx
call fcn.004616c5
push edi
mov esi, eax
push ebx
push 1
push esi
call fcn.00461c1a
add esp, 0x28
cmp eax, ebx
je 0x402d0e
push esi
call fcn.00461382
push edi
call fcn.00460758
pop ecx
pop ecx
jmp 0x402dc3
xor edi, edi
test ebx, ebx
jle 0x402d6f
push 8
lea eax, [edi + esi]
push str.EMANGIRO360_ISTANBUL_TopkapiSarayi_Babusselam.exe
push eax
call fcn.00462580
add esp, 0xc
test eax, eax
jne 0x402d32
cmp byte [edi + esi + 9], 0x30
jne 0x402d39
inc edi
cmp edi, ebx
jl 0x402d14
jmp 0x402d6f
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x108]
push eax
call fcn.004028fd
lea eax, [edi + esi + 8]
push eax
lea eax, [ebp - 0x108]
push 0x47536c
push eax
call fcn.00460e70
pop ecx
lea eax, [ebp + eax - 0x108]
push eax
call fcn.004612ec
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x475428
push eax
call fcn.004607ce
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x402d9b
push dword [ebp + 8]
call fcn.00460758
push esi
call fcn.00461382
jmp 0x402d07
push edi
push ebx
push 1
push esi
call fcn.00461d02
add esp, 0x10
cmp eax, ebx
je 0x402dcb
push dword [ebp + 8]
call fcn.00460758
push edi
call fcn.00460758
push esi
call fcn.00461382
add esp, 0xc
or eax, 0xffffffff
jmp 0x402efd
push esi
call fcn.00461382
push dword [ebp + 8]
call fcn.00460758
push edi
call fcn.00460758
lea eax, [ebp - 0x108]
push eax
call fcn.00401468
mov ebx, eax
mov esi, 0x4752ac
lea eax, [ebp - 0x518]
push esi
push eax
lea eax, [ebp - 0x310]
push str._s_s.scr
push eax
mov edi, edx
call fcn.004612ec
lea eax, [ebp - 0x414]
push esi
push eax
lea eax, [ebp - 0x20c]
push str._s_s.exe
push eax
call fcn.004612ec
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00460b40
add esp, 0x38
test eax, eax
je 0x402e7e
lea eax, [ebp - 0x310]
push eax
call fcn.00401468
cmp edi, edx
pop ecx
jg 0x402e68
jl 0x402e57
cmp ebx, eax
ja 0x402e68
cmp ebx, eax
jne 0x402e7e
cmp edi, edx
jne 0x402e7e
cmp byte [0x475129], 0
je 0x402e7e
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00402f04
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00460b40
pop ecx
test eax, eax
pop ecx
je 0x402ed5
lea eax, [ebp - 0x20c]
push eax
call fcn.00401468
cmp edi, edx
pop ecx
jg 0x402ebf
jl 0x402eae
cmp ebx, eax
ja 0x402ebf
cmp ebx, eax
jne 0x402ed5
cmp edi, edx
jne 0x402ed5
cmp byte [0x475129], 0
je 0x402efb
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00402f04
cmp byte [0x475129], 0
je 0x402efb
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004029cd
and byte [0x475129], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4