Function at 0x409cf0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x6f8]
sub esp, 0x6f8
push 0xffffffffffffffff
push 0x4222d0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4292b4]
xor eax, ebp
mov dword [ebp + 0x6f4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x700]
mov dword [ebp - 0x20], eax
mov ecx, dword [0x42b11c]
mov esi, dword [ecx + 0x14]
add esi, 0x1218c
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x409d51
call fcn.00412821
mov ebx, esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
lea esp, [esp]
mov edx, dword [0x42b11c]
mov esi, dword [edx + 0x14]
add esi, 0x1218c
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x409d7c
call fcn.00412821
test ebx, ebx
je 0x409d84
cmp ebx, esi
je 0x409d89
call fcn.00412821
cmp dword [ebp - 0x18], edi
je 0x40a0f2
mov byte [ebp - 0x11], 0
mov eax, dword [0x42b11c]
mov esi, dword [eax + 0x14]
add esi, 0x1219c
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x409db1
call fcn.00412821
mov dword [ebp - 0x28], esi
jmp 0x409dc0
mov ecx, dword [0x42b11c]
mov esi, dword [ecx + 0x14]
add esi, 0x1219c
mov ebx, dword [esi + 8]
cmp dword [esi + 4], ebx
jbe 0x409ddc
call fcn.00412821
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x409de7
cmp eax, esi
je 0x409dec
call fcn.00412821
cmp edi, ebx
je 0x409ed7
mov esi, dword [ebp - 0x1c]
test esi, esi
jne 0x409e00
call fcn.00412821
mov ebx, dword [ebp - 0x18]
cmp ebx, dword [esi + 8]
jb 0x409e0d
call fcn.00412821
cmp dword [ebp - 0x28], 0
jne 0x409e18
call fcn.00412821
mov edx, dword [ebp - 0x28]
cmp edi, dword [edx + 8]
jb 0x409e25
call fcn.00412821
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov esi, dword [ebp - 0x28]
test eax, eax
jne 0x409ec2
cmp edi, dword [esi + 8]
jb 0x409e4c
call fcn.00412821
cmp edi, dword [esi + 8]
jb 0x409e4c
call fcn.00412821
push 0
mov eax, dword [0x42b11c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x3878]
shr edx, 3
and edx, 0xffffff01
push edx
lea eax, [edi + 0x108]
push eax
mov ecx, dword [edi + 0x104]
push ecx
lea edx, [ebp + 0x5f0]
push edx
call fcn.00401d00
lea eax, [ebp + 0x5f0]
push eax
call fcn.0040e080
add esp, 0x18
lea ecx, [ebp + 0x5f0]
push ecx
lea edx, [ebp + 0x4ec]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x1c]
cmp ebx, dword [eax + 8]
jb 0x409eb0
call fcn.00412821
push ebx
lea ecx, [ebp + 0x5f0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov byte [ebp - 0x11], 1
cmp edi, dword [esi + 8]
jb 0x409ecc
call fcn.00412821
add edi, 0x210
jmp 0x409dc0
cmp byte [ebp - 0x11], 0
jne 0x409f43
mov edx, dword [0x42b11c]
mov eax, dword [edx + 0x14]
add eax, 0x4ba
push eax
lea ecx, [ebp + 0x5f0]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
lea edx, [ebp + 0x5f0]
push edx
call fcn.0040e080
add esp, 4
lea eax, [ebp + 0x5f0]
push eax
lea ecx, [ebp + 0x4ec]
push ecx
call esi
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
jne 0x409f26
call fcn.00412821
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebx + 8]
jb 0x409f33
call fcn.00412821
push esi
lea edx, [ebp + 0x5f0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x409f46
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp + 0x4ec]
push eax
call fcn.0040e0c0
add esp, 4
lea ecx, [ebp + 0x3e8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebp + 0x4ec]
push edx
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call edi
lea eax, [ebp + 0x5f0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov dword [ebp - 0x2c], esi
lea ecx, [ebp + 0x3e8]
push ecx
call edi
test esi, esi
je 0x40a087
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a037
mov dword [ebp - 4], 0
call eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
jge 0x40a07e
jmp 0x409fe4
push 0x7d0
push str.Now_installing_files.
push 0x28
mov edx, dword [0x42b48c]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp + 0x5f0]
push eax
push str.Now_installing_files.
lea ecx, [ebp]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x42ba40
lea edx, [ebp]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40a0cd
push 0x7d0
push str.Now_installing_files.
push 0x28
mov ecx, dword [0x42b48c]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [ebp + 0x5f0]
push edx
push str.Now_installing_files.
lea eax, [ebp]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x42ba40
lea ecx, [ebp]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40a0cd
push 0x7d0
push str.Now_installing_files.
push 0x28
mov eax, dword [0x42b48c]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [ebp + 0x5f0]
push ecx
push str.Now_installing_files.
lea edx, [ebp]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x42ba40
lea eax, [ebp]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
test ebx, ebx
jne 0x40a0d6
call fcn.00412821
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebx + 8]
jb 0x40a0e3
call fcn.00412821
add dword [ebp - 0x18], 0x105
mov ebx, dword [ebp - 0x1c]
jmp 0x409d60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6f4]
xor ecx, ebp
call fcn.0040ffc4
add ebp, 0x6f8
mov esp, ebp
pop ebp
ret