Function at 0x10037680
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009b076
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x678]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
mov word [esp + 0x5c], ax
lea eax, [esp + 0x5e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea ecx, [esp + 0x54]
push 0x100b2814
call fcn.10035610
add esp, 4
test eax, eax
je 0x100378fc
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x684], 0
call sym.iImportLib.dll_int___cdecl_elex::uphlp::CFG_GetUpdateParam_class_std::vector_struct_elex::uphlp::tagUPDATECFGPARAM__class_std::allocator_struct_elex::uphlp::tagUPDATECFGPARAM____
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
add esp, 4
test eax, eax
jne 0x1003773c
mov dword [esp + 0x14], 0
jmp 0x100378d3
mov ecx, edi
sub ecx, ebx
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
je 0x100378cb
mov edi, ebx
mov ebx, dword [sym.imp.MSVCR110.dll_swprintf_s]
mov esi, dword [edi]
cmp esi, 0xd
je 0x100378b5
test esi, esi
je 0x100378b5
cmp esi, 0x16
je 0x100378b5
cmp esi, 0x17
je 0x100378b5
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [esp + 0x44], ax
lea eax, [edi + 0x1c]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
call fcn.10008c80
xor eax, eax
push 0x206
mov byte [esp + 0x684], 1
push eax
mov word [esp + 0x264], ax
lea eax, [esp + 0x266]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x54]
push esi
push eax
push str._supdate0_u.dat
lea eax, [esp + 0x268]
push 0x104
push eax
call ebx
add esp, 0x14
xor eax, eax
push 0x206
push eax
mov word [esp + 0x46c], ax
lea eax, [esp + 0x46e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [esp + 0x50], 8
push str..dat
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push eax
push str.data_
lea eax, [esp + 0x60]
push eax
push str._s_s_s_s
lea eax, [esp + 0x478]
push 0x104
push eax
call ebx
add esp, 0x1c
lea eax, [esp + 0x25c]
push eax
lea ecx, [esp + 0x1c]
call fcn.10008550
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
lea ecx, [esp + 0x18]
sete bl
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
test bl, bl
je 0x1003789a
push 3
lea eax, [esp + 0x468]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x680], 0
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.MSVCR110.dll_swprintf_s]
add edi, 0x54
dec eax
mov dword [esp + 0x14], eax
jne 0x10037763
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x14], 1
test ebx, ebx
je 0x100378f8
mov esi, ebx
cmp ebx, edi
je 0x100378ee
lea ecx, [ecx]
mov ecx, esi
call fcn.10037600
add esi, 0x54
cmp esi, edi
jne 0x100378e0
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x678]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x660]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret