Function at 0x10001e40
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x67c
lea eax, [esp + 0x264]
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 + 0x274]
lea edx, [esp + 0x68]
push ecx
push eax
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push str._s_s
push edx
call edi
lea ecx, [esp + 0x54]
lea eax, [esp + 0x78]
add esp, 0x10
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__stat]
add esp, 8
test eax, eax
jne 0x10001f0c
cmp dword [esp + 0x58], 0x4e20
jge 0x10001f0c
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
push eax
push ecx
push edx
call fcn.10002170
lea ecx, [esp + 0x4c]
add esp, 0xc
mov esi, eax
push ecx
lea eax, [esp + 0x6c]
push eax
call dword [esp + 0x1c]
test eax, eax
jne 0x10001f05
lea eax, [esp + 0x274]
lea ecx, [esp + 0x37c]
push eax
push str._sodbccp32.bad
push ecx
call edi
lea ecx, [esp + 0x388]
lea edx, [esp + 0x74]
add esp, 0xc
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [str.odbccp32.dll]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call edi
mov esi, eax
lea eax, [esp + 0x68]
push eax
call edi
mov edi, eax
test edi, edi
je 0x10002112
test esi, esi
je 0x10002112
cmp edi, esi
je 0x100020f8
lea eax, [esp + 0x38]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x30]
push eax
push ecx
push edx
call fcn.10002170
mov dword [esp + 0x48], eax
add esp, 0xc
test eax, eax
jne 0x10001f70
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x67c
ret
lea eax, [esp + 0x480]
push 0x20a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x40]
lea eax, [esp + 0x68]
push ecx
push eax
call dword [esp + 0x38]
lea ecx, [esp + 0x37c]
lea edx, [esp + 0x480]
mov dword [esp + 0x18], eax
push ecx
push edx
call dword [esp + 0x38]
cmp dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
je 0x100020d3
test eax, eax
je 0x100020d3
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
push 0
call ebx
mov ebp, eax
mov eax, dword [esp + 0x1c]
push eax
push 0
call ebx
mov ebx, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov dword [esp + 0x20], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalLock]
cmp dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
je 0x10002098
test eax, eax
je 0x10002098
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x480]
push eax
push ecx
push 0
push edx
call dword [esp + 0x44]
test eax, eax
je 0x10002098
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x68]
push eax
push ecx
push 0
push edx
call dword [esp + 0x44]
test eax, eax
je 0x10002098
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
mov edx, dword [esp + 0x20]
push eax
push ecx
push 0x1000425c
push edx
call dword [esp + 0x48]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x2c]
mov eax, dword [esp + 0x24]
push ecx
push edx
push 0x1000425c
push eax
call dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.10002130
movsx eax, al
add esp, 8
cmp eax, 0x3c
je 0x10002091
cmp eax, 0x3d
jl 0x100020a3
cmp eax, 0x3e
jle 0x10002098
jmp 0x100020a3
mov dword [esp + 0x10], edi
push esi
jmp 0x1000209d
mov dword [esp + 0x10], esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebp, ebp
je 0x100020bb
push ebp
mov edi, dword [sym.imp.KERNEL32.dll_LocalUnlock]
call edi
push ebp
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
jmp 0x100020c7
mov edi, dword [sym.imp.KERNEL32.dll_LocalUnlock]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x100020de
push ebx
call edi
push ebx
call esi
jmp 0x100020de
mov dword [esp + 0x10], esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x67c
ret
mov dword [esp + 0x10], esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x67c
ret
or edi, esi
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x67c
ret