Function at 0x64606cd5
Capabilities:
Delete file
Get common file path
Move file
Query or enumerate registry value
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe98
mov eax, dword [0x646170a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0xe8c], eax
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xe78], esi
mov dword [ebp - 0xe90], eax
mov dword [ebp - 0xe7c], edi
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64606d42
test dword [eax + 0x1c], 0x200
je 0x64606d42
cmp byte [eax + 0x19], 4
jb 0x64606d42
push dword [eax + 0x14]
mov edx, 0x64601f68
push dword [eax + 0x10]
push 0x1a
pop ecx
call fcn.64604453
xor ecx, ecx
push 0x208
push ecx
lea eax, [ebp - 0x214]
mov dword [ebp - 0xe48], ecx
push eax
mov dword [ebp - 0xe70], ecx
mov ebx, ecx
mov dword [ebp - 0xe54], ecx
mov dword [ebp - 0xe4c], ecx
mov dword [ebp - 0xe5c], ecx
mov dword [ebp - 0xe58], ecx
mov dword [ebp - 0xe6c], ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa34]
push 0x208
push 0
push eax
call sub.msvcrt.dll_memset
mov esi, dword [esi]
lea eax, [ebp - 0xe70]
and dword [ebp - 0xe80], edi
add esp, 0xc
mov ecx, dword [esi + 0x38]
push eax
push 0
push dword [ebp - 0xe78]
call dword [0x64618384]
call dword [esi + 0x38]
xor esi, esi
test eax, eax
js 0x64606ebe
push esi
push dword [0x6461740c]
push dword [0x64617408]
push 0x64601f78
push dword [ebp - 0xe70]
call dword [sym.imp.MAPI32.dll_Ordinal_82]
test eax, eax
js 0x64606ebe
lea eax, [ebp - 0xe54]
push eax
push esi
push esi
push esi
push esi
push dword [ebp - 0xe70]
call dword [sym.imp.MAPI32.dll_Ordinal_75]
test eax, eax
jns 0x64606ea7
mov dword [ebp - 0xe54], esi
mov edi, 0x2d02
cmp word [ebp - 0xa34], 0
je 0x64606e3c
lea ecx, [ebp - 0xa34]
call fcn.6460e5b9
mov ecx, dword [ebp - 0xe90]
mov dword [ecx], eax
test eax, eax
jne 0x64606e3c
mov edi, 0x2cfd
mov eax, dword [ebp - 0xe6c]
test eax, eax
je 0x64606e4d
mov ecx, eax
call fcn.6460cda9
test ebx, ebx
je 0x64606e58
mov ecx, ebx
call fcn.6460cda9
mov eax, dword [ebp - 0xe54]
test eax, eax
je 0x64606e69
push eax
call dword [sym.imp.MAPI32.dll_Ordinal_140]
mov ecx, dword [ebp - 0xe70]
test ecx, ecx
je 0x64606e83
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x64618384]
call esi
mov eax, dword [ebp - 0xe58]
test eax, eax
je 0x64606e94
mov ecx, eax
call fcn.6460cda9
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.64615dc0
leave
ret 0xc
mov eax, dword [ebp - 0xe54]
cmp dword [eax], esi
jne 0x64606ebe
push eax
call dword [sym.imp.MAPI32.dll_Ordinal_140]
mov dword [ebp - 0xe54], esi
mov eax, dword [ebp - 0xe54]
test eax, eax
je 0x64606e11
mov edx, esi
mov dword [ebp - 0xe50], 1
mov dword [ebp - 0xe60], edx
cmp dword [eax], esi
jbe 0x64607339
mov ecx, esi
mov dword [ebp - 0xe64], esi
mov eax, dword [ebp - 0xe54]
mov eax, dword [ecx + eax + 0xc]
mov dword [ebp - 0xe4c], esi
mov dword [ebp - 0xe48], esi
cmp dword [eax + 8], esi
je 0x6460720a
mov ecx, dword [ebp - 0xe78]
lea edx, [ebp - 0xe4c]
push edx
push 0x10
push 0
mov esi, dword [ecx]
push dword [eax + 0x18]
push ecx
mov ecx, dword [esi + 0x3c]
call dword [0x64618384]
call dword [esi + 0x3c]
test eax, eax
jns 0x64606f40
and dword [ebp - 0xe50], 0
jmp 0x646071c7
mov eax, dword [ebp - 0xe4c]
lea ecx, [ebp - 0xe48]
push ecx
lea ecx, [ebp - 0xe80]
push ecx
mov esi, dword [eax]
push 0
push 0x64601fa4
push eax
mov ecx, dword [esi + 0x14]
call dword [0x64618384]
call dword [esi + 0x14]
test eax, eax
js 0x64606f34
test ebx, ebx
je 0x64606f79
mov ecx, ebx
call fcn.6460cda9
mov ecx, dword [ebp - 0xe48]
xor ebx, ebx
mov esi, ebx
cmp word [ecx + 0x20], 0xa
jne 0x64606fba
cmp word [ecx + 0x50], 0xa
je 0x64606fa6
push 0x2e
push dword [ecx + 0x58]
call dword [sym.imp.msvcrt.dll_strrchr]
pop ecx
pop ecx
test eax, eax
je 0x64606fda
mov ecx, eax
jmp 0x64606fcb
mov ecx, dword [ebp - 0xe48]
cmp word [ecx + 0x30], 0xa
je 0x64606fda
push 0x2e
push dword [ecx + 0x38]
jmp 0x64606f96
mov eax, dword [ebp - 0xe48]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x6460723f
call fcn.6460e665
mov ebx, eax
test ebx, ebx
je 0x6460723f
test ebx, ebx
jne 0x64606fe9
and dword [ebp - 0xe50], esi
jmp 0x646071c7
mov esi, 0x208
lea eax, [ebp - 0x41c]
push esi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0xe68], 0x104
lea eax, [ebp - 0xe68]
push eax
lea eax, [ebp - 0x41c]
push eax
push ebx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov edi, eax
mov dword [ebp - 0xe7c], edi
test edi, edi
je 0x64607077
cmp edi, 0xd
je 0x64607077
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x646071c7
test dword [ecx + 0x1c], 0x200
je 0x646071c7
cmp byte [ecx + 0x19], 5
jb 0x646071c7
push ebx
push dword [ecx + 0x14]
mov edx, 0x64601f68
push dword [ecx + 0x10]
push 0x1b
pop ecx
call fcn.64605ef1
jmp 0x646071c7
push esi
lea eax, [ebp - 0x624]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x41c]
mov ecx, 0x104
mov dword [ebp - 0xe68], ecx
push eax
push 0x646015f0
push ecx
lea eax, [ebp - 0x624]
push eax
call fcn.64604373
mov edi, eax
add esp, 0x10
test edi, edi
js 0x646072f0
lea eax, [ebp - 0xe68]
mov esi, 0x80000000
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x624]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x64607105
cmp eax, 0xd
je 0x64607105
lea eax, [ebp - 0x41c]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x624]
call fcn.646042d0
mov edi, eax
test edi, edi
js 0x64607249
lea eax, [ebp - 0x41c]
push eax
push 0x64601604
lea eax, [ebp - 0xe44]
push 0x104
push eax
call fcn.64604373
mov edi, eax
add esp, 0x10
test edi, edi
js 0x646072ca
lea eax, [ebp - 0xe68]
mov dword [ebp - 0xe68], 0x104
push eax
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0xe44]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov edi, eax
mov dword [ebp - 0xe7c], edi
test edi, edi
je 0x646071a6
cmp edi, 0xd
je 0x646071a6
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64606f34
test dword [eax + 0x1c], 0x200
je 0x64606f34
cmp byte [eax + 0x19], 5
jb 0x64606f34
push ebx
push dword [eax + 0x14]
mov edx, 0x64601f68
push dword [eax + 0x10]
push 0x1f
pop ecx
call fcn.64605ef1
jmp 0x64606f34
lea eax, [ebp - 0x624]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x82c]
call fcn.646042d0
mov esi, eax
test esi, esi
js 0x6460727e
mov ecx, dword [ebp - 0xe4c]
test ecx, ecx
je 0x646071e1
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x64618384]
call esi
mov ecx, dword [ebp - 0xe48]
test ecx, ecx
je 0x646071fc
push ecx
call dword [sym.imp.MAPI32.dll_Ordinal_17]
xor esi, esi
mov dword [ebp - 0xe48], esi
jmp 0x646071fe
xor esi, esi
mov edx, dword [ebp - 0xe60]
mov ecx, dword [ebp - 0xe64]
mov eax, dword [ebp - 0xe54]
inc edx
add ecx, 0xc
mov dword [ebp - 0xe60], edx
mov dword [ebp - 0xe64], ecx
cmp edx, dword [eax]
jb 0x64606eee
cmp dword [ebp - 0xe50], 0
jne 0x64607339
mov edi, 0x2cf4
jmp 0x64606e4d
mov edi, 0x2cfd
jmp 0x64606e58
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460731f
test dword [eax + 0x1c], 0x200
je 0x6460731f
cmp byte [eax + 0x19], 5
jb 0x6460731f
push edi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1d
jmp 0x64607314
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x646072ad
test dword [eax + 0x1c], 0x200
je 0x646072ad
cmp byte [eax + 0x19], 5
jb 0x646072ad
push esi
push dword [eax + 0x14]
mov edx, 0x64601f68
push dword [eax + 0x10]
push 0x20
pop ecx
call fcn.64604471
mov eax, esi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x646072c3
movzx edi, si
jmp 0x64606e4d
mov edi, esi
jmp 0x64606e4d
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460731f
test dword [eax + 0x1c], 0x200
je 0x6460731f
cmp byte [eax + 0x19], 5
jb 0x6460731f
push edi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1e
jmp 0x64607314
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460731f
test dword [eax + 0x1c], 0x200
je 0x6460731f
cmp byte [eax + 0x19], 5
jb 0x6460731f
push edi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1c
mov edx, 0x64601f68
pop ecx
call fcn.64604471
mov eax, edi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x64606e4d
movzx edi, di
jmp 0x64606e4d
mov eax, dword [ebp - 0xe54]
mov ecx, esi
mov dword [ebp - 0xe64], ecx
cmp dword [eax], esi
jbe 0x64606e16
mov edx, esi
mov dword [ebp - 0xe60], esi
mov eax, dword [ebp - 0xe54]
mov eax, dword [edx + eax + 0xc]
mov dword [ebp - 0xe4c], esi
mov dword [ebp - 0xe48], esi
cmp dword [eax + 8], esi
je 0x646078cb
mov ecx, dword [ebp - 0xe78]
lea edx, [ebp - 0xe4c]
push edx
push 0x10
push 0
mov esi, dword [ecx]
push dword [eax + 0x18]
push ecx
mov ecx, dword [esi + 0x3c]
call dword [0x64618384]
call dword [esi + 0x3c]
test eax, eax
js 0x64607888
mov eax, dword [ebp - 0xe4c]
lea ecx, [ebp - 0xe48]
push ecx
lea ecx, [ebp - 0xe80]
push ecx
mov esi, dword [eax]
push 0
push 0x64601fa4
push eax
mov ecx, dword [esi + 0x14]
call dword [0x64618384]
call dword [esi + 0x14]
test eax, eax
js 0x64607888
test ebx, ebx
je 0x646073de
mov ecx, ebx
call fcn.6460cda9
mov ecx, dword [ebp - 0xe48]
xor ebx, ebx
mov dword [ebp - 0xe50], ebx
mov esi, ebx
cmp word [ecx + 0x20], 0xa
jne 0x64607437
cmp word [ecx + 0x50], 0xa
je 0x64607411
push 0x2e
push dword [ecx + 0x58]
call dword [sym.imp.msvcrt.dll_strrchr]
pop ecx
pop ecx
test eax, eax
je 0x6460745d
mov ecx, eax
jmp 0x64607448
mov ecx, dword [ebp - 0xe48]
mov dword [ebp - 0xe50], ebx
cmp word [ecx + 0x30], 0xa
je 0x6460745d
push 0x2e
push dword [ecx + 0x38]
call dword [sym.imp.msvcrt.dll_strrchr]
mov dword [ebp - 0xe50], ebx
jmp 0x64607407
mov eax, dword [ebp - 0xe48]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x64607abf
call fcn.6460e665
mov ebx, eax
mov dword [ebp - 0xe50], ebx
test ebx, ebx
je 0x64606e37
test ebx, ebx
je 0x64607888
and dword [ebp - 0xe5c], esi
xor eax, eax
and dword [ebp - 0xe74], eax
mov dword [ebp - 0xe58], eax
mov eax, dword [ebp - 0xe6c]
test eax, eax
je 0x6460748a
mov ecx, eax
call fcn.6460cda9
mov ecx, dword [ebp - 0xe48]
cmp word [ecx + 0x40], 0xa
je 0x646074b7
mov ecx, dword [ecx + 0x48]
test ecx, ecx
je 0x646074ad
call fcn.6460e665
mov dword [ebp - 0xe6c], eax
test eax, eax
jne 0x646074bf
mov edi, 0x2cfd
jmp 0x64606e4d
xor eax, eax
mov dword [ebp - 0xe6c], eax
test eax, eax
je 0x646074da
mov ecx, eax
call fcn.6460e5b9
mov esi, eax
mov dword [ebp - 0xe58], esi
test esi, esi
je 0x64606e37
mov ecx, dword [ebp - 0xe48]
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x64607702
add eax, 0xfffffffb
cmp eax, 1
ja 0x64607586
mov eax, dword [ebp - 0xe4c]
lea ecx, [ebp - 0xe5c]
push ecx
push 0
push 0
mov esi, dword [eax]
push 0x64602230
push 0x3701000d
push eax
mov ecx, dword [esi + 0x1c]
call dword [0x64618384]
call dword [esi + 0x1c]
test eax, eax
jns 0x64607586
mov eax, dword [ebp - 0xe4c]
lea ecx, [ebp - 0xe5c]
push ecx
push 0
push 0
mov esi, dword [eax]
push 0x64602230
push 0x37010102
push eax
mov ecx, dword [esi + 0x1c]
call dword [0x64618384]
call dword [esi + 0x1c]
test eax, eax
jns 0x64607586
lea ecx, [ebp - 0xe5c]
push ecx
push 0
push 0
push 0x646012cc
push 0x3701000d
mov eax, dword [ebp - 0xe4c]
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0x1c]
call dword [0x64618384]
call dword [esi + 0x1c]
test eax, eax
js 0x64607888
cmp dword [ebp - 0xe5c], 0
je 0x64607757
lea eax, [ebp - 0xe44]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x82c]
xor esi, esi
push eax
push esi
push 0x64601638
lea eax, [ebp - 0xe44]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
push esi
push 2
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xe88], eax
cmp eax, 0xffffffff
je 0x64607741
mov ecx, 0x10000
call fcn.6460cd43
mov dword [ebp - 0xe74], eax
test eax, eax
je 0x64606e37
mov ebx, dword [ebp - 0xe88]
mov edi, eax
mov ecx, dword [ebp - 0xe5c]
lea eax, [ebp - 0xe84]
push eax
push 0x10000
push edi
mov esi, dword [ecx]
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x64618384]
call dword [esi + 0xc]
test eax, eax
js 0x64607651
push 0
lea eax, [ebp - 0xe94]
push eax
push dword [ebp - 0xe84]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0xe84], 0x10000
je 0x64607608
push dword [ebp - 0xe88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.6460cda9
mov eax, dword [ebp - 0xe58]
mov edi, dword [ebp - 0xe7c]
mov ebx, dword [ebp - 0xe50]
test eax, eax
je 0x64607681
mov ecx, eax
call fcn.6460cda9
lea eax, [ebp - 0x82c]
xor esi, esi
push eax
mov edx, 0x104
mov dword [ebp - 0xe58], esi
lea ecx, [ebp - 0xc3c]
call fcn.646042d0
mov ecx, eax
test ecx, ecx
js 0x6460792c
lea eax, [ebp - 0xc3c]
push 0x2e
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x6460771c
mov ecx, eax
lea edx, [ebp - 0xc3c]
sub ecx, edx
mov edx, 0x103
sar ecx, 1
shr ecx, 1
sub edx, ecx
mov ecx, eax
push ebx
call fcn.646042d0
mov ecx, eax
test ecx, ecx
js 0x646078ee
lea eax, [ebp - 0xc3c]
push eax
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0xc3c]
jmp 0x64607722
lea ecx, [ebp - 0xe5c]
push ecx
push 0
push 0
push 0x646012bc
push 0x37010102
jmp 0x64607569
lea ecx, [ebp - 0x82c]
call fcn.6460e5b9
mov esi, eax
mov dword [ebp - 0xe58], esi
test esi, esi
je 0x64606e37
mov dword [ebp - 0xe74], 1
mov eax, dword [ebp - 0xe5c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x64618384]
call esi
mov esi, dword [ebp - 0xe58]
test esi, esi
je 0x64607888
lea ecx, [ebp - 0x214]
call 0x64622c94
test eax, eax
je 0x64607ab5
lea eax, [ebp - 0x214]
mov edx, esi
push eax
mov eax, dword [ebp - 0xe8c]
mov ecx, dword [eax]
call fcn.64611bc4
test eax, eax
je 0x64607a0d
cmp word [ebp - 0xa34], 0
je 0x6460780b
lea edx, [ebp - 0x214]
lea ecx, [ebp - 0xa34]
call fcn.64611445
test eax, eax
je 0x64607970
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x64607827
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64607827
test dword [eax + 0x1c], 0x200
je 0x64607827
cmp byte [eax + 0x19], 2
jb 0x64607827
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64601f68
push 0x64601668
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x27
pop ecx
call fcn.64604495
jmp 0x64607827
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xa34]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
cmp dword [ebp - 0xe74], 0
je 0x6460787a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x6460787a
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460787a
test dword [eax + 0x1c], 0x200
je 0x6460787a
cmp byte [eax + 0x19], 2
jb 0x6460787a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64601f68
push 0x64601668
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x28
pop ecx
call fcn.64604495
mov ecx, esi
call fcn.6460cda9
and dword [ebp - 0xe58], 0
mov ecx, dword [ebp - 0xe4c]
test ecx, ecx
je 0x646078a2
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x64618384]
call esi
mov ecx, dword [ebp - 0xe48]
test ecx, ecx
je 0x646078bd
push ecx
call dword [sym.imp.MAPI32.dll_Ordinal_17]
xor esi, esi
mov dword [ebp - 0xe48], esi
jmp 0x646078bf
xor esi, esi
mov edx, dword [ebp - 0xe60]
mov ecx, dword [ebp - 0xe64]
mov eax, dword [ebp - 0xe54]
inc ecx
add edx, 0xc
mov dword [ebp - 0xe64], ecx
mov dword [ebp - 0xe60], edx
cmp ecx, dword [eax]
jb 0x64607357
jmp 0x64606e16
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64607922
test dword [eax + 0x1c], 0x200
je 0x64607922
cmp byte [eax + 0x19], 2
jb 0x64607922
push ecx
push 0x6460130c
push dword [eax + 0x14]
mov edx, 0x64601f68
push dword [eax + 0x10]
push 0x22
pop ecx
call fcn.64604495
mov edi, 0x2cfe
jmp 0x64606e3c
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64607960
test dword [eax + 0x1c], 0x200
je 0x64607960
cmp byte [eax + 0x19], 2
jb 0x64607960
push ecx
push 0x6460130c
push dword [eax + 0x14]
mov edx, 0x64601f68
push dword [eax + 0x10]
push 0x21
pop ecx
call fcn.64604495
mov edi, 0x2cfe
mov dword [ebp - 0xe58], esi
jmp 0x64606e3c
mov eax, dword [0x64617004]
mov esi, 0x64617004
cmp eax, esi
je 0x646079b1
test dword [eax + 0x1c], 0x200
je 0x646079b1
cmp byte [eax + 0x19], 2
jb 0x646079b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64601f68
push 0x64601680
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x25
pop ecx
call fcn.64604495
lea eax, [ebp - 0x214]
mov edi, 0x2cf4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x64606e3c
mov eax, dword [0x64617004]
cmp eax, esi
je 0x64606e3c
test dword [eax + 0x1c], 0x200
je 0x64606e3c
cmp byte [eax + 0x19], 2
jb 0x64606e3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
push 0x64601668
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x26
jmp 0x64607aa5
mov eax, dword [0x64617004]
mov esi, 0x64617004
cmp eax, esi
je 0x64607a4e
test dword [eax + 0x1c], 0x200
je 0x64607a4e
cmp byte [eax + 0x19], 2
jb 0x64607a4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64601f68
push 0x64601640
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x23
pop ecx
call fcn.64604495
lea eax, [ebp - 0x214]
mov edi, 0x2cf4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x64606e3c
mov eax, dword [0x64617004]
cmp eax, esi
je 0x64606e3c
test dword [eax + 0x1c], 0x200
je 0x64606e3c
cmp byte [eax + 0x19], 2
jb 0x64606e3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
push 0x64601668
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x24
mov edx, 0x64601f68
pop ecx
call fcn.64604495
jmp 0x64606e3c
mov edi, 0x2cf4
jmp 0x64606e3c
xor ebx, ebx
jmp 0x64606e37