Function at 0x42695a
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 [0x42e0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
mov dword [ebp - 0x66c], ecx
push esi
push 0x440a70
mov dword [ebp - 0x658], esi
call sub.msvcrt.dll__setjmp3
pop ecx
pop ecx
test eax, eax
jne 0x4270ac
mov ecx, dword [ebp - 0x66c]
xor edx, edx
push esi
mov ecx, dword [ecx + 0x3c]
call fcn.0040bc30
mov edi, eax
mov ecx, edi
call fcn.0040a7d5
mov dword [ebp - 0x650], eax
cmp word [edi], si
je 0x426d5b
cmp word [eax], si
je 0x426d5b
mov ecx, eax
call fcn.0040a7d5
cmp word [eax], si
jne 0x426d5b
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x4269dd
sub esi, ecx
mov ecx, edi
sar esi, 1
call fcn.00410060
push eax
lea edx, [esi + 1]
mov ecx, edi
call fcn.0040f3a0
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 0x426a09
sub esi, ecx
mov ecx, edx
sar esi, 1
call fcn.00410060
mov ecx, dword [ebp - 0x650]
lea edx, [esi + 1]
push eax
call fcn.0040f3a0
mov ecx, edi
call fcn.0040802c
mov dword [ebp - 0x654], eax
cmp eax, 1
jne 0x426a4f
mov ecx, dword [0x4367a8]
call fcn.0042693a
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.0040e3f0
test eax, eax
js 0x426c46
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.0040e3f0
test eax, eax
js 0x426c46
mov eax, dword [0x448df8]
mov esi, 0x448bf0
test eax, eax
jne 0x426af7
mov eax, esi
push eax
lea ecx, [ebp - 0x220]
call fcn.0040a641
mov eax, dword [0x448df8]
test eax, eax
jne 0x426b0e
mov eax, esi
push eax
lea ecx, [ebp - 0x434]
call fcn.0040a641
mov ecx, dword [ebp - 0x18]
mov esi, ecx
test ecx, ecx
jne 0x426b29
lea esi, [ebp - 0x220]
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, word [ebp - 0x658]
jne 0x426b2c
sub esi, edx
mov edx, dword [ebp - 0x654]
sar esi, 1
mov dword [ebp - 0x65c], esi
mov eax, dword [edx + 0x18]
test byte [eax], 0x10
jne 0x426b69
push dword [edx + 0x10]
lea ecx, [ebp - 0x220]
call fcn.0041232c
mov edx, dword [ebp - 0x654]
jmp 0x426b96
dec esi
mov dword [ebp - 0x65c], esi
test ecx, ecx
jne 0x426b7a
lea ecx, [ebp - 0x220]
xor eax, eax
mov word [ecx + esi*2], ax
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x426b90
lea eax, [ebp - 0x434]
xor ecx, ecx
mov word [eax + esi*2], cx
test byte [edx + 0x1c], 8
jne 0x426bd5
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x426ba9
lea ecx, [ebp - 0x220]
call fcn.00410060
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x654]
mov ecx, dword [edx + 0x18]
mov dword [ecx], eax
mov eax, dword [edx + 0x18]
cmp dword [eax], 0xffffffff
jne 0x426bd5
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
jmp 0x426a4a
mov eax, dword [ebp - 0x650]
push 0x3a
pop ecx
cmp word [eax + 2], cx
je 0x426d5b
push 0x5c
pop edx
mov ecx, eax
call fcn.0040a62f
test eax, eax
jne 0x426d5b
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.0040e3f0
test eax, eax
jns 0x426c50
mov ecx, 0x2374
jmp 0x426a4a
mov eax, dword [0x448df8]
test eax, eax
jne 0x426c5e
mov eax, 0x448bf0
mov ecx, dword [ebp - 0x440]
test ecx, ecx
jne 0x426c6e
lea ecx, [ebp - 0x648]
mov ax, word [eax]
mov word [ecx], ax
mov eax, dword [ebp - 0x440]
test eax, eax
jne 0x426c84
lea eax, [ebp - 0x648]
push 0x3a
pop ecx
mov word [eax + 2], cx
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 0x426ca6
sub esi, ecx
lea edx, [ebp - 0xc]
mov ecx, edi
sar esi, 1
call fcn.00409eba
mov edx, dword [ebp - 0x18]
cmp eax, esi
push 0x20
sbb esi, esi
neg esi
pop eax
mov dword [ebp - 0x668], eax
test edx, edx
jne 0x426cdb
lea edx, [ebp - 0x220]
mov edi, dword [ebp - 0x654]
lea ecx, [ebp - 0x64c]
push ecx
xor ecx, ecx
push dword [edi + 0x18]
push ecx
push eax
mov ecx, fcn.004159d0
call fcn.0041589a
test al, al
jne 0x426d65
mov edx, dword [ebp - 0x18]
push 0x10
pop eax
mov dword [ebp - 0x668], eax
test edx, edx
jne 0x426d13
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x64c]
push ecx
push dword [edi + 0x18]
xor ecx, ecx
push ecx
push eax
mov ecx, fcn.004159d0
call fcn.0041589a
test al, al
jne 0x426d4c
mov ecx, dword [0x4367a8]
cmp ecx, 0x12
jne 0x426a4a
push 2
pop ecx
mov dword [0x4367a8], ecx
jmp 0x426a4a
test esi, esi
je 0x426d65
mov ecx, dword [ebp - 0x64c]
call fcn.00408b4d
mov ecx, 0x232a
jmp 0x426a4a
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x426d72
lea eax, [ebp - 0x220]
mov edi, dword [ebp - 0x65c]
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x660], esi
mov word [eax + edi*2], cx
cmp dword [0x43259c], 0
jne 0x42705a
mov ecx, dword [ebp - 0x654]
mov eax, dword [ecx + 0x18]
test byte [eax], 0x10
je 0x426e8f
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
jne 0x426db5
lea ecx, [ebp - 0x434]
push 0x5c
pop edx
call fcn.004101f5
mov edi, eax
test edi, edi
je 0x426fd7
mov edx, dword [ebp - 0x650]
xor eax, eax
mov word [edi + 2], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x426dd6
mov esi, dword [ebp - 0x22c]
sub edx, ecx
sar edx, 1
mov ecx, esi
test esi, esi
jne 0x426df7
lea ecx, [ebp - 0x434]
lea eax, [ecx + 2]
mov dword [ebp - 0x664], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x658]
jne 0x426e00
sub ecx, dword [ebp - 0x664]
lea eax, [edx + 1]
sar ecx, 1
add eax, ecx
cmp eax, 0x7fe7
ja 0x426fd7
test esi, esi
jne 0x426e31
lea esi, [ebp - 0x434]
mov edx, dword [ebp - 0x224]
lea eax, [edi + 2]
push dword [ebp - 0x650]
sub eax, esi
lea ecx, [edi + 2]
sar eax, 1
sub edx, eax
call fcn.0040f3a0
mov edx, dword [ebp - 0x22c]
mov ecx, edx
test edx, edx
jne 0x426e60
lea ecx, [ebp - 0x434]
lea esi, [ecx + 2]
xor edi, edi
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x426e65
sub ecx, esi
sar ecx, 1
test edx, edx
jne 0x426e7e
lea edx, [ebp - 0x434]
mov edi, dword [ebp - 0x65c]
xor eax, eax
mov word [edx + ecx*2], ax
jmp 0x426f4a
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x426e9c
lea eax, [ebp - 0x220]
xor edx, edx
mov word [eax + edi*2], dx
mov eax, dword [ecx + 0x18]
lea ecx, [ebp - 0x220]
add eax, 0x2c
push eax
call fcn.0041232c
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x426ec1
lea eax, [ebp - 0x220]
mov ecx, dword [ebp - 0x440]
test ecx, ecx
jne 0x426ed1
lea ecx, [ebp - 0x648]
mov edx, dword [ebp - 0x438]
lea eax, [eax + edi*2]
push eax
push dword [ebp - 0x650]
call fcn.00413719
mov edx, dword [ebp - 0x440]
mov ecx, edx
test edx, edx
jne 0x426ef8
lea ecx, [ebp - 0x648]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x658]
jne 0x426efb
sub ecx, esi
lea eax, [edi + 1]
sar ecx, 1
add eax, ecx
cmp eax, 0x7fe7
ja 0x426fd7
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x426f2e
lea eax, [ebp - 0x434]
xor ecx, ecx
mov word [eax + edi*2], cx
test edx, edx
jne 0x426f3e
lea edx, [ebp - 0x648]
push edx
lea ecx, [ebp - 0x434]
call fcn.0041232c
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
jne 0x426f5a
lea ecx, [ebp - 0x434]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x426f67
lea eax, [ebp - 0x220]
push 2
xor edx, edx
push edx
push edx
push ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileWithProgressW]
test eax, eax
jne 0x426fa7
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x660], eax
cmp esi, 0xb7
jne 0x426f9a
mov esi, 0x234d
mov dword [ebp - 0x660], esi
xor eax, eax
push eax
push esi
call fcn.004078e4
pop ecx
pop ecx
jmp 0x426fad
mov esi, dword [ebp - 0x660]
push dword [ebp - 0x64c]
mov edx, dword [ebp - 0x654]
mov ecx, fcn.004159d0
push dword [ebp - 0x668]
mov edx, dword [edx + 0x18]
call fcn.00415851
test al, al
je 0x426ff1
xor esi, esi
jmp 0x426d86
mov ecx, dword [ebp - 0x64c]
call fcn.00408b4d
call fcn.00406468
mov ecx, 0x232e
jmp 0x426a4a
mov ecx, dword [ebp - 0x64c]
call fcn.00408b4d
call fcn.00406468
xor eax, eax
test esi, esi
setne al
xor esi, esi
mov dword [ebp - 0x664], eax
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x440], esi
test eax, eax
je 0x427028
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x22c], esi
test eax, eax
je 0x427040
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], esi
test eax, eax
je 0x427052
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, dword [ebp - 0x664]
jmp 0x4270af
mov ecx, dword [ebp - 0x64c]
call fcn.00408b4d
call fcn.00406468
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x440], esi
test eax, eax
je 0x427082
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x22c], esi
test eax, eax
je 0x42709a
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], esi
test eax, eax
je 0x4270ac
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00416b30
leave
ret