Function at 0x47fe10
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 [0x62c140]
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.0047fc70
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 0x5e7afc
push ecx
push edx
call fcn.0047fc70
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.0047fc70
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 0x47ffad
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 0x47ffad
cmp edi, 0x4e20
jae 0x47ffad
lea eax, [ebp - 0x748]
push eax
lea ecx, [ebp - 0x750]
push ecx
lea ebx, [ebp - 0x73c]
call fcn.0047fc00
mov esi, eax
test esi, esi
je 0x47ff3c
lea edx, [ebp - 0x740]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0x73c]
test eax, eax
jne 0x47ffa2
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.0047fc70
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.0047fc70
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 0x47ffad
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 0x480218
test edi, edi
je 0x480218
cmp esi, edi
je 0x4801fc
lea ecx, [ebp - 0x75c]
push ecx
lea edx, [ebp - 0x74c]
push edx
lea ebx, [ebp - 0x734]
call fcn.0047fc00
test eax, eax
mov dword [ebp - 0x748], eax
jne 0x480024
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.0057ee81
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 0x4801d3
test eax, eax
je 0x4801d3
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 0x480176
test eax, eax
je 0x480176
push esi
push ebx
push 0
lea edx, [ebp - 0x524]
push edx
call dword [ebp - 0x74c]
test eax, eax
je 0x48016d
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 0x48016d
lea edx, [ebp - 0x754]
push edx
lea eax, [ebp - 0x740]
push eax
push 0x5e7afc
push esi
mov esi, dword [ebp - 0x75c]
call esi
lea ecx, [ebp - 0x754]
push ecx
lea edx, [ebp - 0x750]
push edx
push 0x5e7afc
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 0x48015b
jb 0x480164
mov edx, dword [edx + 0xc]
mov esi, dword [esi + 0xc]
cmp edx, esi
ja 0x48015b
jb 0x480164
mov eax, dword [ebp - 0x738]
push eax
jmp 0x48017d
mov ebx, dword [ebp - 0x738]
push edi
jmp 0x48017f
mov ecx, dword [ebp - 0x738]
push ecx
jmp 0x48017d
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 0x48019f
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x73c]
test esi, esi
je 0x4801dc
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.0057ee81
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.0057ee81
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.0057ee81
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.0057ee81
mov esp, ebp
pop ebp
ret