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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4821d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a8
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebp + 8]
mov al, byte [0x660f18]
mov byte [ebp - 0x14], al
mov ecx, dword [0x660eec]
mov eax, dword [ecx]
mov byte [0x660f18], 1
push edx
push 0x6f20dc
push ecx
call dword [eax + 0x3c]
add esp, 0xc
lea eax, [ebp - 0x2b4]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov edi, 0x6f20f8
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x440c42
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x440c3a
cmp eax, 0x80
jl 0x440c5a
mov eax, 0x7f
mov dword [ebp - 0x1b0], 0x7f
jmp 0x440c60
mov dword [ebp - 0x1b0], eax
test eax, eax
je 0x440c7f
lea edx, [ebp - 0x1ac]
push eax
push 0x6f20f8
push edx
call fcn.0046edc0
add esp, 0xc
mov eax, dword [ebp - 0x1b0]
mov byte [ebp + eax - 0x1ac], 0
mov dword [ebp - 4], 0
mov edi, 0x6ea648
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x440ca5
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x440c9d
mov ebx, eax
mov edx, dword [ebp - 0x1b0]
add edx, ebx
cmp edx, 0x7f
jge 0x440cd9
lea edi, [ebp - 0x1ac]
mov edx, 0x6ea648
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x440cc9
add dword [ebp - 0x1b0], ebx
push edi
mov eax, dword [0x660ec0]
call fcn.0044128c
mov esi, eax
add esp, 4
mov edi, esi
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x440cfd
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x440cf5
mov ebx, dword [ebp - 0x1b0]
lea edx, [ebx + eax]
mov dword [ebp - 0x18], eax
cmp edx, 0x7f
jge 0x440d39
lea edi, [ebp - 0x1ac]
mov edx, esi
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x440d20
mov ebx, dword [ebp - 0x1b0]
add ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1b0], ebx
mov edi, 0x6ea648
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x440d50
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x440d48
mov esi, eax
add ebx, esi
cmp ebx, 0x7f
jge 0x440d7e
lea edi, [ebp - 0x1ac]
mov edx, 0x6ea648
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x440d6e
add dword [ebp - 0x1b0], esi
lea edi, [ebp - 0x1ac]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x440d96
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x440d8e
cmp eax, 0x80
jl 0x440dae
mov eax, 0x7f
mov dword [ebp - 0x12c], 0x7f
jmp 0x440db4
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x440dd5
lea ecx, [ebp - 0x128]
lea edx, [ebp - 0x1ac]
push eax
push edx
push ecx
call fcn.0046edc0
add esp, 0xc
mov eax, dword [ebp - 0x12c]
mov byte [ebp + eax - 0x128], 0
mov edi, dword [ebp + 8]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x440df2
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x440dea
mov ebx, eax
mov edx, dword [ebp - 0x12c]
add edx, ebx
cmp edx, 0x7f
jge 0x440e28
lea edi, [ebp - 0x128]
mov edx, dword [ebp + 8]
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x440e18
add dword [ebp - 0x12c], ebx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x128]
push eax
push 0x6f2104
call fcn.004403f0
add esp, 8
lea eax, [ebp - 0x1ac]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x440f18
lea edx, [ebp - 0x2b4]
push edx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov ecx, dword [0x660eec]
mov esi, dword [ecx]
mov edx, dword [ebp + 8]
push edx
push 0x6f21a4
push ecx
call dword [esi + 0x3c]
add esp, 0xc
lea edx, [ebp - 0x2b4]
push 0x104
push edx
push ebx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x440ed1
mov al, byte [ebp - 0x14]
mov byte [0x660f18], al
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x2b4]
push ebx
push edx
push 0x6f21c0
call fcn.004403f0
add esp, 0xc
mov dl, byte [ebp - 0x14]
mov byte [0x660f18], dl
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x660ec0]
test eax, eax
jne 0x440f72
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 8]
push eax
push 0x6f2170
push 2
call fcn.00440498
add esp, 0xc
mov al, byte [ebp - 0x14]
mov byte [0x660f18], al
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x128]
push eax
push 0x6f2120
call fcn.004403f0
add esp, 8
mov dword [0x660ec0], 0
mov edi, 0x6f20f8
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x440fa7
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x440f9f
cmp eax, 0x80
jl 0x440fbf
mov eax, 0x7f
mov dword [ebp - 0x1b0], 0x7f
jmp 0x440fc5
mov dword [ebp - 0x1b0], eax
test eax, eax
je 0x440fe4
lea edx, [ebp - 0x1ac]
push eax
push 0x6f20f8
push edx
call fcn.0046edc0
add esp, 0xc
mov eax, dword [ebp - 0x1b0]
mov byte [ebp + eax - 0x1ac], 0
mov edi, 0x6ea648
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x441003
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x440ffb
mov ebx, eax
mov edx, dword [ebp - 0x1b0]
add edx, ebx
cmp edx, 0x7f
jge 0x441037
lea edi, [ebp - 0x1ac]
mov edx, 0x6ea648
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x441027
add dword [ebp - 0x1b0], ebx
push edi
mov eax, dword [0x660ec0]
call fcn.0044128c
mov esi, eax
add esp, 4
mov edi, esi
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x44105b
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x441053
mov ebx, dword [ebp - 0x1b0]
lea edx, [ebx + eax]
mov dword [ebp - 0x18], eax
cmp edx, 0x7f
jge 0x441097
lea edi, [ebp - 0x1ac]
mov edx, esi
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x44107e
mov ebx, dword [ebp - 0x1b0]
add ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1b0], ebx
mov edi, 0x6ea648
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4410ae
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x4410a6
mov esi, eax
add ebx, esi
cmp ebx, 0x7f
jge 0x4410dc
lea edi, [ebp - 0x1ac]
mov edx, 0x6ea648
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x4410cc
add dword [ebp - 0x1b0], esi
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x1ac]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
lea edi, [ebp - 0x1ac]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x44110e
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x441106
cmp eax, 0x80
jl 0x441126
mov eax, 0x7f
mov dword [ebp - 0xa8], 0x7f
jmp 0x44112c
mov dword [ebp - 0xa8], eax
test eax, eax
je 0x44114d
lea ecx, [ebp - 0xa4]
lea edx, [ebp - 0x1ac]
push eax
push edx
push ecx
call fcn.0046edc0
add esp, 0xc
mov eax, dword [ebp - 0xa8]
mov byte [ebp + eax - 0xa4], 0
mov edi, dword [ebp + 8]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x44116a
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x441162
mov ebx, eax
mov edx, dword [ebp - 0xa8]
add edx, ebx
cmp edx, 0x7f
jge 0x4411a0
lea edi, [ebp - 0xa4]
mov edx, dword [ebp + 8]
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x441190
add dword [ebp - 0xa8], ebx
mov dword [ebp - 4], 2
lea edi, [ebp - 0xa4]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4411bf
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x4411b7
cmp eax, 0x80
jl 0x4411d7
mov eax, 0x7f
mov dword [ebp - 0x12c], 0x7f
jmp 0x4411dd
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x4411fe
lea ecx, [ebp - 0x128]
lea edx, [ebp - 0xa4]
push eax
push edx
push ecx
call fcn.0046edc0
add esp, 0xc
mov eax, dword [ebp - 0x12c]
mov byte [ebp + eax - 0x128], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x128]
push eax
push 0x6f214c
call fcn.004403f0
add esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x440e64
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 8]
push eax
push 0x6f2170
push 2
call fcn.00440498
add esp, 0xc
mov al, byte [ebp - 0x14]
mov byte [0x660f18], al
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4