Function at 0x64606d15
Capabilities:
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 0x64606d82
test dword [eax + 0x1c], 0x200
je 0x64606d82
cmp byte [eax + 0x19], 4
jb 0x64606d82
push dword [eax + 0x14]
mov edx, 0x64601f74
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 0x64606efe
push esi
push dword [0x6461740c]
push dword [0x64617408]
push 0x64601f68
push dword [ebp - 0xe70]
call dword [sym.imp.MAPI32.dll_Ordinal_82]
test eax, eax
js 0x64606efe
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 0x64606ee7
mov dword [ebp - 0xe54], esi
mov edi, 0x2d02
cmp word [ebp - 0xa34], 0
je 0x64606e7c
lea ecx, [ebp - 0xa34]
call fcn.6460e639
mov ecx, dword [ebp - 0xe90]
mov dword [ecx], eax
test eax, eax
jne 0x64606e7c
mov edi, 0x2cfd
mov eax, dword [ebp - 0xe6c]
test eax, eax
je 0x64606e8d
mov ecx, eax
call fcn.6460ce29
test ebx, ebx
je 0x64606e98
mov ecx, ebx
call fcn.6460ce29
mov eax, dword [ebp - 0xe54]
test eax, eax
je 0x64606ea9
push eax
call dword [sym.imp.MAPI32.dll_Ordinal_140]
mov ecx, dword [ebp - 0xe70]
test ecx, ecx
je 0x64606ec3
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 0x64606ed4
mov ecx, eax
call fcn.6460ce29
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.64615e30
leave
ret 0xc
mov eax, dword [ebp - 0xe54]
cmp dword [eax], esi
jne 0x64606efe
push eax
call dword [sym.imp.MAPI32.dll_Ordinal_140]
mov dword [ebp - 0xe54], esi
mov eax, dword [ebp - 0xe54]
test eax, eax
je 0x64606e51
mov edx, esi
mov dword [ebp - 0xe50], 1
mov dword [ebp - 0xe60], edx
cmp dword [eax], esi
jbe 0x64607379
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 0x6460724a
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 0x64606f80
and dword [ebp - 0xe50], 0
jmp 0x64607207
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 0x64606f74
test ebx, ebx
je 0x64606fb9
mov ecx, ebx
call fcn.6460ce29
mov ecx, dword [ebp - 0xe48]
xor ebx, ebx
mov esi, ebx
cmp word [ecx + 0x20], 0xa
jne 0x64606ffa
cmp word [ecx + 0x50], 0xa
je 0x64606fe6
push 0x2e
push dword [ecx + 0x58]
call dword [sym.imp.msvcrt.dll_strrchr]
pop ecx
pop ecx
test eax, eax
je 0x6460701a
mov ecx, eax
jmp 0x6460700b
mov ecx, dword [ebp - 0xe48]
cmp word [ecx + 0x30], 0xa
je 0x6460701a
push 0x2e
push dword [ecx + 0x38]
jmp 0x64606fd6
mov eax, dword [ebp - 0xe48]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x6460727f
call fcn.6460e6e5
mov ebx, eax
test ebx, ebx
je 0x6460727f
test ebx, ebx
jne 0x64607029
and dword [ebp - 0xe50], esi
jmp 0x64607207
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 0x646070b7
cmp edi, 0xd
je 0x646070b7
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x64607207
test dword [ecx + 0x1c], 0x200
je 0x64607207
cmp byte [ecx + 0x19], 5
jb 0x64607207
push ebx
push dword [ecx + 0x14]
mov edx, 0x64601f74
push dword [ecx + 0x10]
push 0x1b
pop ecx
call fcn.64605f31
jmp 0x64607207
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 0x64607330
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 0x64607145
cmp eax, 0xd
je 0x64607145
lea eax, [ebp - 0x41c]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x624]
call fcn.646042d0
mov edi, eax
test edi, edi
js 0x64607289
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 0x6460730a
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 0x646071e6
cmp edi, 0xd
je 0x646071e6
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64606f74
test dword [eax + 0x1c], 0x200
je 0x64606f74
cmp byte [eax + 0x19], 5
jb 0x64606f74
push ebx
push dword [eax + 0x14]
mov edx, 0x64601f74
push dword [eax + 0x10]
push 0x1f
pop ecx
call fcn.64605f31
jmp 0x64606f74
lea eax, [ebp - 0x624]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x82c]
call fcn.646042d0
mov esi, eax
test esi, esi
js 0x646072be
mov ecx, dword [ebp - 0xe4c]
test ecx, ecx
je 0x64607221
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 0x6460723c
push ecx
call dword [sym.imp.MAPI32.dll_Ordinal_17]
xor esi, esi
mov dword [ebp - 0xe48], esi
jmp 0x6460723e
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 0x64606f2e
cmp dword [ebp - 0xe50], 0
jne 0x64607379
mov edi, 0x2cf4
jmp 0x64606e8d
mov edi, 0x2cfd
jmp 0x64606e98
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460735f
test dword [eax + 0x1c], 0x200
je 0x6460735f
cmp byte [eax + 0x19], 5
jb 0x6460735f
push edi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1d
jmp 0x64607354
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x646072ed
test dword [eax + 0x1c], 0x200
je 0x646072ed
cmp byte [eax + 0x19], 5
jb 0x646072ed
push esi
push dword [eax + 0x14]
mov edx, 0x64601f74
push dword [eax + 0x10]
push 0x20
pop ecx
call fcn.64604471
mov eax, esi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x64607303
movzx edi, si
jmp 0x64606e8d
mov edi, esi
jmp 0x64606e8d
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460735f
test dword [eax + 0x1c], 0x200
je 0x6460735f
cmp byte [eax + 0x19], 5
jb 0x6460735f
push edi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1e
jmp 0x64607354
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460735f
test dword [eax + 0x1c], 0x200
je 0x6460735f
cmp byte [eax + 0x19], 5
jb 0x6460735f
push edi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1c
mov edx, 0x64601f74
pop ecx
call fcn.64604471
mov eax, edi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x64606e8d
movzx edi, di
jmp 0x64606e8d
mov eax, dword [ebp - 0xe54]
mov ecx, esi
mov dword [ebp - 0xe64], ecx
cmp dword [eax], esi
jbe 0x64606e56
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 0x6460790b
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 0x646078c8
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 0x646078c8
test ebx, ebx
je 0x6460741e
mov ecx, ebx
call fcn.6460ce29
mov ecx, dword [ebp - 0xe48]
xor ebx, ebx
mov dword [ebp - 0xe50], ebx
mov esi, ebx
cmp word [ecx + 0x20], 0xa
jne 0x64607477
cmp word [ecx + 0x50], 0xa
je 0x64607451
push 0x2e
push dword [ecx + 0x58]
call dword [sym.imp.msvcrt.dll_strrchr]
pop ecx
pop ecx
test eax, eax
je 0x6460749d
mov ecx, eax
jmp 0x64607488
mov ecx, dword [ebp - 0xe48]
mov dword [ebp - 0xe50], ebx
cmp word [ecx + 0x30], 0xa
je 0x6460749d
push 0x2e
push dword [ecx + 0x38]
call dword [sym.imp.msvcrt.dll_strrchr]
mov dword [ebp - 0xe50], ebx
jmp 0x64607447
mov eax, dword [ebp - 0xe48]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x64607aff
call fcn.6460e6e5
mov ebx, eax
mov dword [ebp - 0xe50], ebx
test ebx, ebx
je 0x64606e77
test ebx, ebx
je 0x646078c8
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 0x646074ca
mov ecx, eax
call fcn.6460ce29
mov ecx, dword [ebp - 0xe48]
cmp word [ecx + 0x40], 0xa
je 0x646074f7
mov ecx, dword [ecx + 0x48]
test ecx, ecx
je 0x646074ed
call fcn.6460e6e5
mov dword [ebp - 0xe6c], eax
test eax, eax
jne 0x646074ff
mov edi, 0x2cfd
jmp 0x64606e8d
xor eax, eax
mov dword [ebp - 0xe6c], eax
test eax, eax
je 0x6460751a
mov ecx, eax
call fcn.6460e639
mov esi, eax
mov dword [ebp - 0xe58], esi
test esi, esi
je 0x64606e77
mov ecx, dword [ebp - 0xe48]
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x64607742
add eax, 0xfffffffb
cmp eax, 1
ja 0x646075c6
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 0x646075c6
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 0x646075c6
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 0x646078c8
cmp dword [ebp - 0xe5c], 0
je 0x64607797
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 0x64607781
mov ecx, 0x10000
call fcn.6460cdc3
mov dword [ebp - 0xe74], eax
test eax, eax
je 0x64606e77
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 0x64607691
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 0x64607648
push dword [ebp - 0xe88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.6460ce29
mov eax, dword [ebp - 0xe58]
mov edi, dword [ebp - 0xe7c]
mov ebx, dword [ebp - 0xe50]
test eax, eax
je 0x646076c1
mov ecx, eax
call fcn.6460ce29
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 0x6460796c
lea eax, [ebp - 0xc3c]
push 0x2e
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x6460775c
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 0x6460792e
lea eax, [ebp - 0xc3c]
push eax
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0xc3c]
jmp 0x64607762
lea ecx, [ebp - 0xe5c]
push ecx
push 0
push 0
push 0x646012bc
push 0x37010102
jmp 0x646075a9
lea ecx, [ebp - 0x82c]
call fcn.6460e639
mov esi, eax
mov dword [ebp - 0xe58], esi
test esi, esi
je 0x64606e77
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 0x646078c8
lea ecx, [ebp - 0x214]
call fcn.64622c79
test eax, eax
je 0x64607af5
lea eax, [ebp - 0x214]
mov edx, esi
push eax
mov eax, dword [ebp - 0xe8c]
mov ecx, dword [eax]
call fcn.64611c45
test eax, eax
je 0x64607a4d
cmp word [ebp - 0xa34], 0
je 0x6460784b
lea edx, [ebp - 0x214]
lea ecx, [ebp - 0xa34]
call fcn.646114c6
test eax, eax
je 0x646079b0
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x64607867
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64607867
test dword [eax + 0x1c], 0x200
je 0x64607867
cmp byte [eax + 0x19], 2
jb 0x64607867
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64601f74
push 0x64601668
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x27
pop ecx
call fcn.64604495
jmp 0x64607867
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 0x646078ba
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x646078ba
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x646078ba
test dword [eax + 0x1c], 0x200
je 0x646078ba
cmp byte [eax + 0x19], 2
jb 0x646078ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64601f74
push 0x64601668
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x28
pop ecx
call fcn.64604495
mov ecx, esi
call fcn.6460ce29
and dword [ebp - 0xe58], 0
mov ecx, dword [ebp - 0xe4c]
test ecx, ecx
je 0x646078e2
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 0x646078fd
push ecx
call dword [sym.imp.MAPI32.dll_Ordinal_17]
xor esi, esi
mov dword [ebp - 0xe48], esi
jmp 0x646078ff
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 0x64607397
jmp 0x64606e56
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64607962
test dword [eax + 0x1c], 0x200
je 0x64607962
cmp byte [eax + 0x19], 2
jb 0x64607962
push ecx
push 0x6460130c
push dword [eax + 0x14]
mov edx, 0x64601f74
push dword [eax + 0x10]
push 0x22
pop ecx
call fcn.64604495
mov edi, 0x2cfe
jmp 0x64606e7c
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x646079a0
test dword [eax + 0x1c], 0x200
je 0x646079a0
cmp byte [eax + 0x19], 2
jb 0x646079a0
push ecx
push 0x6460130c
push dword [eax + 0x14]
mov edx, 0x64601f74
push dword [eax + 0x10]
push 0x21
pop ecx
call fcn.64604495
mov edi, 0x2cfe
mov dword [ebp - 0xe58], esi
jmp 0x64606e7c
mov eax, dword [0x64617004]
mov esi, 0x64617004
cmp eax, esi
je 0x646079f1
test dword [eax + 0x1c], 0x200
je 0x646079f1
cmp byte [eax + 0x19], 2
jb 0x646079f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64601f74
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 0x64606e7c
mov eax, dword [0x64617004]
cmp eax, esi
je 0x64606e7c
test dword [eax + 0x1c], 0x200
je 0x64606e7c
cmp byte [eax + 0x19], 2
jb 0x64606e7c
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 0x64607ae5
mov eax, dword [0x64617004]
mov esi, 0x64617004
cmp eax, esi
je 0x64607a8e
test dword [eax + 0x1c], 0x200
je 0x64607a8e
cmp byte [eax + 0x19], 2
jb 0x64607a8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64601f74
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 0x64606e7c
mov eax, dword [0x64617004]
cmp eax, esi
je 0x64606e7c
test dword [eax + 0x1c], 0x200
je 0x64606e7c
cmp byte [eax + 0x19], 2
jb 0x64606e7c
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, 0x64601f74
pop ecx
call fcn.64604495
jmp 0x64606e7c
mov edi, 0x2cf4
jmp 0x64606e7c
xor ebx, ebx
jmp 0x64606e77