Function at 0x409513
Capabilities:
Get common file path

Disassembly:
mov eax, 0x417b0a
call fcn.00416288
sub esp, 0x1ac
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x1c], ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], ebx
push 2
mov dword [ebp - 0x14], 0x1872
mov dword [ebp - 0x10], ebx
pop esi
jmp 0x40954b
call edi
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, esi
jl 0x409543
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], ebx
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40957a
call edi
mov dword [ebp - 0x14], eax
call fcn.0040d480
cdq
mov ecx, 0x3bb4bb5
idiv ecx
mov dword [ebp - 0x10], edx
call fcn.0040d480
cdq
mov ecx, 0x1874
idiv ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
imul eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 0x1876
mov dword [ebp - 0x10], ebx
jmp 0x4095c0
call edi
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, esi
jl 0x4095b8
lea eax, [ebp - 0x1b8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4095f8
lea eax, [ebp - 0x1b8]
push eax
call fcn.0040d2b0
pop ecx
lea ecx, [ebp - 0x1b8]
lea esi, [ebp - 0x68]
call fcn.00403470
push dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
call fcn.0040337d
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
add eax, 0x1879
je 0x409617
inc dword [ebp - 0x10]
lea eax, [ebp - 0x4c]
call fcn.00406281
cmp eax, 0xffffffff
je 0x4096eb
xor eax, eax
mov byte [ebp - 0x18], 0
lea edi, [ebp - 0x17]
stosb byte es:[edi], al
mov al, byte [0x41abf9]
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x4c]
push 0x10
pop edx
mov byte [ebp - 0x18], al
mov eax, edi
cmp esi, edx
jae 0x40964c
lea eax, [ebp - 0x4c]
cmp byte [eax], 0x2f
je 0x4096d5
mov eax, edi
cmp esi, edx
jae 0x40965e
lea eax, [ebp - 0x4c]
cmp byte [eax], 0x5c
je 0x4096d5
mov eax, edi
cmp esi, edx
jae 0x40966c
lea eax, [ebp - 0x4c]
cmp byte [eax], 0
je 0x409680
mov eax, edi
cmp esi, edx
jae 0x40967a
lea eax, [ebp - 0x4c]
cmp byte [eax + 1], 0x3a
je 0x4096d5
mov ecx, dword [ebp - 0x68]
cmp dword [ebp - 0x54], edx
jae 0x40968b
lea ecx, [ebp - 0x68]
mov eax, edi
cmp esi, edx
jae 0x409694
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 8]
call fcn.00409316
pop ecx
pop ecx
xor eax, eax
inc eax
push eax
xor edi, edi
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], al
call fcn.00403438
push 1
xor edi, edi
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.00403438
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
mov eax, edi
cmp esi, edx
jae 0x4096de
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 8]
call fcn.0040922f
pop ecx
pop ecx
jmp 0x40969f
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040b3c0
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
add eax, 0x1880
je 0x40970b
inc dword [ebp - 0x10]
mov esi, dword [ebp - 0x28]
cmp esi, dword [ebp - 0x24]
jne 0x40971e
lea esi, [ebp - 0x2c]
call fcn.00406729
mov esi, dword [ebp - 0x28]
mov byte [ebp - 4], 4
cmp esi, ebx
je 0x40972f
lea eax, [ebp - 0x68]
push eax
call fcn.004071fc
add esi, 0x1c
mov byte [ebp - 4], 3
lea eax, [esi - 0x1c]
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x2c], eax
je 0x409752
cmp eax, esi
je 0x409752
push esi
push eax
push dword [ebp - 0x2c]
call fcn.0040c8b0
add esp, 0xc
mov dword [ebp - 0x14], ebx
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x409766
call edi
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x2c]
jmp 0x409817
xor edi, edi
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x10]
je 0x40978d
push str.windows6276XP
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x40978d
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp - 0x4c]
push 0x10
pop esi
cmp dword [ebp - 0x38], esi
jae 0x40979b
lea ecx, [ebp - 0x4c]
cmp dword [ebx + 0x14], esi
jb 0x4097a4
mov eax, dword [ebx]
jmp 0x4097a6
mov eax, ebx
push ecx
push eax
lea eax, [ebp - 0x84]
push str._s__s
push eax
call fcn.00408c79
add esp, 0x10
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x84]
cmp dword [ebp - 0x70], esi
jae 0x4097d1
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.00408fdd
pop ecx
pop ecx
test al, al
jne 0x409870
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x409801
push str.windows6278XP
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x409801
mov dword [ebp - 0x10], edi
push 1
xor edi, edi
lea esi, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00403438
add ebx, 0x1c
cmp ebx, dword [ebp - 0x28]
jne 0x40976e
push dword [ebp + 0xc]
lea eax, [ebp - 0xac]
push str.file__s_not_found_in_search_path
push eax
call fcn.00408c79
add esp, 0xc
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x409843
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x90]
call fcn.0040d1ea
push 0x41b694
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x90], vtable.std::runtime_error.0
call fcn.00410998
mov eax, dword [ebp - 0x84]
cmp dword [ebp - 0x70], esi
jae 0x409881
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 8]
call fcn.0040922f
pop ecx
xor ebx, ebx
pop ecx
inc ebx
push ebx
xor edi, edi
lea esi, [ebp - 0x84]
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 3
call fcn.00403438
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00406780
push ebx
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.00403438
push ebx
jmp 0x4096b5