Function at 0x1001df10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x1c8
push ebp
mov ebp, dword [esp + 0x1d0]
push esi
push edi
mov edi, str.odbc.ini
mov esi, ebp
mov ecx, 9
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 0xc], 0x104
jne 0x1001df5f
mov ecx, dword [esp + 0x1e0]
mov edx, dword [esp + 0x1dc]
push 1
push ecx
push edx
push ebp
call fcn.1001ef10
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x1c8
ret
push ebx
push 0x1c
lea eax, [esp + 0x128]
push eax
xor ebx, ebx
push fcn.1001de10
mov byte [esp + 0x28], bl
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jne 0x1001df89
xor eax, eax
jmp 0x1001dfbe
mov edx, dword [esp + 0x128]
push 0x103
lea ecx, [esp + 0x20]
push ecx
push edx
call edi
mov byte [esp + eax + 0x1c], bl
lea eax, [esp + 0x1c]
push eax
call fcn.1001ec30
lea eax, [esp + 0x20]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1001dfb5
sub eax, edx
mov edx, dword [esp + 0x10]
sub edx, eax
cmp eax, ebx
mov dword [esp + 0x10], edx
jbe 0x1001dff3
push ebx
push ebx
mov ecx, edx
push ebp
push ecx
lea edx, [esp + eax + 0x2c]
push edx
call fcn.1001eed0
lea eax, [esp + 0x30]
push 4
push eax
call fcn.1001ece0
add esp, 0x1c
test eax, eax
je 0x1001e44b
push 0x103
lea ecx, [esp + 0x20]
push ecx
push ebx
mov dword [esp + 0x1c], 0x104
call edi
lea edx, [esp + 0x1c]
push edx
mov byte [esp + eax + 0x20], bl
call fcn.1001ec30
lea eax, [esp + 0x20]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1001e020
sub eax, edx
mov edx, dword [esp + 0x10]
sub edx, eax
cmp eax, ebx
mov dword [esp + 0x10], edx
jbe 0x1001e05e
push ebx
push ebx
mov ecx, edx
push ebp
push ecx
lea edx, [esp + eax + 0x2c]
push edx
call fcn.1001eed0
lea eax, [esp + 0x30]
push 4
push eax
call fcn.1001ece0
add esp, 0x1c
test eax, eax
je 0x1001e44b
push ebx
push ebx
push ebp
lea ecx, [esp + 0x28]
push 0x104
push ecx
call fcn.1001ee90
lea edx, [esp + 0x30]
push 4
push edx
call fcn.1001ece0
add esp, 0x1c
test eax, eax
je 0x1001e44b
mov eax, ebp
call fcn.1001de70
mov esi, eax
cmp dword [esp + 0x1e8], ebx
je 0x1001e125
push 0x96
lea eax, [esp + 0x144]
push eax
push str.SYBASE
call fcn.1001ecf0
add esp, 0xc
cmp eax, ebx
je 0x1001e125
push ebx
push ebx
push eax
lea ecx, [esp + 0x28]
push 0x104
push ecx
call fcn.1001ee90
lea edx, [esp + 0x30]
push ebx
push edx
call fcn.1001eba0
push ebx
push ebx
push 0x10032e1c
lea eax, [esp + 0x44]
push 0x104
push eax
call fcn.1001eed0
lea ecx, [esp + 0x4c]
push ebx
push ecx
call fcn.1001eba0
push ebx
push ebx
push ebp
lea edx, [esp + 0x60]
push 0x104
push edx
call fcn.1001eed0
add esp, 0x4c
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.1001ece0
add esp, 8
test eax, eax
je 0x1001e44b
mov eax, str.win32_
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1001e130
sub eax, edx
mov dword [esp + 0x18], eax
je 0x1001e275
push esi
push str.win32_
call fcn.10021517
add esp, 8
test eax, eax
je 0x1001e275
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.1001de10
add esp, 8
cmp eax, ebx
jbe 0x1001e1d7
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x18]
push edx
mov ecx, 0x104
sub ecx, eax
push 0x10032e18
push ecx
lea eax, [esp + eax + 0x2c]
push eax
mov dword [esp + 0x24], ecx
call fcn.1001eed0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x2c]
push edx
push esi
push eax
push ecx
call fcn.1001eed0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
push ebx
push ebx
push ebp
push edx
push eax
call fcn.1001eed0
lea ecx, [esp + 0x58]
push 4
push ecx
call fcn.1001ece0
add esp, 0x44
test eax, eax
je 0x1001e44b
push 0x103
lea edx, [esp + 0x20]
push edx
push ebx
call edi
mov byte [esp + eax + 0x1c], bl
lea eax, [esp + 0x1c]
push eax
call fcn.1001ec30
lea eax, [esp + 0x20]
add esp, 4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1001e200
sub eax, edx
mov ecx, eax
je 0x1001e275
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x18]
push edx
mov eax, 0x104
sub eax, ecx
push 0x10032e18
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + ecx + 0x2c]
push eax
call fcn.1001eed0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x2c]
push edx
push esi
push eax
push ecx
call fcn.1001eed0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
push ebx
push ebx
push ebp
push edx
push eax
call fcn.1001eed0
lea ecx, [esp + 0x58]
push 4
push ecx
call fcn.1001ece0
add esp, 0x44
test eax, eax
je 0x1001e44b
push 0x104
lea edx, [esp + 0x20]
push edx
push str.Location
push 0x10032d90
mov byte [esp + 0x2c], bl
call fcn.1001eae0
add esp, 0x10
test eax, eax
je 0x1001e2e7
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.1001eba0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
lea eax, [esp + 0x30]
push 0x104
push eax
call fcn.1001eed0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push ebx
push ebx
push ebp
push ecx
push edx
call fcn.1001eed0
lea eax, [esp + 0x4c]
push 4
push eax
call fcn.1001ece0
add esp, 0x38
test eax, eax
je 0x1001e44b
push 0x104
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x1c]
push ebx
push edx
call fcn.1001eba0
push ebx
push ebx
push ebp
lea eax, [esp + 0x30]
push 0x104
push eax
call fcn.1001eed0
lea ecx, [esp + 0x38]
push 4
push ecx
call fcn.1001ece0
add esp, 0x24
test eax, eax
je 0x1001e44b
push 0x104
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.1001eba0
push ebx
push ebx
push ebp
lea ecx, [esp + 0x30]
push 0x104
push ecx
call fcn.1001eed0
lea edx, [esp + 0x38]
push 4
push edx
call fcn.1001ece0
add esp, 0x24
test eax, eax
je 0x1001e44b
lea eax, [esp + 0x1c]
push eax
push str.PATH
push ebp
call fcn.100213fe
mov al, byte [esp + 0x28]
add esp, 0xc
cmp al, bl
jne 0x1001e44b
push 0x96
lea ecx, [esp + 0x144]
push ecx
push str.ASDIR
call fcn.1001ecf0
add esp, 0xc
cmp eax, ebx
jne 0x1001e3ec
push 0x96
lea edx, [esp + 0x144]
push edx
push str.ASANY9
call fcn.1001ecf0
add esp, 0xc
cmp eax, ebx
jne 0x1001e3ec
push 0x96
lea eax, [esp + 0x144]
push eax
push str.ASANY
call fcn.1001ecf0
add esp, 0xc
cmp eax, ebx
je 0x1001e490
push ebx
push ebx
push eax
lea ecx, [esp + 0x28]
push 0x104
push ecx
call fcn.1001ee90
lea edx, [esp + 0x30]
push ebx
push edx
call fcn.1001eba0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x34]
push ecx
push esi
lea edx, [esp + 0x44]
push 0x104
push edx
call fcn.1001eed0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push ebx
push ebx
push ebp
push eax
push ecx
call fcn.1001eed0
add esp, 0x44
lea edx, [esp + 0x1c]
push 4
push edx
call fcn.1001ece0
add esp, 8
test eax, eax
jne 0x1001e490
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1001e452
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x1e4]
lea ecx, [esi + 1]
cmp ecx, eax
ja 0x1001e49b
push ebx
push ebx
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [esp + 0x1f0]
push eax
call fcn.1001ee90
add esp, 0x14
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x1c8
ret
mov ecx, dword [esp + 0x1e0]
mov byte [ecx], bl
xor esi, esi
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x1c8
ret