Function at 0x43c4a0
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 [0xf507c8]
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.0043c300
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 0x4409ec
push ecx
push edx
call fcn.0043c300
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.0043c300
push 0
push 0x10000080
push 3
push 0
push 3
push closesocket
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x43c63d
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 0x43c63d
cmp edi, 0x4e20
jae 0x43c63d
lea eax, [ebp - 0x748]
push eax
lea ecx, [ebp - 0x750]
push ecx
lea ebx, [ebp - 0x73c]
call fcn.0043c290
mov esi, eax
test esi, esi
je 0x43c5cc
lea edx, [ebp - 0x740]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0x73c]
test eax, eax
jne 0x43c632
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.0043c300
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.0043c300
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 0x43c63d
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 0x43c8a8
test edi, edi
je 0x43c8a8
cmp esi, edi
je 0x43c88c
lea ecx, [ebp - 0x75c]
push ecx
lea edx, [ebp - 0x74c]
push edx
lea ebx, [ebp - 0x734]
call fcn.0043c290
test eax, eax
mov dword [ebp - 0x748], eax
jne 0x43c6b4
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.00427b11
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 0x43c863
test eax, eax
je 0x43c863
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 0x43c806
test eax, eax
je 0x43c806
push esi
push ebx
push 0
lea edx, [ebp - 0x524]
push edx
call dword [ebp - 0x74c]
test eax, eax
je 0x43c7fd
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 0x43c7fd
lea edx, [ebp - 0x754]
push edx
lea eax, [ebp - 0x740]
push eax
push 0x4409ec
push esi
mov esi, dword [ebp - 0x75c]
call esi
lea ecx, [ebp - 0x754]
push ecx
lea edx, [ebp - 0x750]
push edx
push 0x4409ec
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 0x43c7eb
jb 0x43c7f4
mov edx, dword [edx + 0xc]
mov esi, dword [esi + 0xc]
cmp edx, esi
ja 0x43c7eb
jb 0x43c7f4
mov eax, dword [ebp - 0x738]
push eax
jmp 0x43c80d
mov ebx, dword [ebp - 0x738]
push edi
jmp 0x43c80f
mov ecx, dword [ebp - 0x738]
push ecx
jmp 0x43c80d
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 0x43c82f
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x73c]
test esi, esi
je 0x43c86c
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.00427b11
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.00427b11
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.00427b11
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.00427b11
mov esp, ebp
pop ebp
ret