Function at 0x1006f1a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e1068
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x10122064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c4], ecx
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.1008d070
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x17c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x178], 0xf
mov byte [ebp - 0x18c], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006f230
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x18c]
call fcn.1001de90
push 1
push 0x1010b1c4
lea ecx, [ebp - 0x18c]
mov dword [ebp - 4], 0
call fcn.1001e0f0
push 0xf
push str.9Dragonsbot.ini
lea ecx, [ebp - 0x18c]
call fcn.1001e0f0
cmp dword [ebp - 0x178], 0x10
lea eax, [ebp - 0x18c]
lea ecx, [ebp - 0x29c]
cmovae eax, dword [ebp - 0x18c]
sub esp, 0xc
push eax
call fcn.10071af0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x29c]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x290]
test al, 6
je 0x1006f2cb
push str.9Dragonsbot.ini
push str.Warning:__s_does_not_exist__will_use_configured_defaults._n
call fcn.1006f000
add esp, 8
xor bl, bl
jmp 0x1006fb56
mov esi, 0xf
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], esi
mov byte [ebp - 0x174], 0
mov byte [ebp - 4], 2
mov byte [ebp - 0x1b6], 0
test al, 1
jne 0x1006fad0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
lea edx, [ebp - 0x144]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x29c]
call fcn.100726c0
lea ecx, [ebp - 0x144]
call fcn.10081800
mov esi, dword [ebp - 0x134]
test esi, esi
jne 0x1006f3a9
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x130]
cmp eax, 0x10
jb 0x1006fab3
mov ecx, dword [ebp - 0x144]
inc eax
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x1b0], ecx
cmp eax, 0x1000
jb 0x1006f3a2
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x1b0]
push eax
call fcn.10017080
mov eax, dword [ebp - 0x1b4]
add esp, 8
mov ecx, dword [ebp - 0x1b0]
push eax
push ecx
jmp 0x1006faab
cmp dword [ebp - 0x130], 0x10
lea ecx, [ebp - 0x144]
mov edi, dword [ebp - 0x144]
cmovae ecx, edi
setae byte [ebp - 0x1b5]
mov dword [ebp - 0x1b0], ecx
test esi, esi
je 0x1006f3ea
push esi
push 0x3d
push ecx
call fcn.1008d520
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1006f3ea
sub ebx, dword [ebp - 0x1b0]
jmp 0x1006f3ed
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x1006f8c1
cmp byte [ebp - 0x1b6], 0
jne 0x1006fa64
cmp esi, ebx
mov dword [ebp - 0x15c], 0
mov ecx, ebx
mov dword [ebp - 0x14c], 0
cmovb ecx, esi
mov dword [ebp - 0x148], 0xf
cmp byte [ebp - 0x1b5], 0
lea eax, [ebp - 0x144]
push ecx
cmovne eax, edi
mov byte [ebp - 0x15c], 0
push eax
lea ecx, [ebp - 0x15c]
call fcn.1001de90
mov byte [ebp - 4], 4
inc ebx
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
cmp eax, ebx
jb 0x1006fbd2
sub eax, ebx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
cmovae eax, dword [ebp - 0x144]
push ecx
add eax, ebx
lea ecx, [ebp - 0x12c]
push eax
call fcn.1001de90
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 5
call fcn.10081800
cmp dword [ebp - 0x118], 0x10
lea edi, [ebp - 0x12c]
mov ebx, dword [ebp - 0x12c]
lea esi, [ebp - 0x12c]
mov edx, dword [ebp - 0x11c]
cmovae edi, ebx
setae al
add edi, edx
test al, al
cmovne esi, ebx
cmp esi, edi
je 0x1006f512
movzx eax, byte [esi]
push eax
call fcn.100a1040
add esp, 4
test eax, eax
je 0x1006f506
inc esi
cmp esi, edi
jne 0x1006f4f1
mov edx, dword [ebp - 0x11c]
mov ebx, dword [ebp - 0x12c]
cmp dword [ebp - 0x118], 0x10
lea ecx, [ebp - 0x12c]
cmovae ecx, ebx
setae al
sub esi, ecx
mov edi, ecx
test al, al
je 0x1006f531
sub edi, ebx
jmp 0x1006f53b
lea eax, [ebp - 0x12c]
sub edi, eax
mov ebx, eax
mov eax, edx
lea ecx, [ebx + edi]
sub eax, edi
cmp eax, esi
cmovb esi, eax
sub edx, esi
mov dword [ebp - 0x11c], edx
sub edx, edi
inc edx
push edx
lea eax, [ecx + esi]
push eax
push ecx
call fcn.1008caf0
mov edi, dword [ebp - 0x1c4]
lea eax, [ebp - 0x174]
add esp, 0xc
add edi, 0x18
mov ecx, edi
push eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.10072d00
mov esi, dword [ebp - 0x1c8]
cmp byte [esi + 0xd], 0
jne 0x1006f5a0
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x174]
call fcn.10071cd0
shr eax, 0x1f
test al, al
je 0x1006f5a2
mov esi, dword [edi]
cmp esi, dword [edi]
jne 0x1006f75e
push 0x40
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 0
call fcn.1008a330
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x1c0], eax
lea eax, [ebp - 0x174]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x1ac]
call fcn.1001db50
mov byte [ebp - 4], 7
push 0x40
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x190], 0
call fcn.1008a330
mov ecx, eax
add esp, 4
mov dword [ecx], ecx
mov dword [ecx + 4], ecx
mov dword [ecx + 8], ecx
mov word [ecx + 0xc], 0x101
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x1c0], ecx
mov ecx, dword [ebp - 0x190]
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x1bc], ecx
lea eax, [ebp - 0x1ac]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x1e4]
mov ecx, edi
push eax
call fcn.10072b70
mov eax, dword [ebp - 0x194]
push dword [eax + 4]
lea eax, [ebp - 0x194]
push eax
mov ecx, eax
call fcn.10072d60
push 0x40
push dword [ebp - 0x194]
call fcn.1008ab90
mov eax, dword [ebp - 0x198]
add esp, 8
cmp eax, 0x10
jb 0x1006f6df
mov ecx, dword [ebp - 0x1ac]
inc eax
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x1b0], ecx
cmp eax, 0x1000
jb 0x1006f6d5
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x1b0]
push eax
call fcn.10017080
mov ecx, dword [ebp - 0x1b0]
add esp, 8
mov eax, dword [ebp - 0x1b4]
push eax
push ecx
call fcn.1008ab90
add esp, 8
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0xf
mov byte [ebp - 0x1ac], 0
push dword [eax + 4]
lea eax, [ebp - 0x1c0]
push eax
mov ecx, eax
call fcn.10072d60
push 0x40
push dword [ebp - 0x1c0]
call fcn.1008ab90
add esp, 8
lea eax, [ebp - 0x174]
mov ecx, edi
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.10072d00
mov esi, dword [ebp - 0x1d4]
cmp byte [esi + 0xd], 0
jne 0x1006f75c
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x174]
call fcn.10071cd0
shr eax, 0x1f
test al, al
je 0x1006f75e
mov esi, dword [edi]
lea eax, [ebp - 0x15c]
lea ecx, [esi + 0x28]
push eax
call fcn.10070b70
mov ecx, eax
lea eax, [ebp - 0x12c]
cmp ecx, eax
je 0x1006f793
cmp dword [ebp - 0x118], 0x10
push dword [ebp - 0x11c]
cmovae eax, dword [ebp - 0x12c]
push eax
call fcn.1001de90
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x1006f7e4
mov ecx, dword [ebp - 0x12c]
inc eax
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x1b0], ecx
cmp eax, 0x1000
jb 0x1006f7da
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x1b0]
push eax
call fcn.10017080
mov ecx, dword [ebp - 0x1b0]
add esp, 8
mov eax, dword [ebp - 0x1b4]
push eax
push ecx
call fcn.1008ab90
add esp, 8
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
cmp eax, 0x10
jb 0x1006f850
mov ecx, dword [ebp - 0x15c]
inc eax
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1b4], ecx
cmp eax, 0x1000
jb 0x1006f846
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.10017080
mov eax, dword [ebp - 0x1b0]
add esp, 8
mov ecx, dword [ebp - 0x1b4]
push eax
push ecx
call fcn.1008ab90
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
cmp eax, 0x10
jb 0x1006fab3
mov ecx, dword [ebp - 0x144]
inc eax
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x1b0], ecx
cmp eax, 0x1000
jb 0x1006f8ba
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x1b0]
push eax
call fcn.10017080
mov ecx, dword [ebp - 0x1b0]
add esp, 8
mov eax, dword [ebp - 0x1b4]
push eax
push ecx
jmp 0x1006faab
cmp byte [ebp - 0x1b5], 0
lea eax, [ebp - 0x144]
cmovne eax, edi
mov dword [ebp - 0x1b0], eax
test esi, esi
je 0x1006f8f5
push esi
push 0x5b
push eax
call fcn.1008d520
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1006f8f5
sub ebx, dword [ebp - 0x1b0]
jmp 0x1006f8f8
or ebx, 0xffffffff
cmp byte [ebp - 0x1b5], 0
lea edx, [ebp - 0x144]
lea eax, [esi - 1]
cmovne edx, edi
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5d
je 0x1006f92e
nop word [eax + eax]
cmp ecx, edx
je 0x1006fa55
dec ecx
cmp byte [ecx], 0x5d
jne 0x1006f920
sub ecx, edx
cmp ebx, 0xffffffff
je 0x1006fa5d
cmp ecx, 0xffffffff
je 0x1006fa5d
cmp ebx, ecx
ja 0x1006fa5d
inc ebx
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0xf
cmp esi, ebx
jb 0x1006fbd2
dec ecx
lea eax, [ebp - 0x144]
sub esi, ebx
cmp esi, ecx
cmovb ecx, esi
cmp byte [ebp - 0x1b5], 0
push ecx
cmovne eax, edi
lea ecx, [ebp - 0x15c]
add eax, ebx
push eax
call fcn.1001de90
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x174]
call fcn.1001da30
mov eax, dword [ebp - 0x148]
cmp eax, 0x10
jb 0x1006f9fb
mov ecx, dword [ebp - 0x15c]
inc eax
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1b4], ecx
cmp eax, 0x1000
jb 0x1006f9f1
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.10017080
mov eax, dword [ebp - 0x1b0]
add esp, 8
mov ecx, dword [ebp - 0x1b4]
push eax
push ecx
call fcn.1008ab90
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x130]
mov byte [ebp - 0x1b6], 0
cmp eax, 0x10
jb 0x1006fab3
mov ecx, dword [ebp - 0x144]
inc eax
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1b4], ecx
cmp eax, 0x1000
jb 0x1006fa51
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.10017080
mov eax, dword [ebp - 0x1b0]
add esp, 8
mov ecx, dword [ebp - 0x1b4]
push eax
push ecx
jmp 0x1006faab
or ecx, 0xffffffff
jmp 0x1006f930
mov byte [ebp - 0x1b6], 1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x130]
cmp eax, 0x10
jb 0x1006fab3
inc eax
mov dword [ebp - 0x1b4], edi
mov dword [ebp - 0x1b0], eax
cmp eax, 0x1000
jb 0x1006faa9
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.10017080
mov edi, dword [ebp - 0x1b4]
add esp, 8
mov eax, dword [ebp - 0x1b0]
push eax
push edi
call fcn.1008ab90
add esp, 8
mov eax, dword [ebp - 0x29c]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x290], 1
je 0x1006f304
mov esi, dword [ebp - 0x160]
lea ecx, [ebp - 0x28c]
call fcn.10072240
test eax, eax
jne 0x1006fb08
mov eax, dword [ebp - 0x29c]
lea ecx, [ebp - 0x29c]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.1006be60
mov bl, 1
cmp esi, 0x10
jb 0x1006fb56
mov eax, dword [ebp - 0x174]
inc esi
mov dword [ebp - 0x1b0], esi
mov dword [ebp - 0x1b4], eax
cmp esi, 0x1000
jb 0x1006fb4c
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.10017080
mov esi, dword [ebp - 0x1b0]
add esp, 8
mov eax, dword [ebp - 0x1b4]
push esi
push eax
call fcn.1008ab90
add esp, 8
lea ecx, [ebp - 0x29c]
call fcn.1006fbe0
mov eax, dword [ebp - 0x178]
cmp eax, 0x10
jb 0x1006fbb2
mov ecx, dword [ebp - 0x18c]
inc eax
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1b4], ecx
cmp eax, 0x1000
jb 0x1006fba8
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.10017080
mov eax, dword [ebp - 0x1b0]
add esp, 8
mov ecx, dword [ebp - 0x1b4]
push eax
push ecx
call fcn.1008ab90
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008a020
mov esp, ebp
pop ebp
ret 4
call fcn.1001e380
int3