Function at 0x100badd0
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.100bac30
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.100bac30
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.100bac30
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 0x100baf6d
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 0x100baf6d
cmp edi, 0x4e20
jae 0x100baf6d
lea eax, [ebp - 0x748]
push eax
lea ecx, [ebp - 0x750]
push ecx
lea ebx, [ebp - 0x73c]
call fcn.100babc0
mov esi, eax
test esi, esi
je 0x100baefc
lea edx, [ebp - 0x740]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0x73c]
test eax, eax
jne 0x100baf62
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.100bac30
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.100bac30
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 0x100baf6d
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 0x100bb1d8
test edi, edi
je 0x100bb1d8
cmp esi, edi
je 0x100bb1bc
lea ecx, [ebp - 0x75c]
push ecx
lea edx, [ebp - 0x74c]
push edx
lea ebx, [ebp - 0x734]
call fcn.100babc0
test eax, eax
mov dword [ebp - 0x748], eax
jne 0x100bafe4
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.100a17e2
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 0x100bb193
test eax, eax
je 0x100bb193
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 0x100bb136
test eax, eax
je 0x100bb136
push esi
push ebx
push 0
lea edx, [ebp - 0x524]
push edx
call dword [ebp - 0x74c]
test eax, eax
je 0x100bb12d
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 0x100bb12d
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 0x100bb11b
jb 0x100bb124
mov edx, dword [edx + 0xc]
mov esi, dword [esi + 0xc]
cmp edx, esi
ja 0x100bb11b
jb 0x100bb124
mov eax, dword [ebp - 0x738]
push eax
jmp 0x100bb13d
mov ebx, dword [ebp - 0x738]
push edi
jmp 0x100bb13f
mov ecx, dword [ebp - 0x738]
push ecx
jmp 0x100bb13d
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 0x100bb15f
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x73c]
test esi, esi
je 0x100bb19c
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.100a17e2
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.100a17e2
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.100a17e2
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.100a17e2
mov esp, ebp
pop ebp
ret