Function at 0x4032c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x558
lea eax, [esp + 0x244]
push ebx
mov dword [esp + 4], 0
push esi
push edi
push ebp
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [str.odbccp32.dll]
lea eax, [esp + 0x254]
lea edx, [esp + 0x48]
push ecx
push eax
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ecx, dword [str.odbccp32.dll]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ecx
call esi
mov ebx, eax
lea eax, [esp + 0x48]
push eax
call esi
mov edi, eax
test edi, edi
je 0x403541
test ebx, ebx
je 0x403541
cmp ebx, edi
je 0x403527
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x24]
push eax
push ecx
push edx
call fcn.00403590
mov dword [esp + 0x3c], eax
add esp, 0xc
test eax, eax
jne 0x40336c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x558
ret
lea eax, [esp + 0x35c]
push 0x20a
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
call ebp
lea ecx, [esp + 0x44]
lea eax, [esp + 0x48]
push ecx
push eax
call dword [esp + 0x2c]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x35c]
mov dword [esp + 0x14], eax
push ecx
push edx
call dword [esp + 0x2c]
cmp dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
je 0x403504
test eax, eax
je 0x403504
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
push 0
call ebp
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
push 0
call ebp
mov ebp, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov dword [esp + 0x1c], eax
push ebp
call dword [sym.imp.KERNEL32.dll_LocalLock]
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
je 0x4034dd
test eax, eax
je 0x4034dd
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x35c]
push eax
push ecx
push 0
push edx
call dword [esp + 0x38]
test eax, eax
je 0x4034ce
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x48]
push eax
push ecx
push 0
push edx
call dword [esp + 0x38]
test eax, eax
je 0x4034ce
lea eax, [esp + 0x34]
lea ecx, [esp + 0x3c]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push 0x40742c
push edx
call dword [esp + 0x3c]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x38]
mov eax, dword [esp + 0x20]
push ecx
push edx
push 0x40742c
push eax
call dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
push ecx
push edx
call fcn.00403550
movsx eax, al
add esp, 8
cmp eax, 0x3c
je 0x4034b0
cmp eax, 0x3d
jl 0x403492
cmp eax, 0x3e
jle 0x4034bf
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x4034ec
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_LocalUnlock]
call ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
jmp 0x4034f8
mov dword [esp + 0x10], edi
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call edi
jmp 0x403498
mov dword [esp + 0x10], ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call edi
jmp 0x403498
mov dword [esp + 0x10], ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call edi
jmp 0x403498
mov dword [esp + 0x10], ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call edi
jmp 0x403498
mov ebx, dword [sym.imp.KERNEL32.dll_LocalUnlock]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test ebp, ebp
je 0x403511
push ebp
call ebx
push ebp
call esi
jmp 0x403511
mov dword [esp + 0x10], ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call edi
mov eax, dword [esp + 0x30]
push eax
call edi
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x558
ret
mov dword [esp + 0x10], ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x558
ret
or ebx, edi
pop ebp
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x558
ret