Function at 0x1001d20e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ecx
push esi
push edi
cmp byte [ebp + 8], bl
je 0x1001d503
mov dword [ebp - 8], 8
mov dword [ebp + 8], 0x981ff29a
mov dword [ebp + 8], ebx
jmp 0x1001d24c
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0xa4], 0xfffffffe
inc dword [ebp + 8]
cmp dword [ebp + 8], 3
jl 0x1001d23b
push 2
mov dword [ebp - 8], ebx
pop edi
jmp 0x1001d2d2
mov dword [ebp - 4], 0x3c69aed2
mov dword [ebp - 4], edi
cmp dword [ebp - 4], ebx
jl 0x1001d2cf
mov dword [ebp + 8], ebx
jmp 0x1001d27c
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x3c], 0xffffffff
inc dword [ebp + 8]
cmp dword [ebp + 8], edi
jl 0x1001d26e
mov dword [ebp + 8], ebx
jmp 0x1001d294
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x74], 0xfffffffd
inc dword [ebp + 8]
cmp dword [ebp + 8], edi
jl 0x1001d286
mov dword [ebp - 0x38], edi
cmp dword [ebp - 0x38], ebx
jl 0x1001d2c4
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov eax, dword [ebp + eax*4 - 0xa4]
cmp eax, 0xc751
setge cl
xor eax, eax
test ecx, ecx
setns al
mov dword [ebp - 0x70], eax
dec dword [ebp - 0x38]
jns 0x1001d2a1
mov eax, dword [ebp - 0x70]
mov dword [ebp + 8], eax
dec dword [ebp - 4]
jns 0x1001d269
inc dword [ebp - 8]
cmp dword [ebp - 8], edi
jle 0x1001d25a
mov dword [ebp + 8], 9
mov dword [ebp + 8], ebx
jmp 0x1001d2f4
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0xb4], 0xb9b5
inc dword [ebp + 8]
cmp dword [ebp + 8], 4
jl 0x1001d2e3
mov dword [ebp + 8], ebx
jmp 0x1001d30e
mov eax, dword [ebp + 8]
cmp dword [ebp + eax*4 - 0xb4], ebx
jne 0x1001d314
inc dword [ebp + 8]
cmp dword [ebp + 8], 3
jle 0x1001d2ff
push 1
pop esi
cmp byte [edx], bl
je 0x1001d459
mov dword [ebp + 8], edi
mov dword [ebp - 0x28], 0xffff
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x24], ebx
mov dword [ebp + 8], 0xa67d
mov dword [ebp + 8], ebx
jmp 0x1001d354
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x18], 0xa8e
inc dword [ebp + 8]
cmp dword [ebp + 8], esi
jl 0x1001d346
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], ebx
jl 0x1001d42c
mov dword [ebp - 0x10], 0xd947597a
mov dword [ebp - 0x1c], 0xc9d94031
mov dword [ebp - 4], 0x4186
mov dword [ebp - 0x10], 0x9b8842b4
mov dword [ebp - 8], ebx
jmp 0x1001d394
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x58], 0xa4d9a54e
inc dword [ebp - 8]
cmp dword [ebp - 8], esi
jl 0x1001d386
mov eax, dword [ebp + 8]
xor edx, edx
mov eax, dword [ebp + eax*4 - 0x18]
sub eax, 0xcac3
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [ebp + eax*4 - 0x18]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
mov eax, dword [ebp - 0x18]
setg dl
xor ecx, ecx
cmp edx, eax
setne cl
cmp ecx, 0xffff
sbb eax, eax
xor edx, edx
lea ecx, [eax + 0xa]
mov eax, dword [ebp + 8]
cmp ecx, eax
mov eax, dword [ebp + 8]
setg dl
cmp dword [ebp + eax*4 - 0x18], edx
je 0x1001d3f3
mov eax, dword [ebp - 4]
mov eax, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + eax*4 - 0x18]
test eax, eax
sete cl
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x28]
sub ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
mov dword [ebp - 0x10], ecx
dec dword [ebp + 8]
jns 0x1001d365
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24], 0xf2b6
push esi
push 0x136f
push ebx
sub eax, 0xbccb
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov dword [ebp - 0xc], 0x8901f2c
mov dword [ebp + 8], ebx
jmp 0x1001d46f
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x6c], esi
inc dword [ebp + 8]
cmp dword [ebp + 8], edi
jl 0x1001d465
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0xc], ebx
jl 0x1001d8b9
mov dword [ebp - 8], 0xfffffffc
mov dword [ebp + 8], ebx
jmp 0x1001d49a
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x54], 0xffffffff
inc dword [ebp + 8]
cmp dword [ebp + 8], 3
jl 0x1001d48c
mov eax, dword [ebp - 0x50]
mov eax, dword [ebp - 0x68]
mov eax, dword [ebp - 0x50]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x54]
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x54], ebx
je 0x1001d4bd
mov eax, dword [ebp - 0x50]
mov eax, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0xc]
cmp eax, ecx
mov eax, dword [ebp - 0x50]
setl dl
xor ecx, ecx
cmp edx, eax
setg cl
mov dword [ebp - 8], ecx
mov dword [ebp - 8], esi
cmp dword [ebp - 8], ebx
jl 0x1001d4f9
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], bl
je 0x1001d4f4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec dword [ebp - 8]
jns 0x1001d4e5
dec dword [ebp - 0xc]
jns 0x1001d480
jmp 0x1001d8b9
mov dword [ebp - 0xc], 0xe76f5020
mov dword [ebp - 0x14], 0xd4309642
mov dword [ebp - 4], 0xfffffffa
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x2c], 8
mov dword [ebp + 8], ebx
jmp 0x1001d53c
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x98], 0xdc85
inc dword [ebp + 8]
cmp dword [ebp + 8], 4
jl 0x1001d52b
push 2
pop edi
push 1
mov dword [ebp - 0xc], ebx
pop esi
jmp 0x1001d694
mov dword [ebp + 8], esi
mov edx, esi
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x20], 0x79a20b28
mov dword [ebp - 0x24], esi
mov eax, dword [ebp + 8]
cmp dword [ebp + 8], ebx
jne 0x1001d570
mov edx, ebx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 0x8c]
setge cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp + 8]
setne dl
xor ecx, ecx
cmp edx, eax
setge cl
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
inc eax
sub eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x14], ebx
jne 0x1001d5bf
mov dword [ebp - 8], 5
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x98], 0x1540
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 0xc]
dec eax
imul eax, dword [ebp - 4]
test eax, eax
je 0x1001d616
mov dword [ebp - 0x20], esi
mov dword [ebp + 8], 0xd06de21e
mov dword [ebp + 8], 4
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x14], eax
jmp 0x1001d691
mov dword [ebp + 8], ebx
jmp 0x1001d629
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x7c], 0xfffffffb
inc dword [ebp + 8]
cmp dword [ebp + 8], edi
jl 0x1001d61b
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], bl
je 0x1001d64a
push ebx
push 0x2144
push ebx
push ebx
push 0x129
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [ebp - 0x78], ebx
jne 0x1001d663
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 4]
je 0x1001d65a
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0x78]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov eax, dword [ebp + eax*4 - 0x98]
cmp eax, esi
setg cl
xor edx, edx
imul ecx, dword [ebp - 4]
cmp ecx, 5
setne dl
imul eax, dword [ebp - 0x2c], 0xf7c1
xor ecx, ecx
cmp eax, edx
setl cl
mov dword [ebp - 4], ecx
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jle 0x1001d550
mov eax, dword [ebp - 0x1c]
cmp byte [eax], bl
je 0x1001d6ab
call dword [sym.imp.USER32.dll_EndMenu]
mov dword [ebp + 8], 0x92758e92
mov dword [ebp - 0x28], 0xfffffff6
mov dword [ebp - 0x2c], 0x88a9
mov dword [ebp - 0x1c], 8
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], ebx
mov dword [ebp + 8], esi
mov dword [ebp + 8], 0xb4ff
push 3
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp + 8], ebx
pop ecx
jmp 0x1001d6f8
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x48], 0x4e1a
inc dword [ebp + 8]
cmp dword [ebp + 8], ecx
jl 0x1001d6ea
mov dword [ebp + 8], ebx
jmp 0x1001d70c
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x64], ebx
inc dword [ebp + 8]
cmp dword [ebp + 8], ecx
jl 0x1001d702
cmp dword [ebp - 0x44], ebx
je 0x1001d77e
mov dword [ebp - 0x10], esi
mov dword [ebp + 8], ebx
jmp 0x1001d72f
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x88], 0x8edfe012
inc dword [ebp + 8]
cmp dword [ebp + 8], ecx
jl 0x1001d71e
mov eax, dword [ebp - 0x44]
xor edx, edx
mov eax, dword [ebp - 0x44]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x88]
mov eax, dword [ebp - 0x84]
mov eax, dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x28], esi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
cmp eax, ecx
setne dl
cmp edx, 0xda62
je 0x1001d770
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x1c], esi
jmp 0x1001d8b9
mov dword [ebp - 0xc], 9
mov dword [ebp - 4], 0x941993e3
mov dword [ebp - 0x14], 0x120b879b
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 6
mov dword [ebp - 0x24], esi
mov dword [ebp + 8], edi
cmp dword [ebp + 8], ebx
jl 0x1001d8b9
mov dword [ebp - 4], ebx
jmp 0x1001d7c6
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x34], 0xffffffff
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jl 0x1001d7b8
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov eax, dword [ebp - 0x40]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x44]
mov eax, dword [ebp - 0x34]
cmp eax, 0xfffffff9
mov eax, dword [ebp - 0x30]
setl cl
xor ebx, ebx
cmp ecx, eax
mov eax, dword [ebp + 8]
sete bl
xor edx, edx
mov dword [ebp + eax*4 - 0x64], 0xe1580eb6
mov eax, dword [ebp - 0x1c]
cmp ebx, eax
mov eax, dword [ebp - 0x30]
setg dl
xor ecx, ecx
cmp edx, eax
setge cl
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
sub ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x28]
sub eax, 0xe1580eb6
neg eax
sbb eax, eax
xor ebx, ebx
inc eax
cmp eax, dword [ebp - 8]
jl 0x1001d841
mov eax, dword [ebp + 8]
cmp dword [ebp + eax*4 - 0x64], ebx
mov eax, esi
jne 0x1001d843
mov eax, ebx
mov ecx, dword [ebp - 8]
xor edx, edx
add ecx, eax
mov eax, dword [ebp - 0x30]
cmp ecx, eax
setg dl
neg edx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x20]
neg eax
sbb eax, eax
cmp eax, dword [ebp - 0x1c]
je 0x1001d872
cmp dword [ebp - 0x5c], ebx
jne 0x1001d872
mov eax, ebx
cmp dword [ebp - 0x60], ebx
je 0x1001d874
mov eax, esi
add dword [ebp - 0x10], eax
xor edx, edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
cmp eax, ecx
mov eax, dword [ebp - 0x24]
setg dl
sub edx, eax
sub edx, 0x18828597
mov dword [ebp - 0x20], edx
dec dword [ebp + 8]
jns 0x1001d7b3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret