Function at 0x42612a
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
mov dword [ebp - 0x668], ecx
push esi
push 0x43b908
mov dword [ebp - 0x658], esi
call sub.msvcrt.dll__setjmp3
pop ecx
pop ecx
test eax, eax
je 0x426173
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00416ce0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x668]
xor edx, edx
push esi
mov ecx, dword [ecx + 0x3c]
call fcn.0040de50
mov edi, eax
mov ecx, edi
call fcn.0040c6fa
mov dword [ebp - 0x650], eax
cmp word [edi], si
je 0x42657c
cmp word [eax], si
je 0x42657c
mov ecx, eax
call fcn.0040c6fa
cmp word [eax], si
jne 0x42657c
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x4261bc
sub esi, ecx
mov ecx, edi
sar esi, 1
call fcn.00411150
push eax
lea edx, [esi + 1]
mov ecx, edi
call fcn.00410820
mov edx, dword [ebp - 0x650]
mov esi, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, word [ebp - 0x658]
jne 0x4261e8
sub esi, ecx
mov ecx, edx
sar esi, 1
call fcn.00411150
mov ecx, dword [ebp - 0x650]
lea edx, [esi + 1]
push eax
call fcn.00410820
mov ecx, edi
call fcn.00413fd9
mov dword [ebp - 0x65c], eax
cmp eax, 1
jne 0x42622e
mov ecx, dword [0x443d00]
call fcn.0042610a
mov eax, 0x104
mov byte [ebp - 0x14], 1
push eax
xor esi, esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x18], esi
push esi
push eax
call sub.msvcrt.dll_memset
mov eax, 0x104
mov dword [ebp - 0x22c], esi
push eax
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x434]
push esi
push eax
mov byte [ebp - 0x228], 1
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x220]
add esp, 0x18
mov esi, 0x104
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0x7ee3
add eax, esi
push eax
call fcn.0040fba0
test eax, eax
js 0x426443
xor eax, eax
lea ecx, [ebp - 0x434]
cmp byte [ebp - 0x228], al
sete al
dec eax
and eax, 0x7ee3
add eax, esi
push eax
call fcn.0040fba0
test eax, eax
js 0x426443
mov ecx, dword [0x443cc8]
xor eax, eax
test ecx, ecx
mov esi, 0x443ac0
setne al
test al, al
jne 0x4262de
mov ecx, esi
push ecx
lea ecx, [ebp - 0x220]
call fcn.0040fcb9
mov ecx, dword [0x443cc8]
xor eax, eax
test ecx, ecx
setne al
test al, al
jne 0x4262fd
mov ecx, esi
push ecx
lea ecx, [ebp - 0x434]
call fcn.0040fcb9
mov ecx, dword [ebp - 0x18]
xor eax, eax
test ecx, ecx
mov edx, ecx
setne al
test al, al
jne 0x42631f
lea edx, [ebp - 0x220]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x658]
jne 0x426322
sub edx, esi
mov esi, dword [ebp - 0x65c]
sar edx, 1
mov dword [ebp - 0x654], edx
mov eax, dword [esi + 0x18]
test byte [eax], 0x10
jne 0x426359
push dword [esi + 0x10]
lea ecx, [ebp - 0x220]
call fcn.0040fc22
jmp 0x426392
dec edx
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x654], edx
setne al
test al, al
jne 0x426371
lea ecx, [ebp - 0x220]
xor eax, eax
mov word [ecx + edx*2], ax
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
setne al
test al, al
jne 0x42638c
lea ecx, [ebp - 0x434]
xor eax, eax
mov word [ecx + edx*2], ax
test byte [esi + 0x1c], 8
jne 0x4263d2
mov ecx, dword [ebp - 0x18]
xor eax, eax
test ecx, ecx
setne al
test al, al
jne 0x4263ac
lea ecx, [ebp - 0x220]
call fcn.00411150
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileAttributesW]
mov ecx, dword [esi + 0x18]
mov dword [ecx], eax
mov eax, dword [esi + 0x18]
cmp dword [eax], 0xffffffff
jne 0x4263d2
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, eax
jmp 0x426229
mov eax, dword [ebp - 0x650]
push 0x3a
pop ecx
cmp word [eax + 2], cx
je 0x42657c
push 0x5c
pop edx
mov ecx, eax
call fcn.004115ed
test eax, eax
jne 0x42657c
mov esi, 0x104
mov dword [ebp - 0x440], eax
push esi
push eax
lea eax, [ebp - 0x648]
mov byte [ebp - 0x43c], 1
push eax
mov dword [ebp - 0x438], esi
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x648]
add esp, 0xc
cmp byte [ebp - 0x43c], al
sete al
dec eax
and eax, 0x7ee3
add eax, esi
push eax
call fcn.0040fba0
test eax, eax
jns 0x42644d
mov ecx, 0x2374
jmp 0x426229
mov edx, dword [0x443cc8]
xor eax, eax
test edx, edx
setne al
test al, al
jne 0x426463
mov edx, 0x443ac0
mov ecx, dword [ebp - 0x440]
xor eax, eax
test ecx, ecx
setne al
test al, al
jne 0x42647a
lea ecx, [ebp - 0x648]
mov ax, word [edx]
mov word [ecx], ax
xor eax, eax
mov ecx, dword [ebp - 0x440]
test ecx, ecx
setne al
test al, al
jne 0x426497
lea ecx, [ebp - 0x648]
push 0x3a
pop eax
mov word [ecx + 2], ax
mov esi, edi
push 0x2a
pop eax
mov word [ebp - 0xc], ax
push 0x3f
pop eax
mov word [ebp - 0xa], ax
lea ecx, [esi + 2]
xor eax, eax
xor edx, edx
mov word [ebp - 8], ax
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x4264b9
sub esi, ecx
lea edx, [ebp - 0xc]
mov ecx, edi
sar esi, 1
call fcn.004111eb
mov edx, dword [ebp - 0x18]
cmp eax, esi
push 0x20
sbb esi, esi
xor eax, eax
neg esi
test edx, edx
pop ecx
setne al
mov dword [ebp - 0x664], ecx
test al, al
jne 0x4264f5
lea edx, [ebp - 0x220]
mov edi, dword [ebp - 0x65c]
lea eax, [ebp - 0x64c]
push eax
xor eax, eax
push dword [edi + 0x18]
push eax
push ecx
mov ecx, fcn.0040aea0
call fcn.0040ad5f
test al, al
jne 0x426586
mov edx, dword [ebp - 0x18]
xor eax, eax
test edx, edx
push 0x10
setne al
pop ecx
mov dword [ebp - 0x664], ecx
test al, al
jne 0x426534
lea edx, [ebp - 0x220]
lea eax, [ebp - 0x64c]
push eax
push dword [edi + 0x18]
xor eax, eax
push eax
push ecx
mov ecx, fcn.0040aea0
call fcn.0040ad5f
test al, al
jne 0x42656d
mov ecx, dword [0x443d00]
cmp ecx, 0x12
jne 0x426229
push 2
pop ecx
mov dword [0x443d00], ecx
jmp 0x426229
test esi, esi
je 0x426586
mov ecx, dword [ebp - 0x64c]
call fcn.00412323
mov ecx, 0x232a
jmp 0x426229
mov ecx, dword [ebp - 0x18]
xor eax, eax
test ecx, ecx
setne al
test al, al
jne 0x42659a
lea ecx, [ebp - 0x220]
mov edi, dword [ebp - 0x654]
xor eax, eax
xor esi, esi
mov dword [ebp - 0x654], esi
mov word [ecx + edi*2], ax
cmp dword [0x42d54c], 0
jne 0x4268d2
mov edx, dword [ebp - 0x65c]
mov eax, dword [edx + 0x18]
test byte [eax], 0x10
je 0x4266e6
mov ecx, dword [ebp - 0x22c]
xor eax, eax
test ecx, ecx
setne al
test al, al
jne 0x4265e4
lea ecx, [ebp - 0x434]
push 0x5c
pop edx
call fcn.004111d9
test eax, eax
je 0x42686c
mov edx, dword [ebp - 0x650]
add eax, 2
xor ecx, ecx
mov dword [ebp - 0x660], eax
mov word [eax], cx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x42660b
mov esi, dword [ebp - 0x22c]
sub edx, ecx
xor eax, eax
sar edx, 1
test esi, esi
mov ecx, esi
setne al
test al, al
jne 0x426633
lea ecx, [ebp - 0x434]
lea eax, [ecx + 2]
mov dword [ebp - 0x66c], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x658]
jne 0x42663c
sub ecx, dword [ebp - 0x66c]
sar ecx, 1
lea eax, [ecx + 1]
mov ecx, 0x7fe7
add eax, edx
cmp ecx, eax
sbb eax, eax
neg eax
test al, al
jne 0x42686c
xor eax, eax
test esi, esi
setne al
test al, al
jne 0x42667c
lea esi, [ebp - 0x434]
mov ecx, dword [ebp - 0x660]
mov eax, ecx
mov edx, dword [ebp - 0x224]
sub eax, esi
push dword [ebp - 0x650]
sar eax, 1
sub edx, eax
call fcn.00410820
mov edx, dword [ebp - 0x22c]
xor eax, eax
test edx, edx
mov ecx, edx
setne al
test al, al
jne 0x4266b4
lea ecx, [ebp - 0x434]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x658]
jne 0x4266b7
sub ecx, esi
xor eax, eax
sar ecx, 1
test edx, edx
setne al
test al, al
jne 0x4266db
lea edx, [ebp - 0x434]
xor eax, eax
mov word [edx + ecx*2], ax
jmp 0x4267d1
mov ecx, dword [ebp - 0x18]
xor eax, eax
test ecx, ecx
setne al
test al, al
jne 0x4266fa
lea ecx, [ebp - 0x220]
xor eax, eax
mov word [ecx + edi*2], ax
lea ecx, [ebp - 0x220]
mov eax, dword [edx + 0x18]
add eax, 0x2c
push eax
call fcn.0040fc22
mov edx, dword [ebp - 0x18]
xor eax, eax
test edx, edx
setne al
test al, al
jne 0x426726
lea edx, [ebp - 0x220]
mov ecx, dword [ebp - 0x440]
xor eax, eax
test ecx, ecx
setne al
test al, al
jne 0x42673d
lea ecx, [ebp - 0x648]
lea eax, [edx + edi*2]
mov edx, dword [ebp - 0x438]
push eax
push dword [ebp - 0x650]
call fcn.00407408
mov edx, dword [ebp - 0x440]
xor eax, eax
test edx, edx
mov ecx, edx
setne al
test al, al
jne 0x42676b
lea ecx, [ebp - 0x648]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x658]
jne 0x42676e
sub ecx, esi
lea eax, [edi + 1]
sar ecx, 1
add eax, ecx
mov ecx, 0x7fe7
cmp ecx, eax
sbb eax, eax
neg eax
test al, al
jne 0x42686c
mov ecx, dword [ebp - 0x22c]
xor eax, eax
test ecx, ecx
setne al
test al, al
jne 0x4267b0
lea ecx, [ebp - 0x434]
xor eax, eax
test edx, edx
mov word [ecx + edi*2], ax
setne al
test al, al
jne 0x4267c5
lea edx, [ebp - 0x648]
push edx
lea ecx, [ebp - 0x434]
call fcn.0040fc22
mov edx, dword [ebp - 0x22c]
xor eax, eax
test edx, edx
setne al
test al, al
jne 0x4267e8
lea edx, [ebp - 0x434]
mov ecx, dword [ebp - 0x18]
xor eax, eax
test ecx, ecx
setne al
test al, al
jne 0x4267fc
lea ecx, [ebp - 0x220]
push 2
xor eax, eax
push eax
push eax
push edx
push ecx
call dword [sym.imp.api_ms_win_core_file_l2_1_1.dll_MoveFileWithProgressW]
test eax, eax
jne 0x42683c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x654], eax
cmp esi, 0xb7
jne 0x42682f
mov esi, 0x234d
mov dword [ebp - 0x654], esi
xor eax, eax
push eax
push esi
call fcn.00414802
pop ecx
pop ecx
jmp 0x426842
mov esi, dword [ebp - 0x654]
push dword [ebp - 0x64c]
mov edx, dword [ebp - 0x65c]
mov ecx, fcn.0040aea0
push dword [ebp - 0x664]
mov edx, dword [edx + 0x18]
call fcn.0040aebc
test al, al
je 0x426886
xor esi, esi
jmp 0x4265ae
mov ecx, dword [ebp - 0x64c]
call fcn.00412323
call fcn.00415449
mov ecx, 0x232e
jmp 0x426229
mov ecx, dword [ebp - 0x64c]
call fcn.00412323
call fcn.00415449
push dword [ebp - 0x440]
xor eax, eax
test esi, esi
setne al
mov dword [ebp - 0x660], eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
push dword [ebp - 0x22c]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 0x660]
add esp, 0xc
jmp 0x426163
mov ecx, dword [ebp - 0x64c]
call fcn.00412323
call fcn.00415449
push dword [ebp - 0x440]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
push dword [ebp - 0x22c]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
add esp, 0xc
jmp 0x426160