Function at 0x405e40
Capabilities:
Contain obfuscated stackstrings
Delete file
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459484
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x558
mov eax, dword [0x47b008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x17c], eax
call fcn.00402420
mov eax, dword [eax + 0x10]
test eax, eax
je 0x406f5c
mov edi, dword [esi]
mov edx, dword [esi + 4]
cmp edi, edx
je 0x406f5c
sub edx, edi
mov eax, 0x4ec4ec4f
imul edx
xor ecx, ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x406f5c
lea eax, [edi + 0x64]
cmp byte [eax], 0
jne 0x405ee9
inc ecx
add eax, 0x68
cmp ecx, esi
jb 0x405ed7
jmp 0x406f5c
mov esi, dword [ebp - 0x174]
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.00407700
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0
mov word [ebp - 0x24], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c5d0
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x28]
mov byte [ebp - 0x44], 0
test eax, eax
jne 0x405f48
xor al, al
jmp 0x405f66
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405f60
cmp eax, 0x80
je 0x405f60
xor al, al
jmp 0x405f66
mov byte [ebp - 0x24], 1
mov al, 1
mov byte [ebp - 0x159], al
mov byte [ebp - 0x44], al
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x15a]
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 0x15a], 0
push eax
push esi
call fcn.00406fa0
test al, al
jne 0x405fcd
cmp byte [ebp - 0x15a], al
je 0x405fcd
mov ecx, esi
call fcn.00402360
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
xor edi, edi
mov byte [ebp - 0x15a], al
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x164], edi
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x406850
xor ecx, ecx
mov dword [ebp - 0x160], ecx
nop dword [eax]
cmp byte [ecx + esi + 0x64], 0
lea eax, [ecx + esi]
mov dword [ebp - 0x168], eax
je 0x4063e0
mov edi, dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0x178], ecx
mov eax, 0x4ec4ec4f
mov ecx, dword [ebp - 0x1c]
xor esi, esi
sub ecx, edi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4060ab
xor eax, eax
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x168]
add edi, eax
call fcn.00402360
push eax
mov ecx, edi
call fcn.00402360
push eax
call fcn.0043fde1
add esp, 8
test eax, eax
je 0x4060a9
mov ecx, dword [ebp - 0x1c]
mov eax, 0x4ec4ec4f
mov edi, dword [ebp - 0x20]
sub ecx, edi
inc dword [ebp - 0x178]
add dword [ebp - 0x16c], 0x68
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x16c]
jb 0x406051
jmp 0x4060ab
mov esi, edi
test esi, esi
jne 0x40614c
lea ecx, [ebp - 0x158]
call fcn.00404f10
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], eax
je 0x4060ee
push eax
push 0x68
call fcn.00401990
add esp, 8
lea ecx, [ebp - 0x158]
push ecx
mov ecx, eax
call fcn.00405c70
mov edx, dword [ebp - 0x1c]
add edx, 0x68
mov dword [ebp - 0x1c], edx
jmp 0x406101
lea ecx, [ebp - 0x158]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.004086c0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov eax, 0x4ec4ec4f
sub edx, ecx
imul edx
lea esi, [ecx - 0x68]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x68
add esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x128]
call fcn.00402370
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x140]
call fcn.00402370
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x158]
call fcn.00402370
push esi
lea ecx, [ebp - 0xf0]
call fcn.004035d0
mov byte [ebp - 4], 8
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0xd8]
call fcn.004035d0
mov byte [ebp - 4], 9
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0xc0]
call fcn.004035d0
mov byte [ebp - 4], 0xa
mov eax, dword [esi + 0x48]
mov dword [ebp - 0xa8], eax
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0xa4], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0xa0], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x9c], eax
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x98], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x94], eax
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x90], eax
mov al, byte [esi + 0x64]
mov byte [ebp - 0x8c], al
mov byte [ebp - 4], 0xb
mov edi, dword [ebp - 0x168]
cmp esi, edi
je 0x4061f4
mov ecx, edi
call fcn.00402420
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4061e9
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00402450
lea ecx, [edi + 0x18]
lea eax, [esi + 0x18]
cmp eax, ecx
je 0x406219
call fcn.00402420
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40620d
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [esi + 0x18]
call fcn.00402450
lea ecx, [edi + 0x30]
lea eax, [esi + 0x30]
cmp eax, ecx
je 0x40623e
call fcn.00402420
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x406232
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [esi + 0x30]
call fcn.00402450
mov eax, dword [edi + 0x48]
mov ecx, esi
mov dword [esi + 0x48], eax
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov eax, dword [edi + 0x58]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
mov al, byte [edi + 0x64]
mov byte [esi + 0x64], al
call fcn.00402420
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x168], eax
call fcn.00402420
mov dword [ebp - 0x16c], eax
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x406296
mov ecx, dword [eax]
mov eax, dword [ebp - 0x168]
mov edi, eax
cmp dword [eax + 0x14], 8
jb 0x4062a6
mov edi, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x16c]
cmp edx, dword [eax + 0x10]
jne 0x406392
test edx, edx
je 0x4062d5
sub edi, ecx
nop
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x406392
add ecx, 2
sub edx, 1
jne 0x4062c0
lea ecx, [esi + 0x18]
call fcn.00402420
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x168], eax
call fcn.00402420
mov dword [ebp - 0x16c], eax
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4062fe
mov ecx, dword [eax]
mov eax, dword [ebp - 0x168]
mov edi, eax
cmp dword [eax + 0x14], 8
jb 0x40630e
mov edi, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x16c]
cmp edx, dword [eax + 0x10]
jne 0x406392
test edx, edx
je 0x406333
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x406392
add ecx, 2
sub edx, 1
jne 0x406322
mov eax, dword [esi + 0x48]
cmp eax, dword [ebp - 0xa8]
jne 0x406392
mov eax, dword [esi + 0x4c]
cmp eax, dword [ebp - 0xa4]
jne 0x406392
mov eax, dword [esi + 0x50]
cmp eax, dword [ebp - 0xa0]
jne 0x406392
mov eax, dword [esi + 0x54]
cmp eax, dword [ebp - 0x9c]
jne 0x406392
mov eax, dword [esi + 0x58]
cmp eax, dword [ebp - 0x98]
jne 0x406392
mov eax, dword [esi + 0x5c]
cmp eax, dword [ebp - 0x94]
jne 0x406392
lea edx, [ebp - 0xc0]
lea ecx, [esi + 0x30]
call fcn.004082b0
test al, al
jne 0x406392
mov eax, dword [esi + 0x60]
cmp eax, dword [ebp - 0x90]
je 0x40639d
mov byte [ebp - 0x15a], 1
mov byte [esi + 0x64], 1
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xc0]
call fcn.00402370
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xd8]
call fcn.00402370
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xf0]
call fcn.00402370
mov eax, dword [ebp - 0x170]
mov ecx, dword [ebp - 0x160]
mov edi, dword [ebp - 0x164]
mov esi, dword [eax]
jmp 0x4063e6
mov eax, dword [ebp - 0x170]
add ecx, 0x68
inc edi
mov dword [ebp - 0x160], ecx
mov ecx, dword [eax + 4]
mov eax, 0x4ec4ec4f
sub ecx, esi
mov dword [ebp - 0x164], edi
imul ecx
mov ecx, dword [ebp - 0x160]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x406010
cmp byte [ebp - 0x15a], 0
je 0x406850
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
je 0x406850
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0xf
mov eax, 0x4ec4ec4f
mov esi, dword [ebp - 0x1c]
mov ecx, esi
mov edi, dword [ebp - 0x20]
sub ecx, edi
imul ecx
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x164], eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x164], eax
jbe 0x4064e5
mov dword [ebp - 0x168], 0x418937
call fcn.004019a0
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.00402640
mov ecx, dword [ebp - 0x164]
add esp, 8
mov eax, dword [eax]
cmp ecx, eax
ja 0x406f7e
push ecx
lea ecx, [ebp - 0x34]
call fcn.00407dd0
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x16c], 0
sub ecx, edi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4067e0
xor ecx, ecx
mov dword [ebp - 0x170], ecx
mov eax, dword [ecx + edi + 0x60]
lea esi, [ecx + edi]
mov dword [ebp - 0x164], esi
cmp eax, 1
je 0x406532
cmp eax, 2
je 0x406532
cmp eax, 3
jne 0x4067a6
push 0x280
xorps xmm0, xmm0
mov dword [ebp - 0x568], 0
lea eax, [ebp - 0x564]
movlpd qword [ebp - 0x19c], xmm0
push 0
push eax
movlpd qword [ebp - 0x194], xmm0
movlpd qword [ebp - 0x18c], xmm0
mov dword [ebp - 0x184], 0
call fcn.0043dca0
add esp, 0xc
lea eax, [ebp - 0x2e4]
push 0x100
push 0
push eax
call fcn.0043dca0
add esp, 0xc
lea eax, [ebp - 0x1e4]
push 0x48
push 0
push eax
call fcn.0043dca0
mov eax, dword [ebp - 0x30]
add esp, 0xc
cmp dword [ebp - 0x2c], eax
je 0x4065d9
push eax
push 0x3e8
call fcn.00401990
mov ecx, 0xfa
lea esi, [ebp - 0x568]
mov edi, eax
add esp, 8
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x30]
add edx, 0x3e8
mov dword [ebp - 0x30], edx
mov esi, dword [ebp - 0x164]
jmp 0x4065ec
lea ecx, [ebp - 0x568]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.004084d0
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov eax, 0x10624dd3
sub edx, ecx
add ecx, 0xfffffc18
imul edx
push 0x280
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3e8
add eax, ecx
push 0
mov dword [ebp - 0x160], eax
lea edi, [eax + 4]
mov dword [eax], 0x23ab45db
push edi
call fcn.0043dca0
mov eax, dword [ebp - 0x160]
add esp, 0xc
add eax, 0x284
mov dword [ebp - 0x164], eax
push 0x100
push 0
push eax
call fcn.0043dca0
mov eax, dword [ebp - 0x160]
add esp, 0xc
add eax, 0x384
mov dword [ebp - 0x168], eax
push 0x48
push 0
push eax
call fcn.0043dca0
add esp, 0xc
mov ecx, esi
call fcn.00402420
mov ecx, esi
mov eax, dword [eax + 0x10]
cmp eax, 0x13f
ja 0x4066a2
call fcn.00402360
mov ecx, eax
sub edi, ecx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edi + ecx - 2], ax
test ax, ax
jne 0x406690
jmp 0x4066b6
push 0x13e
call fcn.00402360
push eax
push edi
call fcn.004401d6
add esp, 0xc
lea ecx, [esi + 0x18]
call fcn.00402420
lea ecx, [esi + 0x18]
mov eax, dword [eax + 0x10]
cmp eax, 0x7f
ja 0x4066f2
call fcn.00402360
mov edx, dword [ebp - 0x164]
mov ecx, eax
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4066e0
jmp 0x406708
push 0x7e
call fcn.00402360
push eax
push dword [ebp - 0x164]
call fcn.004401d6
add esp, 0xc
lea ecx, [esi + 0x30]
call fcn.00402420
lea ecx, [esi + 0x30]
mov eax, dword [eax + 0x10]
cmp eax, 0x23
ja 0x406742
call fcn.00402360
mov edx, dword [ebp - 0x168]
mov ecx, eax
sub edx, ecx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x406730
jmp 0x406758
push 0x23
call fcn.00402360
push eax
push dword [ebp - 0x168]
call fcn.004401d6
add esp, 0xc
mov ecx, dword [ebp - 0x160]
mov eax, dword [esi + 0x48]
mov dword [ecx + 0x3cc], eax
mov eax, dword [esi + 0x4c]
mov dword [ecx + 0x3d0], eax
mov eax, dword [esi + 0x50]
mov dword [ecx + 0x3d4], eax
mov eax, dword [esi + 0x54]
mov dword [ecx + 0x3d8], eax
mov eax, dword [esi + 0x58]
mov dword [ecx + 0x3dc], eax
mov eax, dword [esi + 0x5c]
mov dword [ecx + 0x3e0], eax
mov eax, dword [esi + 0x60]
mov dword [ecx + 0x3e4], eax
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x170]
mov esi, dword [ebp - 0x16c]
add ecx, 0x68
mov dword [ebp - 0x170], ecx
mov eax, 0x4ec4ec4f
mov ecx, dword [ebp - 0x1c]
inc esi
sub ecx, edi
mov dword [ebp - 0x16c], esi
imul ecx
mov ecx, dword [ebp - 0x170]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x406512
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x30]
jne 0x4068ae
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x406850
mov ecx, dword [ebp - 0x2c]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x406831
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f83
push ecx
push esi
call fcn.0043c039
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x406f05
mov edx, dword [ebp - 0x1c]
push ecx
call fcn.00408a70
mov ecx, dword [ebp - 0x18]
mov eax, 0x4ec4ec4f
mov esi, dword [ebp - 0x20]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x68
mov eax, esi
cmp ecx, 0x1000
jb 0x406ee6
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f88
jmp 0x406ee6
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 0x10
mov ecx, 1
movaps xmm2, xmmword [0x471830]
xor eax, eax
mov dword [ebp - 0x6c], 0x2d2d4352
mov dword [ebp - 0x68], 0x35343332
mov dword [ebp - 0x64], 0x61534350
mov dword [ebp - 0x60], 0x2d302e32
mov dword [ebp - 0x5c], 0x2d736843
mov dword [ebp - 0x58], 0x61435243
mov dword [ebp - 0x54], 0x38313031
mov dword [ebp - 0x50], 0x35313032
movd xmm3, ecx
movd xmm0, eax
pshufd xmm1, xmm0, 0
movups xmm0, xmmword [ebp + eax*4 - 0x6c]
paddd xmm1, xmm2
pslld xmm0, xmm3
paddd xmm1, xmm0
movups xmmword [ebp + eax*4 - 0x6c], xmm1
add eax, 4
cmp eax, 8
jl 0x406920
mov ecx, dword [ebp - 0x30]
mov eax, 0x10624dd3
mov esi, dword [ebp - 0x34]
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x40]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3e8
push ecx
lea ecx, [ebp - 0x6c]
push eax
push esi
call fcn.00410960
test al, al
jne 0x406a1b
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x4069c9
mov edx, dword [ebp - 0x38]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4069aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f8d
push edx
push ecx
call fcn.0043c039
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x406850
mov ecx, dword [ebp - 0x2c]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x406831
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f92
jmp 0x406831
mov esi, dword [ebp - 0x40]
cmp esi, dword [ebp - 0x3c]
jne 0x406a55
mov byte [ebp - 4], 0xf
test esi, esi
je 0x4069c9
mov ecx, dword [ebp - 0x38]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x406a4e
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f97
push ecx
push esi
jmp 0x4069ac
push ecx
push 0x80
push 4
push ecx
mov ecx, dword [ebp - 0x174]
push 0
call fcn.00402360
mov edx, 0x40000000
mov ecx, eax
call fcn.0040ab00
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
je 0x406a85
test edi, edi
jne 0x406aec
push ecx
mov ecx, dword [ebp - 0x174]
push 0x46e6ec
call fcn.004045f0
cmp eax, 0xffffffff
je 0x406aec
mov ecx, dword [ebp - 0x174]
push eax
push 0
lea eax, [ebp - 0x64]
push eax
call fcn.00404500
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x64]
call fcn.00404240
push ecx
push 0x80
push 4
push ecx
mov ecx, dword [ebp - 0x174]
push 0
call fcn.00402360
mov edx, 0x40000000
mov ecx, eax
call fcn.0040ab00
add esp, 0x14
mov edi, eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x64]
call fcn.00402370
cmp edi, 0xffffffff
je 0x406eae
test edi, edi
je 0x406eae
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x4c]
push 0
push ecx
sub eax, esi
mov dword [ebp - 0x4c], 0
push eax
push esi
push edi
mov dword [ebp - 0x164], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0x164]
cmp dword [ebp - 0x4c], eax
jne 0x406d53
mov edx, dword [ebp - 0x17c]
lea eax, [ebp - 0x20]
cmp edx, eax
je 0x406b79
mov ecx, dword [edx]
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edx + 8]
mov dword [edx + 8], eax
mov dword [ebp - 0x18], ecx
mov edi, dword [edx]
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov eax, 0x4ec4ec4f
mov ecx, dword [edx + 4]
sub ecx, edi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x406bd7
xor esi, esi
nop dword [eax]
mov eax, dword [ebp - 0x17c]
lea esi, [esi + 0x68]
inc dword [ebp - 0x160]
mov byte [esi + edi - 4], 0
mov ecx, dword [eax + 4]
mov edi, dword [eax]
sub ecx, edi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x160], eax
jb 0x406ba0
mov esi, dword [ebp - 0x40]
mov byte [ebp - 4], 0xf
test esi, esi
je 0x406c21
mov ecx, dword [ebp - 0x38]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x406c02
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f92
push ecx
push esi
call fcn.0043c039
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x406c85
mov ecx, dword [ebp - 0x2c]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x406c66
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f92
push ecx
push esi
call fcn.0043c039
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x406cf5
mov edx, dword [ebp - 0x1c]
push ecx
call fcn.00408a70
mov ecx, dword [ebp - 0x18]
mov eax, 0x4ec4ec4f
mov esi, dword [ebp - 0x20]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x68
mov eax, esi
cmp ecx, 0x1000
jb 0x406cd6
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f92
push ecx
push esi
call fcn.0043c039
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
cmp byte [ebp - 0x159], 0
je 0x406d14
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x406d10
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x406d34
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 0
mov word [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00402370
mov al, 1
jmp 0x406f5e
mov byte [ebp - 4], 0xf
test esi, esi
je 0x406d9d
mov ecx, dword [ebp - 0x38]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x406d7e
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f92
push ecx
push esi
call fcn.0043c039
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x406e01
mov ecx, dword [ebp - 0x2c]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x406de2
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f92
push ecx
push esi
call fcn.0043c039
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x406e71
mov edx, dword [ebp - 0x1c]
push ecx
call fcn.00408a70
mov ecx, dword [ebp - 0x18]
mov eax, 0x4ec4ec4f
mov esi, dword [ebp - 0x20]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x68
mov eax, esi
cmp ecx, 0x1000
jb 0x406e52
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f92
push ecx
push esi
call fcn.0043c039
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
cmp byte [ebp - 0x159], 0
je 0x406e90
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x406e8c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x406f44
push eax
call edi
jmp 0x406f3d
mov byte [ebp - 4], 0xf
test esi, esi
je 0x4069c9
mov ecx, dword [ebp - 0x38]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x406a4e
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406a4e
jmp 0x406f92
push ecx
push esi
call fcn.0043c039
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
cmp byte [ebp - 0x159], 0
je 0x406f24
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x406f20
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x406f44
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 0
mov word [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00402370
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043bff8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.00403700
call fcn.00440186
call fcn.00440186
call fcn.00440186
call fcn.00440186
call fcn.00440186
int3