Function at 0x100bae30
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 [0x100ee20c]
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.100bac90
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 0x100c81cc
push ecx
push edx
call fcn.100bac90
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.100bac90
push 0
push 0x10000080
push 3
push 0
push 3
push SysReAllocStringLen
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100bafcd
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 0x100bafcd
cmp edi, 0x4e20
jae 0x100bafcd
lea eax, [ebp - 0x748]
push eax
lea ecx, [ebp - 0x750]
push ecx
lea ebx, [ebp - 0x73c]
call fcn.100bac20
mov esi, eax
test esi, esi
je 0x100baf5c
lea edx, [ebp - 0x740]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0x73c]
test eax, eax
jne 0x100bafc2
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.100bac90
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.100bac90
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 0x100bafcd
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 0x100bb238
test edi, edi
je 0x100bb238
cmp esi, edi
je 0x100bb21c
lea ecx, [ebp - 0x75c]
push ecx
lea edx, [ebp - 0x74c]
push edx
lea ebx, [ebp - 0x734]
call fcn.100bac20
test eax, eax
mov dword [ebp - 0x748], eax
jne 0x100bb044
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.100a1832
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 0x100bb1f3
test eax, eax
je 0x100bb1f3
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 0x100bb196
test eax, eax
je 0x100bb196
push esi
push ebx
push 0
lea edx, [ebp - 0x524]
push edx
call dword [ebp - 0x74c]
test eax, eax
je 0x100bb18d
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 0x100bb18d
lea edx, [ebp - 0x754]
push edx
lea eax, [ebp - 0x740]
push eax
push 0x100c81cc
push esi
mov esi, dword [ebp - 0x75c]
call esi
lea ecx, [ebp - 0x754]
push ecx
lea edx, [ebp - 0x750]
push edx
push 0x100c81cc
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 0x100bb17b
jb 0x100bb184
mov edx, dword [edx + 0xc]
mov esi, dword [esi + 0xc]
cmp edx, esi
ja 0x100bb17b
jb 0x100bb184
mov eax, dword [ebp - 0x738]
push eax
jmp 0x100bb19d
mov ebx, dword [ebp - 0x738]
push edi
jmp 0x100bb19f
mov ecx, dword [ebp - 0x738]
push ecx
jmp 0x100bb19d
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 0x100bb1bf
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x73c]
test esi, esi
je 0x100bb1fc
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.100a1832
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.100a1832
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.100a1832
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.100a1832
mov esp, ebp
pop ebp
ret