Function at 0x42677a
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 0x43fa60
mov dword [ebp - 0x658], esi
call sub.msvcrt.dll__setjmp3
pop ecx
pop ecx
test eax, eax
jne 0x426ecc
mov ecx, dword [ebp - 0x66c]
xor edx, edx
push esi
mov ecx, dword [ecx + 0x3c]
call fcn.0040bb40
mov edi, eax
mov ecx, edi
call fcn.0040a719
mov dword [ebp - 0x650], eax
cmp word [edi], si
je 0x426b7b
cmp word [eax], si
je 0x426b7b
mov ecx, eax
call fcn.0040a719
cmp word [eax], si
jne 0x426b7b
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x4267fd
sub esi, ecx
mov ecx, edi
sar esi, 1
call fcn.0040ffb0
push eax
lea edx, [esi + 1]
mov ecx, edi
call fcn.0040f2e0
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 0x426829
sub esi, ecx
mov ecx, edx
sar esi, 1
call fcn.0040ffb0
mov ecx, dword [ebp - 0x650]
lea edx, [esi + 1]
push eax
call fcn.0040f2e0
mov ecx, edi
call fcn.00407f7c
mov dword [ebp - 0x654], eax
cmp eax, 1
jne 0x42686f
mov ecx, dword [0x435798]
call fcn.0042675a
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.0040e330
test eax, eax
js 0x426a66
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.0040e330
test eax, eax
js 0x426a66
mov eax, dword [0x447de8]
mov esi, 0x447be0
test eax, eax
jne 0x426917
mov eax, esi
push eax
lea ecx, [ebp - 0x220]
call fcn.0040a586
mov eax, dword [0x447de8]
test eax, eax
jne 0x42692e
mov eax, esi
push eax
lea ecx, [ebp - 0x434]
call fcn.0040a586
mov ecx, dword [ebp - 0x18]
mov esi, ecx
test ecx, ecx
jne 0x426949
lea esi, [ebp - 0x220]
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, word [ebp - 0x658]
jne 0x42694c
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 0x426989
push dword [edx + 0x10]
lea ecx, [ebp - 0x220]
call fcn.004122ac
mov edx, dword [ebp - 0x654]
jmp 0x4269b6
dec esi
mov dword [ebp - 0x65c], esi
test ecx, ecx
jne 0x42699a
lea ecx, [ebp - 0x220]
xor eax, eax
mov word [ecx + esi*2], ax
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x4269b0
lea eax, [ebp - 0x434]
xor ecx, ecx
mov word [eax + esi*2], cx
test byte [edx + 0x1c], 8
jne 0x4269f5
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4269c9
lea ecx, [ebp - 0x220]
call fcn.0040ffb0
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 0x4269f5
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
jmp 0x42686a
mov eax, dword [ebp - 0x650]
push 0x3a
pop ecx
cmp word [eax + 2], cx
je 0x426b7b
push 0x5c
pop edx
mov ecx, eax
call fcn.0040a574
test eax, eax
jne 0x426b7b
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.0040e330
test eax, eax
jns 0x426a70
mov ecx, 0x2374
jmp 0x42686a
mov eax, dword [0x447de8]
test eax, eax
jne 0x426a7e
mov eax, 0x447be0
mov ecx, dword [ebp - 0x440]
test ecx, ecx
jne 0x426a8e
lea ecx, [ebp - 0x648]
mov ax, word [eax]
mov word [ecx], ax
mov eax, dword [ebp - 0x440]
test eax, eax
jne 0x426aa4
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 0x426ac6
sub esi, ecx
lea edx, [ebp - 0xc]
mov ecx, edi
sar esi, 1
call fcn.00409dfa
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 0x426afb
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.00415950
call fcn.0041581a
test al, al
jne 0x426b85
mov edx, dword [ebp - 0x18]
push 0x10
pop eax
mov dword [ebp - 0x668], eax
test edx, edx
jne 0x426b33
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x64c]
push ecx
push dword [edi + 0x18]
xor ecx, ecx
push ecx
push eax
mov ecx, fcn.00415950
call fcn.0041581a
test al, al
jne 0x426b6c
mov ecx, dword [0x435798]
cmp ecx, 0x12
jne 0x42686a
push 2
pop ecx
mov dword [0x435798], ecx
jmp 0x42686a
test esi, esi
je 0x426b85
mov ecx, dword [ebp - 0x64c]
call fcn.00408a9a
mov ecx, 0x232a
jmp 0x42686a
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x426b92
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 [0x43158c], 0
jne 0x426e7a
mov ecx, dword [ebp - 0x654]
mov eax, dword [ecx + 0x18]
test byte [eax], 0x10
je 0x426caf
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
jne 0x426bd5
lea ecx, [ebp - 0x434]
push 0x5c
pop edx
call fcn.00410145
mov edi, eax
test edi, edi
je 0x426df7
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 0x426bf6
mov esi, dword [ebp - 0x22c]
sub edx, ecx
sar edx, 1
mov ecx, esi
test esi, esi
jne 0x426c17
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 0x426c20
sub ecx, dword [ebp - 0x664]
lea eax, [edx + 1]
sar ecx, 1
add eax, ecx
cmp eax, 0x7fe7
ja 0x426df7
test esi, esi
jne 0x426c51
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.0040f2e0
mov edx, dword [ebp - 0x22c]
mov ecx, edx
test edx, edx
jne 0x426c80
lea ecx, [ebp - 0x434]
lea esi, [ecx + 2]
xor edi, edi
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x426c85
sub ecx, esi
sar ecx, 1
test edx, edx
jne 0x426c9e
lea edx, [ebp - 0x434]
mov edi, dword [ebp - 0x65c]
xor eax, eax
mov word [edx + ecx*2], ax
jmp 0x426d6a
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x426cbc
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.004122ac
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x426ce1
lea eax, [ebp - 0x220]
mov ecx, dword [ebp - 0x440]
test ecx, ecx
jne 0x426cf1
lea ecx, [ebp - 0x648]
mov edx, dword [ebp - 0x438]
lea eax, [eax + edi*2]
push eax
push dword [ebp - 0x650]
call fcn.00413699
mov edx, dword [ebp - 0x440]
mov ecx, edx
test edx, edx
jne 0x426d18
lea ecx, [ebp - 0x648]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x658]
jne 0x426d1b
sub ecx, esi
lea eax, [edi + 1]
sar ecx, 1
add eax, ecx
cmp eax, 0x7fe7
ja 0x426df7
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x426d4e
lea eax, [ebp - 0x434]
xor ecx, ecx
mov word [eax + edi*2], cx
test edx, edx
jne 0x426d5e
lea edx, [ebp - 0x648]
push edx
lea ecx, [ebp - 0x434]
call fcn.004122ac
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
jne 0x426d7a
lea ecx, [ebp - 0x434]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x426d87
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 0x426dc7
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 0x426dba
mov esi, 0x234d
mov dword [ebp - 0x660], esi
xor eax, eax
push eax
push esi
call fcn.00407834
pop ecx
pop ecx
jmp 0x426dcd
mov esi, dword [ebp - 0x660]
push dword [ebp - 0x64c]
mov edx, dword [ebp - 0x654]
mov ecx, fcn.00415950
push dword [ebp - 0x668]
mov edx, dword [edx + 0x18]
call fcn.004157d1
test al, al
je 0x426e11
xor esi, esi
jmp 0x426ba6
mov ecx, dword [ebp - 0x64c]
call fcn.00408a9a
call fcn.004063b5
mov ecx, 0x232e
jmp 0x42686a
mov ecx, dword [ebp - 0x64c]
call fcn.00408a9a
call fcn.004063b5
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 0x426e48
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 0x426e60
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 0x426e72
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, dword [ebp - 0x664]
jmp 0x426ecf
mov ecx, dword [ebp - 0x64c]
call fcn.00408a9a
call fcn.004063b5
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x440], esi
test eax, eax
je 0x426ea2
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 0x426eba
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 0x426ecc
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.00416ad0
leave
ret