Function at 0x40ec20
Capabilities:
Check for time delay via gettickcount
Create process on windows
Get common file path
Self delete

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5b1d
mov eax, dword fs:[0]
push eax
mov eax, 0x8098
call fcn.004a9180
mov eax, dword [0x51fee0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x8068]
mov dword [ebp - 0x8058], eax
call fcn.00443cd0
push str.success
lea ecx, [ebp - 0x8054]
mov dword [ebp - 4], 0
call fcn.00443c90
lea eax, [ebp - 0x8054]
push eax
push 0x4da4ec
lea ecx, [ebp - 0x8068]
mov byte [ebp - 4], 1
call fcn.00444170
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x8054]
mov byte [ebp - 4], 0
call fcn.00443ee0
call fcn.00417870
test al, al
jne 0x40ecc3
call fcn.004a8009
mov dword [0x521340], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004a8550
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x803c], eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x803c]
push str.__s_
push eax
mov byte [ebp - 4], 2
call fcn.004060e0
mov eax, dword [0x51fab0]
add esp, 0xc
mov ecx, 0x51fab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8028], eax
push 0xb
push str._echo_off_r_n
lea ecx, [ebp - 0x8028]
mov byte [ebp - 4], 3
call fcn.0040b9f0
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8024], eax
mov eax, str._GOTO_END_r_n
shr eax, 0x10
mov byte [ebp - 4], 4
mov dword [ebp - 0x8038], eax
mov ecx, str._GOTO_END_r_n
test eax, eax
jne 0x40eda7
movzx esi, cx
push eax
push esi
call fcn.00403bc0
add esp, 8
test eax, eax
je 0x40edb9
push esi
push eax
lea ecx, [ebp - 0x8024]
call fcn.004075c0
jmp 0x40edb9
push 0xb
push str._GOTO_END_r_n
lea ecx, [ebp - 0x8024]
call fcn.004097a0
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
mov byte [ebp - 4], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x802c], eax
mov edi, str.IF_NOT_EXIST
shr edi, 0x10
mov byte [ebp - 4], 6
mov eax, str.IF_NOT_EXIST
test edi, edi
jne 0x40ee08
movzx esi, ax
push edi
push esi
call fcn.00403bc0
add esp, 8
test eax, eax
je 0x40ee1a
push esi
push eax
lea ecx, [ebp - 0x802c]
call fcn.004075c0
jmp 0x40ee1a
push 0xd
push str.IF_NOT_EXIST
lea ecx, [ebp - 0x802c]
call fcn.004097a0
lea eax, [ebp - 0x803c]
push eax
lea eax, [ebp - 0x802c]
push eax
lea eax, [ebp - 0x8034]
push eax
mov byte [ebp - 4], 7
call fcn.0040b6d0
lea ecx, [ebp - 0x8024]
push ecx
push eax
lea eax, [ebp - 0x8044]
push eax
mov byte [ebp - 4], 8
call fcn.0040b6d0
add esp, 0x18
mov eax, dword [eax]
lea ecx, [ebp - 0x8028]
push dword [eax - 0xc]
mov byte [ebp - 4], 9
push eax
call fcn.0040b9f0
mov edx, dword [ebp - 0x8044]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 8
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40ee8e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x8034]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40eeb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x802c]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40eed4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x8024]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40eef7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xc
push str.SET__a_i0_r_n
lea ecx, [ebp - 0x8028]
call fcn.0040b9f0
push 9
push str.:REPEAT_r_n
lea ecx, [ebp - 0x8028]
call fcn.0040b9f0
push 0x16
push str.IF__i_100_GOTO_END_r_n
lea ecx, [ebp - 0x8028]
call fcn.0040b9f0
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x802c], eax
mov eax, 0x4dbe24
mov byte [ebp - 4], 0xa
test eax, 0xffff0000
jne 0x40ef74
movzx esi, ax
push 0
push esi
call fcn.00403bc0
add esp, 8
test eax, eax
je 0x40ef86
push esi
push eax
lea ecx, [ebp - 0x802c]
call fcn.004075c0
jmp 0x40ef86
push 2
push 0x4dbe24
lea ecx, [ebp - 0x802c]
call fcn.004097a0
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
mov byte [ebp - 4], 0xb
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8024], eax
mov eax, str.DEL
mov byte [ebp - 4], 0xc
test eax, 0xffff0000
jne 0x40efd1
movzx esi, ax
push 0
push esi
call fcn.00403bc0
add esp, 8
test eax, eax
je 0x40efe3
push esi
push eax
lea ecx, [ebp - 0x8024]
call fcn.004075c0
jmp 0x40efe3
push 4
push str.DEL
lea ecx, [ebp - 0x8024]
call fcn.004097a0
lea eax, [ebp - 0x803c]
push eax
lea eax, [ebp - 0x8024]
push eax
lea eax, [ebp - 0x8044]
push eax
mov byte [ebp - 4], 0xd
call fcn.0040b6d0
lea ecx, [ebp - 0x802c]
push ecx
push eax
lea eax, [ebp - 0x8034]
push eax
mov byte [ebp - 4], 0xe
call fcn.0040b6d0
add esp, 0x18
mov eax, dword [eax]
lea ecx, [ebp - 0x8028]
push dword [eax - 0xc]
mov byte [ebp - 4], 0xf
push eax
call fcn.0040b9f0
mov edx, dword [ebp - 0x8034]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f054
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x8044]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f077
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x8024]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xb
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f09a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x802c]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f0bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x802c], eax
cmp dword [ebp - 0x8038], 0
mov byte [ebp - 4], 0x10
jne 0x40f106
mov eax, str._GOTO_END_r_n
movzx esi, ax
push 0
push esi
call fcn.00403bc0
add esp, 8
test eax, eax
je 0x40f118
push esi
push eax
lea ecx, [ebp - 0x802c]
call fcn.004075c0
jmp 0x40f118
push 0xb
push str._GOTO_END_r_n
lea ecx, [ebp - 0x802c]
call fcn.004097a0
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
mov byte [ebp - 4], 0x11
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8024], eax
mov byte [ebp - 4], 0x12
test edi, edi
jne 0x40f15f
mov eax, str.IF_NOT_EXIST
movzx esi, ax
push edi
push esi
call fcn.00403bc0
add esp, 8
test eax, eax
je 0x40f171
push esi
push eax
lea ecx, [ebp - 0x8024]
call fcn.004075c0
jmp 0x40f171
push 0xd
push str.IF_NOT_EXIST
lea ecx, [ebp - 0x8024]
call fcn.004097a0
lea eax, [ebp - 0x803c]
push eax
lea eax, [ebp - 0x8024]
push eax
lea eax, [ebp - 0x8044]
push eax
mov byte [ebp - 4], 0x13
call fcn.0040b6d0
lea ecx, [ebp - 0x802c]
push ecx
push eax
lea eax, [ebp - 0x8034]
push eax
mov byte [ebp - 4], 0x14
call fcn.0040b6d0
add esp, 0x18
mov eax, dword [eax]
lea ecx, [ebp - 0x8028]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x15
push eax
call fcn.0040b9f0
mov edx, dword [ebp - 0x8034]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x14
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f1e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x8044]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x13
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f205
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x8024]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x11
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f228
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x802c]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f24b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x21
push str.ping_1.1.1.1__n_1__w_1000___nul_r_n
lea ecx, [ebp - 0x8028]
call fcn.0040b9f0
push 0x10
push str.SET__a_i_i_1_r_n
lea ecx, [ebp - 0x8028]
call fcn.0040b9f0
push 0xd
push str.GOTO_REPEAT_r_n
lea ecx, [ebp - 0x8028]
call fcn.0040b9f0
mov ecx, dword [0x521340]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x17
idiv ecx
cmp edx, 4
jne 0x40f305
xor esi, esi
lea esp, [esp]
call fcn.004a8009
movd xmm0, eax
cvtdq2pd xmm0, xmm0
inc esi
movsd qword [ebp + esi*8 - 0x7ff0], xmm0
cmp esi, 0x39
jb 0x40f2a0
xor ecx, ecx
mov edi, edi
mov eax, 0x38
cmp ecx, eax
jge 0x40f2ff
lea esp, [esp]
movsd xmm0, qword [ebp + eax*8 - 0x7fe8]
movsd xmm1, qword [ebp + eax*8 - 0x7ff0]
comisd xmm0, xmm1
jbe 0x40f2fa
movsd qword [ebp + eax*8 - 0x7fe8], xmm1
movsd qword [ebp + eax*8 - 0x7ff0], xmm0
dec eax
cmp eax, ecx
jg 0x40f2d0
inc ecx
cmp ecx, 0x39
jl 0x40f2c0
push 6
push str.:END_r_n
lea ecx, [ebp - 0x8028]
call fcn.0040b9f0
push 8
push str.DEL__0_r_n
lea ecx, [ebp - 0x8028]
call fcn.0040b9f0
mov edx, dword [0x521340]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0x16
idiv ecx
cmp edx, 7
jne 0x40f360
call edi
xor edx, edx
mov ecx, 0x50
div ecx
inc edx
mov dword [0x521340], edx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a8550
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
jne 0x40f435
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8024], eax
push 0x2b
push str.createDeleteSelfBatchFile_error_GetTempPath
lea ecx, [ebp - 0x8024]
mov byte [ebp - 4], 0x16
call fcn.004097a0
lea eax, [ebp - 0x8024]
push eax
lea eax, [ebp - 0x8000]
push eax
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x8054]
mov byte [ebp - 4], 0x17
call fcn.00443bf0
lea eax, [ebp - 0x8054]
push eax
push 0x4da4ec
lea ecx, [ebp - 0x8068]
mov byte [ebp - 4], 0x18
call fcn.00444170
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x8054]
mov byte [ebp - 4], 0x17
call fcn.00443ee0
cmp dword [ebp - 0x7fec], 0x10
jb 0x40f42a
push dword [ebp - 0x8000]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x8024]
jmp 0x40f83f
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8030], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x19
test eax, 0xffff0000
jne 0x40f473
movzx esi, ax
push 0
push esi
call fcn.00403bc0
add esp, 8
test eax, eax
je 0x40f4a2
push esi
push eax
lea ecx, [ebp - 0x8030]
call fcn.004075c0
jmp 0x40f4a2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f480
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x8030]
call fcn.004097a0
mov eax, dword [ebp - 0x8030]
mov byte [ebp - 4], 0x1a
mov edx, dword [eax - 0xc]
lea ecx, [edx - 1]
test ecx, ecx
js 0x40fb0f
cmp ecx, edx
jg 0x40fb0f
cmp word [eax + ecx*2], 0x5c
je 0x40f4db
push 1
push 0x4da458
lea ecx, [ebp - 0x8030]
call fcn.0040b9f0
lea eax, [ebp - 0x8034]
push eax
call fcn.00450200
push str..bat
push eax
lea eax, [ebp - 0x8038]
push eax
mov byte [ebp - 4], 0x1b
call fcn.0040b790
add esp, 0x10
mov eax, dword [eax]
lea ecx, [ebp - 0x8030]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x1c
push eax
call fcn.0040b9f0
mov edx, dword [ebp - 0x8038]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1b
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f538
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x8034]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1a
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f55b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x8028]
push eax
lea eax, [ebp - 0x8000]
push eax
call fcn.00450030
add esp, 8
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov byte [ebp - 4], 0x1d
jb 0x40f57f
mov esi, dword [esi]
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8024], eax
mov byte [ebp - 4], 0x1e
test esi, esi
je 0x40f5db
test esi, 0xffff0000
jne 0x40f5c6
movzx esi, si
push 0
push esi
call fcn.00403bc0
add esp, 8
test eax, eax
je 0x40f5ea
push esi
push eax
lea ecx, [ebp - 0x8024]
call fcn.0040be60
jmp 0x40f5ea
mov ecx, esi
lea edx, [ecx + 1]
jmp 0x40f5d0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f5d0
sub ecx, edx
jmp 0x40f5dd
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x8024]
call fcn.0040c2b0
lea eax, [ebp - 0x8024]
push eax
lea eax, [ebp - 0x8030]
push eax
mov byte [ebp - 4], 0x1f
call fcn.00434900
mov edx, dword [ebp - 0x8024]
add esp, 8
test al, al
sete byte [ebp - 0x803d]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1d
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f630
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x7fec], 0x10
mov byte [ebp - 4], 0x1a
jb 0x40f64b
push dword [ebp - 0x8000]
call fcn.004a6c2e
add esp, 4
cmp byte [ebp - 0x803d], 0
je 0x40f724
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8024], eax
mov byte [ebp - 4], 0x20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x8024]
push str.createDeleteSelfBatchFile_error_WriteToFile__d
push eax
call fcn.004060e0
lea eax, [ebp - 0x8024]
push eax
lea eax, [ebp - 0x8000]
push eax
call fcn.00450030
add esp, 0x14
push eax
lea ecx, [ebp - 0x8054]
mov byte [ebp - 4], 0x21
call fcn.00443bf0
lea eax, [ebp - 0x8054]
push eax
push 0x4da4ec
lea ecx, [ebp - 0x8068]
mov byte [ebp - 4], 0x22
call fcn.00444170
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x8054]
mov byte [ebp - 4], 0x21
call fcn.00443ee0
cmp dword [ebp - 0x7fec], 0x10
jb 0x40f6f8
push dword [ebp - 0x8000]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x8024]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1a
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f839
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40f839
call fcn.004179f0
test al, al
jne 0x40f752
mov esi, dword [0x521340]
mov ecx, 1
cmp esi, ecx
jle 0x40f74c
lea esp, [esp]
mov eax, esi
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, esi
jl 0x40f740
mov dword [0x521340], ecx
push 0x3c
lea eax, [ebp - 0x80a4]
push 0
push eax
call fcn.004a8550
mov eax, dword [ebp - 0x8030]
add esp, 0xc
mov dword [ebp - 0x80a4], 0x3c
mov dword [ebp - 0x8098], str.open
mov dword [ebp - 0x8094], eax
call fcn.004178d0
test al, al
jne 0x40f795
call edi
mov dword [0x521340], eax
lea eax, [ebp - 0x80a4]
push eax
mov dword [ebp - 0x8088], 0
mov dword [ebp - 0x80a0], 0x440
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [0x521340]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x16
idiv ecx
cmp edx, 3
jne 0x40f839
xor eax, eax
push 0x7c06
push eax
mov word [ebp - 0x7e20], ax
lea eax, [ebp - 0x7e1e]
push eax
call fcn.004a8550
add esp, 0xc
xor edi, edi
xor esi, esi
xor edx, edx
test edi, edi
je 0x40f81b
test edx, edx
je 0x40f81b
lea eax, [esi + edx]
lea ecx, [esi + edx]
mov ax, word [ebp + eax*2 - 0x7f1c]
inc ax
add ax, word [ebp + ecx*2 - 0x7e22]
mov word [ebp + ecx*2 - 0x7e20], ax
inc edx
cmp edx, 0x7e
jl 0x40f7f3
add esi, 0x7e
inc edi
cmp esi, 0x3e04
jl 0x40f7f1
movsx eax, word [ebp - 0x21a]
mov dword [0x521340], eax
mov edx, dword [ebp - 0x8030]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f85c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x8028]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f87f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x803c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f8a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x8020]
call fcn.00445f40
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
mov byte [ebp - 4], 0x23
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x8024], esi
lea eax, [ebp - 0x8068]
push eax
lea eax, [ebp - 0x8000]
push eax
lea ecx, [ebp - 0x8020]
mov byte [ebp - 4], 0x24
call fcn.00448e50
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x25
jb 0x40f8f2
mov edx, dword [edx]
sub esp, 0x18
mov edi, esp
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [edx], 0
jne 0x40f911
xor ecx, ecx
jmp 0x40f92d
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x8038], eax
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f920
sub ecx, dword [ebp - 0x8038]
push ecx
push edx
mov ecx, edi
call fcn.00401460
lea eax, [ebp - 0x8044]
push eax
call fcn.0044ff60
add esp, 0x1c
mov edx, dword [eax]
lea eax, [esi - 0x10]
lea edi, [edx - 0x10]
mov byte [ebp - 4], 0x26
mov dword [ebp - 0x8034], eax
cmp edi, eax
je 0x40fa19
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
mov dword [ebp - 0x8038], ecx
jl 0x40fa04
mov ecx, dword [edi]
cmp ecx, dword [eax]
jne 0x40fa04
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x40f99d
cmp ecx, dword [edi]
jne 0x40f99d
mov esi, edi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x40f9da
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov esi, eax
test esi, esi
jne 0x40f9b1
call fcn.0040c350
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.004a8205
add esp, 0x10
mov ecx, dword [ebp - 0x8038]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40f9f9
mov edx, dword [ebp - 0x8034]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x10
mov dword [ebp - 0x8024], esi
jmp 0x40fa19
push dword [edx - 0xc]
lea ecx, [ebp - 0x8024]
push edx
call fcn.004097a0
mov esi, dword [ebp - 0x8024]
mov edx, dword [ebp - 0x8044]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x25
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fa3c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x7fec], 0x10
mov byte [ebp - 4], 0x24
jb 0x40fa57
push dword [ebp - 0x8000]
call fcn.004a6c2e
add esp, 4
mov edi, dword [ebp - 0x8058]
mov eax, 8
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x40fa78
call fcn.0040c350
add esi, 0xfffffff0
mov dword [edi + 8], eax
mov byte [ebp - 4], 0x23
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40fa96
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x8008], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x8020], 0x4da4e4
jb 0x40fabb
push dword [ebp - 0x801c]
call fcn.004a6c2e
add esp, 4
lea ecx, [ebp - 0x8020]
mov dword [ebp - 0x8008], 0xf
mov dword [ebp - 0x800c], 0
mov byte [ebp - 0x801c], 0
call fcn.00446040
lea ecx, [ebp - 0x8068]
mov dword [ebp - 4], 0xffffffff
call fcn.00443ee0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a7434
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004044c0
int3