Function at 0x42691a
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 - 0x66c], ecx
push esi
push 0x43fa70
mov dword [ebp - 0x658], esi
call sub.msvcrt.dll__setjmp3
pop ecx
pop ecx
test eax, eax
jne 0x42706c
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 0x426d1b
cmp word [eax], si
je 0x426d1b
mov ecx, eax
call fcn.0040a7d5
cmp word [eax], si
jne 0x426d1b
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x42699d
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 0x4269c9
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 0x426a0f
mov ecx, dword [0x4357a8]
call fcn.004268fa
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 0x426c06
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 0x426c06
mov eax, dword [0x447df8]
mov esi, 0x447bf0
test eax, eax
jne 0x426ab7
mov eax, esi
push eax
lea ecx, [ebp - 0x220]
call fcn.0040a641
mov eax, dword [0x447df8]
test eax, eax
jne 0x426ace
mov eax, esi
push eax
lea ecx, [ebp - 0x434]
call fcn.0040a641
mov ecx, dword [ebp - 0x18]
mov esi, ecx
test ecx, ecx
jne 0x426ae9
lea esi, [ebp - 0x220]
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, word [ebp - 0x658]
jne 0x426aec
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 0x426b29
push dword [edx + 0x10]
lea ecx, [ebp - 0x220]
call fcn.0041232c
mov edx, dword [ebp - 0x654]
jmp 0x426b56
dec esi
mov dword [ebp - 0x65c], esi
test ecx, ecx
jne 0x426b3a
lea ecx, [ebp - 0x220]
xor eax, eax
mov word [ecx + esi*2], ax
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x426b50
lea eax, [ebp - 0x434]
xor ecx, ecx
mov word [eax + esi*2], cx
test byte [edx + 0x1c], 8
jne 0x426b95
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x426b69
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 0x426b95
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
jmp 0x426a0a
mov eax, dword [ebp - 0x650]
push 0x3a
pop ecx
cmp word [eax + 2], cx
je 0x426d1b
push 0x5c
pop edx
mov ecx, eax
call fcn.0040a62f
test eax, eax
jne 0x426d1b
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 0x426c10
mov ecx, 0x2374
jmp 0x426a0a
mov eax, dword [0x447df8]
test eax, eax
jne 0x426c1e
mov eax, 0x447bf0
mov ecx, dword [ebp - 0x440]
test ecx, ecx
jne 0x426c2e
lea ecx, [ebp - 0x648]
mov ax, word [eax]
mov word [ecx], ax
mov eax, dword [ebp - 0x440]
test eax, eax
jne 0x426c44
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 0x426c66
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 0x426c9b
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 0x426d25
mov edx, dword [ebp - 0x18]
push 0x10
pop eax
mov dword [ebp - 0x668], eax
test edx, edx
jne 0x426cd3
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 0x426d0c
mov ecx, dword [0x4357a8]
cmp ecx, 0x12
jne 0x426a0a
push 2
pop ecx
mov dword [0x4357a8], ecx
jmp 0x426a0a
test esi, esi
je 0x426d25
mov ecx, dword [ebp - 0x64c]
call fcn.00408b4d
mov ecx, 0x232a
jmp 0x426a0a
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x426d32
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 [0x43159c], 0
jne 0x42701a
mov ecx, dword [ebp - 0x654]
mov eax, dword [ecx + 0x18]
test byte [eax], 0x10
je 0x426e4f
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
jne 0x426d75
lea ecx, [ebp - 0x434]
push 0x5c
pop edx
call fcn.004101f5
mov edi, eax
test edi, edi
je 0x426f97
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 0x426d96
mov esi, dword [ebp - 0x22c]
sub edx, ecx
sar edx, 1
mov ecx, esi
test esi, esi
jne 0x426db7
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 0x426dc0
sub ecx, dword [ebp - 0x664]
lea eax, [edx + 1]
sar ecx, 1
add eax, ecx
cmp eax, 0x7fe7
ja 0x426f97
test esi, esi
jne 0x426df1
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 0x426e20
lea ecx, [ebp - 0x434]
lea esi, [ecx + 2]
xor edi, edi
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x426e25
sub ecx, esi
sar ecx, 1
test edx, edx
jne 0x426e3e
lea edx, [ebp - 0x434]
mov edi, dword [ebp - 0x65c]
xor eax, eax
mov word [edx + ecx*2], ax
jmp 0x426f0a
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x426e5c
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 0x426e81
lea eax, [ebp - 0x220]
mov ecx, dword [ebp - 0x440]
test ecx, ecx
jne 0x426e91
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 0x426eb8
lea ecx, [ebp - 0x648]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x658]
jne 0x426ebb
sub ecx, esi
lea eax, [edi + 1]
sar ecx, 1
add eax, ecx
cmp eax, 0x7fe7
ja 0x426f97
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x426eee
lea eax, [ebp - 0x434]
xor ecx, ecx
mov word [eax + edi*2], cx
test edx, edx
jne 0x426efe
lea edx, [ebp - 0x648]
push edx
lea ecx, [ebp - 0x434]
call fcn.0041232c
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
jne 0x426f1a
lea ecx, [ebp - 0x434]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x426f27
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 0x426f67
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 0x426f5a
mov esi, 0x234d
mov dword [ebp - 0x660], esi
xor eax, eax
push eax
push esi
call fcn.004078e4
pop ecx
pop ecx
jmp 0x426f6d
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 0x426fb1
xor esi, esi
jmp 0x426d46
mov ecx, dword [ebp - 0x64c]
call fcn.00408b4d
call fcn.00406468
mov ecx, 0x232e
jmp 0x426a0a
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 0x426fe8
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 0x427000
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 0x427012
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, dword [ebp - 0x664]
jmp 0x42706f
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 0x427042
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 0x42705a
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 0x42706c
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.00416b50
leave
ret