Function at 0x403390
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47765c
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x49606c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0xa4], 0
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4033f0
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [ebp - 0xa0]
call fcn.004076e0
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x58]
call fcn.004055b0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x44]
mov eax, edx
mov ecx, dword [ebp - 0x48]
sub eax, ecx
cmp eax, 0x11
jb 0x403460
cmp edx, 8
lea esi, [ebp - 0x58]
push 0x22
cmovae esi, dword [ebp - 0x58]
lea edi, [ecx + 0x11]
push str.extensions.cache
mov dword [ebp - 0x48], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004307e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x40347e
push 0x11
push str.extensions.cache
mov byte [ebp - 0xa4], 0
lea ecx, [ebp - 0x58]
push dword [ebp - 0xa4]
push 0x11
call fcn.0040a3c0
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x40]
call fcn.004055b0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 7
jb 0x4034cb
cmp edx, 8
lea esi, [ebp - 0x40]
push 0xe
cmovae esi, dword [ebp - 0x40]
lea edi, [ecx + 7]
push str.kstemp
mov dword [ebp - 0x30], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004307e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4034e9
push 7
push str.kstemp
mov byte [ebp - 0xa4], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0xa4]
push 7
call fcn.0040a3c0
cmp dword [ebp - 0x44], 8
lea esi, [ebp - 0x58]
mov dword [ebp - 0x160], 0x48a560
cmovae esi, dword [ebp - 0x58]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x150]
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0xa4], 1
push eax
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xf0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0xf4], 0x58
movlpd qword [ebp - 0x158], xmm0
call fcn.00408e30
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x160]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x164], eax
lea ecx, [ebp - 0x150]
call fcn.004084b0
push ecx
push 1
push esi
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 6
call fcn.004083e0
test eax, eax
jne 0x4035ba
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x160]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402df0
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
mov dword [ebp - 0x210], 0x48a570
cmovae esi, dword [ebp - 0x40]
push ecx
mov byte [ebp - 4], 8
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 0xa4], 5
mov dword [ebp - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x1ac], 0x60
call fcn.00408e30
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x210]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x214], eax
lea ecx, [ebp - 0x20c]
call fcn.004084b0
push ecx
push 2
push esi
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 0xb
call fcn.004083e0
test eax, eax
jne 0x403680
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x210]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402df0
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0x154], 6
jne 0x403a9c
mov eax, dword [ebp - 0x210]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x204], 6
jne 0x403a9c
xor esi, esi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x160]
mov byte [ebp - 4], 0xd
push 0xa
add ecx, edx
call fcn.00409060
movzx eax, al
lea edx, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x160]
call fcn.0040ac90
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x4037fc
nop word [eax + eax]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push str.rel_keyscrambler_qfx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004304d0
add esp, 8
test eax, eax
je 0x403797
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push str.needs_uninstall
cmovae eax, dword [ebp - 0x28]
mov esi, 1
push eax
call fcn.004304d0
add esp, 8
test eax, eax
jne 0x403797
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x210]
call fcn.0040ae50
mov eax, dword [ebp - 0x18]
add esp, 4
lea ecx, [eax - 1]
cmp eax, ecx
jbe 0x403c7d
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp byte [eax + ecx], 9
je 0x403785
lea ecx, [ebp - 0x210]
call fcn.00409940
mov edx, str.needs_uninstall
lea ecx, [ebp - 0x210]
call fcn.00409690
jmp 0x4037b3
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x210]
call fcn.0040ae50
add esp, 4
mov edx, 0x489fb8
mov ecx, eax
call fcn.00409690
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x160]
push 0xa
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00409060
movzx eax, al
lea edx, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x160]
call fcn.0040ac90
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x403700
lea ecx, [ebp - 0x150]
call fcn.00408320
test eax, eax
jne 0x403836
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x160]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402df0
lea ecx, [ebp - 0x20c]
call fcn.00408320
test eax, eax
jne 0x403870
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x210]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402df0
test esi, esi
je 0x403a52
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
push 1
cmovae ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x88]
call fcn.004055b0
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x74]
mov eax, edx
mov ecx, dword [ebp - 0x78]
sub eax, ecx
cmp eax, 0xf
jb 0x4038ee
cmp edx, 8
lea esi, [ebp - 0x88]
push 0x1e
cmovae esi, dword [ebp - 0x88]
lea edi, [ecx + 0xf]
push 0x489fbc
mov dword [ebp - 0x78], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004307e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x40390f
push 0xf
push 0x489fbc
mov byte [ebp - 0xa4], 0
lea ecx, [ebp - 0x88]
push dword [ebp - 0xa4]
push 0xf
call fcn.0040a3c0
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x70]
call fcn.004055b0
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x5c]
mov eax, edx
mov ecx, dword [ebp - 0x60]
sub eax, ecx
cmp eax, 9
jb 0x403974
cmp edx, 8
lea esi, [ebp - 0x70]
push 0x12
cmovae esi, dword [ebp - 0x70]
lea edi, [ecx + 9]
push str..autoreg
mov dword [ebp - 0x60], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004307e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x403992
push 9
push str..autoreg
mov byte [ebp - 0xa4], 0
lea ecx, [ebp - 0x70]
push dword [ebp - 0xa4]
push 9
call fcn.0040a3c0
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push 0
cmovae eax, dword [ebp - 0x70]
push 0
push 2
push 0
push 7
push 0x1f01ff
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4039bf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x4039fd
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4039f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403c82
push edx
push ecx
call fcn.0042e698
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 8
jb 0x403a52
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403a48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403c87
push edx
push ecx
call fcn.0042e698
add esp, 8
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x403a9c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403a92
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403c8c
push edx
push ecx
call fcn.0042e698
add esp, 8
mov eax, dword [ebp - 0x210]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x214], eax
lea ecx, [ebp - 0x20c]
call fcn.00406790
mov eax, dword [ebp - 0x210]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x214], eax
lea eax, [ebp - 0x1a8]
mov byte [ebp - 4], 0x10
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00412e38
mov eax, dword [ebp - 0x160]
add esp, 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x164], eax
lea ecx, [ebp - 0x150]
call fcn.00406790
mov eax, dword [ebp - 0x160]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x164], eax
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 0x11
push eax
mov dword [ebp - 0xf0], vtable.std::ios_base.0
call fcn.00412e38
mov edx, dword [ebp - 0x2c]
add esp, 4
cmp edx, 8
jb 0x403bc2
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403bb8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403c91
push edx
push ecx
call fcn.0042e698
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x403c10
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403c06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403c96
push edx
push ecx
call fcn.0042e698
add esp, 8
mov edx, dword [ebp - 0x8c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x403c60
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403c56
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403c9b
push edx
push ecx
call fcn.0042e698
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e658
mov esp, ebp
pop ebp
ret
call fcn.00408a90
call fcn.0043b1c8
call fcn.0043b1c8
call fcn.0043b1c8
call fcn.0043b1c8
call fcn.0043b1c8
call fcn.0043b1c8
int3