Function at 0x48d3a0
Capabilities:
Get common file path
Get file size
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x764
mov eax, dword [0x5142b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x105
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
lea ecx, [ebp - 0x734]
push ecx
lea edx, [ebp - 0x738]
push edx
lea eax, [ebp - 0x318]
push eax
push 0x20a
lea ecx, [ebp - 0x210]
push ecx
call fcn.0048d200
mov ecx, dword [ebp - 0x734]
push 0
lea edx, [ebp - 0x734]
push edx
mov edx, dword [ebp - 0x738]
lea eax, [ebp - 0x738]
push eax
push 0x4d04ac
push ecx
push edx
call fcn.0048d200
mov edx, dword [str.odbccp32.dll]
push 0
lea eax, [ebp - 0x734]
push eax
mov eax, dword [ebp - 0x734]
lea ecx, [ebp - 0x738]
push ecx
mov ecx, dword [ebp - 0x738]
push edx
push eax
push ecx
call fcn.0048d200
push 0
push 0x10000080
push 3
push 0
push 3
push SQLAllocStmt
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x48d53d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x48d53d
cmp edi, 0x4e20
jae 0x48d53d
lea eax, [ebp - 0x748]
push eax
lea ecx, [ebp - 0x750]
push ecx
lea ebx, [ebp - 0x73c]
call fcn.0048d190
mov esi, eax
test esi, esi
je 0x48d4cc
lea edx, [ebp - 0x740]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0x73c]
test eax, eax
jne 0x48d532
push 0
lea ecx, [ebp - 0x734]
push ecx
lea edx, [ebp - 0x738]
push edx
lea eax, [ebp - 0x318]
push eax
push 0x20a
lea ecx, [ebp - 0x730]
push ecx
call fcn.0048d200
mov ecx, dword [ebp - 0x734]
push 0
lea edx, [ebp - 0x734]
push edx
mov edx, dword [ebp - 0x738]
lea eax, [ebp - 0x738]
push eax
push str.odbccp32.bad
push ecx
push edx
call fcn.0048d200
push 3
lea eax, [ebp - 0x730]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test esi, esi
je 0x48d53d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [str.odbccp32.dll]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edx
call esi
mov edi, eax
lea eax, [ebp - 0x210]
push eax
call esi
mov esi, eax
test esi, esi
mov dword [ebp - 0x738], esi
je 0x48d7a8
test edi, edi
je 0x48d7a8
cmp esi, edi
je 0x48d78c
lea ecx, [ebp - 0x75c]
push ecx
lea edx, [ebp - 0x74c]
push edx
lea ebx, [ebp - 0x734]
call fcn.0048d190
test eax, eax
mov dword [ebp - 0x748], eax
jne 0x48d5b4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
push 0x20a
lea eax, [ebp - 0x524]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x764]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [ebp - 0x734]
mov ebx, eax
lea eax, [ebp - 0x760]
push eax
lea ecx, [ebp - 0x524]
push ecx
call dword [ebp - 0x734]
test ebx, ebx
mov dword [ebp - 0x734], eax
je 0x48d763
test eax, eax
je 0x48d763
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebx
push 0
call esi
mov edx, dword [ebp - 0x734]
push edx
push 0
mov dword [ebp - 0x744], eax
call esi
mov dword [ebp - 0x73c], eax
mov eax, dword [ebp - 0x744]
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov ecx, dword [ebp - 0x73c]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
test esi, esi
mov dword [ebp - 0x758], eax
je 0x48d706
test eax, eax
je 0x48d706
push esi
push ebx
push 0
lea edx, [ebp - 0x524]
push edx
call dword [ebp - 0x74c]
test eax, eax
je 0x48d6fd
mov ebx, dword [ebp - 0x758]
mov eax, dword [ebp - 0x734]
push ebx
push eax
push 0
lea ecx, [ebp - 0x210]
push ecx
call dword [ebp - 0x74c]
test eax, eax
je 0x48d6fd
lea edx, [ebp - 0x754]
push edx
lea eax, [ebp - 0x740]
push eax
push 0x4d04ac
push esi
mov esi, dword [ebp - 0x75c]
call esi
lea ecx, [ebp - 0x754]
push ecx
lea edx, [ebp - 0x750]
push edx
push 0x4d04ac
push ebx
call esi
mov edx, dword [ebp - 0x740]
mov esi, dword [ebp - 0x750]
mov eax, dword [edx + 8]
mov ecx, dword [esi + 8]
cmp eax, ecx
ja 0x48d6eb
jb 0x48d6f4
mov edx, dword [edx + 0xc]
mov esi, dword [esi + 0xc]
cmp edx, esi
ja 0x48d6eb
jb 0x48d6f4
mov eax, dword [ebp - 0x738]
push eax
jmp 0x48d70d
mov ebx, dword [ebp - 0x738]
push edi
jmp 0x48d70f
mov ecx, dword [ebp - 0x738]
push ecx
jmp 0x48d70d
mov edx, dword [ebp - 0x738]
push edx
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x744]
test esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_LocalUnlock]
je 0x48d72f
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x73c]
test esi, esi
je 0x48d76c
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x748]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
push esi
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x748]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
push esi
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
or eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ed61
mov esp, ebp
pop ebp
ret