Function at 0x402de0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
and dword [0x434f3c], 0xfffffff7
mov ecx, 0x434fc0
mov dword [ebp - 0xc], 0
call fcn.004017f0
test al, al
jne 0x402e31
cmp byte [0x434ee0], al
jne 0x402e18
cmp dword [0x434ee4], 0
mov eax, 8
je 0x402e1d
mov eax, 0x13
push eax
push 0
call fcn.0040be50
add esp, 8
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
cmp dword [0x435094], 2
je 0x402e4b
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00403f30
add esp, 4
test eax, eax
je 0x402e28
push ebx
push esi
push 0x48
call fcn.0041e2e2
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x402ea2
mov dword [esi + 8], 0
lea ecx, [esi + 0xc]
mov dword [esi], 0x42aafc
mov dword [esi + 4], 0x42ab20
call fcn.00416190
lea ecx, [esi + 0x24]
mov dword [esi + 0x20], 0
call fcn.00416190
mov dword [esi + 0x1c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
jmp 0x402ea9
mov dword [ebp - 0x18], 0
push str.ExtractMaskInclude
call fcn.00402cc0
push str.ExtractMaskExclude
call fcn.00402cc0
mov eax, dword [0x434f3c]
mov edx, str.ExtractMaskInclude
and eax, 0x20
mov ebx, edx
mov ecx, str.ExtractMaskExclude
cmovne ebx, ecx
test eax, eax
push 0
cmovne ecx, edx
mov dword [ebp - 0x14], ebx
push ebx
mov dword [ebp - 0x10], ecx
call fcn.00405640
add esp, 0x10
test eax, eax
jne 0x402f5d
lea ecx, [ebp - 0x5c]
call fcn.00416190
lea ecx, [ebp - 0x50]
call fcn.00416190
push ebx
lea ecx, [ebp - 0x5c]
call fcn.00416300
push 0x42aaf8
lea ecx, [ebp - 0x50]
call fcn.00416300
push 0x18
call fcn.0041e2e2
mov esi, eax
add esp, 4
test esi, esi
je 0x402f3d
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
call fcn.004160d0
lea eax, [ebp - 0x50]
push eax
lea ecx, [esi + 0xc]
call fcn.004160d0
jmp 0x402f3f
xor esi, esi
push esi
mov ecx, 0x43504c
call fcn.00402c40
push dword [ebp - 0x50]
call fcn.0041e329
push dword [ebp - 0x5c]
call fcn.0041e329
add esp, 8
push edi
mov ecx, 0x434fc0
call fcn.00401490
xor ecx, ecx
mov ebx, eax
mov edx, 4
mov dword [ebp - 0x20], ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041e320
add esp, 4
mov dword [ebp - 8], eax
xor edi, edi
xor esi, esi
test ebx, ebx
je 0x403118
xor eax, eax
lea edx, [ebp - 0x54]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [0x434fc8]
push edx
push 3
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jne 0x403107
cmp word [ebp - 0x54], 8
jne 0x403107
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
call fcn.00416130
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
call fcn.00405640
add esp, 8
test eax, eax
je 0x40304e
inc dword [ebp - 4]
lea ecx, [ebp - 0x38]
push eax
call fcn.00416130
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00417b50
push dword [ebp - 0x38]
mov bl, al
call fcn.0041e329
add esp, 0xc
test bl, bl
je 0x402fd5
push str.ExtractMaskInclude
push dword [ebp - 0x10]
call fcn.00416960
add esp, 8
test eax, eax
jne 0x403047
push esi
call fcn.00409420
add esp, 4
test al, al
jne 0x403047
push esi
call fcn.00409460
add esp, 4
test al, al
jne 0x403047
mov eax, dword [ebp - 8]
mov dword [eax + edi*4], esi
inc edi
mov ebx, 1
jmp 0x403051
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x4030f9
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 4]
push eax
push ebx
call fcn.00405640
add esp, 8
test eax, eax
je 0x4030ce
inc dword [ebp - 4]
lea ecx, [ebp - 0x44]
push eax
call fcn.00416130
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00417b50
push dword [ebp - 0x44]
mov bl, al
call fcn.0041e329
add esp, 0xc
test bl, bl
je 0x403060
push str.ExtractMaskInclude
push dword [ebp - 0x14]
call fcn.00416960
add esp, 8
test eax, eax
jne 0x4030f9
push esi
call fcn.00409420
add esp, 4
test al, al
jne 0x4030f9
push esi
call fcn.00409460
add esp, 4
test al, al
jne 0x4030f9
jmp 0x4030f2
push str.ExtractMaskExclude
push ebx
call fcn.00416960
add esp, 8
test eax, eax
jne 0x4030f9
push str.ExtractMaskInclude
push esi
call fcn.00403730
add esp, 8
test eax, eax
je 0x4030f9
mov ebx, dword [ebp - 8]
mov dword [ebx + edi*4], esi
inc edi
push dword [ebp - 0x2c]
call fcn.0041e329
mov ebx, dword [ebp - 0x20]
add esp, 4
lea ecx, [ebp - 0x54]
call fcn.00417370
inc esi
cmp esi, ebx
jb 0x402f95
mov ebx, dword [ebp - 0x18]
test edi, edi
mov eax, dword [ebp - 8]
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x30], eax
pop edi
je 0x40327c
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0xc]
push dword [eax]
call fcn.00416300
mov eax, dword [ebx + 0x10]
cmp dword [ebx + 0x14], eax
jne 0x40314d
lea ecx, [ebx + 0xc]
call fcn.004168a0
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
mov edx, 0x5c
mov word [ecx + eax*2], dx
inc eax
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [ebx + 0x10], eax
lea eax, [ebp - 0x20]
push eax
push edx
push ebx
push 0x403320
push edx
push edx
mov dword [0x434efc], ebx
mov dword [0x434f04], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x434f00], eax
test eax, eax
je 0x4031ac
cmp dword [0x434f38], 2
je 0x40319e
call fcn.00409ff0
mov eax, dword [0x434f00]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x434f00]
mov ecx, dword [0x434f04]
mov dword [0x435080], 0
test ecx, ecx
je 0x40320d
lea eax, [ecx - 1]
cmp eax, 0x6a
ja case.0x4031cf.4
movzx eax, byte [eax + 0x4032a8]
jmp dword [eax*4 + 0x403294]
push 0x11
push 0
call fcn.0040be50
add esp, 8
jmp case.0x4031cf.104
push 0x12
push 0
call fcn.0040be50
add esp, 8
jmp case.0x4031cf.104
push 0x13
push 0
call fcn.0040be50
add esp, 8
jmp case.0x4031cf.104
push ecx
push 0x14
push 0
jmp 0x40326d
xor ecx, ecx
mov dword [ebp - 0xc], ecx
cmp dword [0x435084], ecx
jne case.0x4031cf.104
test eax, eax
je 0x403239
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp - 0xc]
test eax, eax
je 0x403239
test ecx, ecx
jne 0x403239
mov dword [ebp - 0xc], ecx
jmp 0x40327c
mov eax, ecx
and eax, 0x80070000
cmp eax, 0x80070000
je 0x40324e
push ecx
push 0x21
push 0
jmp 0x40326d
movzx eax, cx
cmp eax, 0xe
jne 0x40325f
cmp dword [0x434f3c], 0xffffffff
je case.0x4031cf.104
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0xc]
push 0x22
push 1
call fcn.0040be50
add esp, 0xc
mov dword [ebp - 0xc], 0x80004005
push 4
push dword [ebp - 8]
call fcn.0041e312
mov eax, dword [ebp - 0xc]
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret