Function at 0x412aae
Capabilities:
Create thread

Disassembly:
mov eax, 0x42cc73
call fcn.00421904
mov eax, 0x64d0
call fcn.00420a50
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x28], 2
mov byte [edi], bl
cmp dword [0x439d80], ebx
jne 0x412ade
push 3
jmp 0x412aee
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x441fe0]
jne 0x412af4
push 4
pop eax
jmp 0x413135
push esi
lea ecx, [ebp - 0x2c28]
call fcn.0041dbe0
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x4c], esi
cmp dword [esi], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], eax
je 0x412b4c
lea edi, [esi + 0xf41d]
push edi
call fcn.00420cc0
test eax, eax
pop ecx
jbe 0x412b34
push edi
push dword [esi]
call fcn.0040a0a7
pop ecx
pop ecx
push dword [esi]
call fcn.00409386
pop ecx
push 0xffffffffffffffff
push ebx
push 0xb1
push dword [esi]
call dword [sym.imp.USER32.dll_PostMessageA]
push dword [ebp + 0x10]
lea edi, [esi + 4]
push edi
push dword [ebp + 0xc]
call fcn.004208c0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov byte [ebp + 0xb], bl
mov dword [ebp - 0x1c], 2
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], eax
mov byte [eax], bl
lea eax, [ebp - 0x50]
push eax
push dword [esi + 0xf008]
push edi
call fcn.0040d77f
mov edi, eax
add esp, 0x18
cmp edi, ebx
mov dword [ebp - 0x2c], edi
je 0x413122
push ebx
push 1
push 0x240c
mov dword [ebp - 0x24], ebx
push dword [0x441fe8]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, edi
cmp dword [eax], ebx
je 0x412c67
lea eax, [esi + 0xf00c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
mov ecx, dword [0x439d80]
push eax
push dword [0x432fa4]
push dword [esi]
push dword [edi]
push dword [ebp - 0x18]
call fcn.0040e397
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x412c50
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x27ff
push ecx
lea ecx, [ebp - 0x64dc]
push ecx
push eax
call fcn.0040e0c4
add esp, 0xc
cmp eax, 1
mov dword [ebp - 0x30], eax
jne 0x412c50
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x64dc], bl
mov al, byte [esi + 0xf51d]
push eax
lea eax, [ebp - 0x2c28]
push eax
lea eax, [ebp - 0x3cdc]
push eax
lea eax, [ebp - 0x64dc]
push eax
lea eax, [esi + 0xf01d]
push eax
call fcn.004132de
add esp, 0x14
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x412c5e
cmp eax, 1
je 0x412c5e
cmp eax, 4
je 0x412c5e
inc dword [ebp - 0x10]
add edi, 4
cmp dword [edi], ebx
jne 0x412bc4
cmp dword [ebp - 0x20], ebx
jne 0x412d00
lea ecx, [ebp - 0x24]
lea eax, [esi + 0xf00c]
push ecx
lea ecx, [esi + 0xf51e]
push dword [0x432fa4]
mov dword [ebp - 0x18], eax
push dword [esi]
push ecx
mov ecx, dword [0x439d80]
push eax
call fcn.0040e397
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x412d00
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x27ff
push eax
lea eax, [ebp - 0x64dc]
push eax
push dword [ebp - 0x20]
call fcn.0040e0c4
add esp, 0xc
cmp eax, 1
mov dword [ebp - 0x30], eax
jne 0x412d00
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x64dc], bl
mov al, byte [esi + 0xf51d]
push eax
lea eax, [ebp - 0x2c28]
push eax
lea eax, [ebp - 0x3cdc]
push eax
lea eax, [ebp - 0x64dc]
push eax
lea eax, [esi + 0xf01d]
push eax
call fcn.004132de
add esp, 0x14
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x412cfc
cmp eax, 1
jne 0x412d00
mov byte [ebp + 0xb], 1
push ebx
push 2
push 0x240c
push dword [0x441fe8]
call dword [sym.imp.USER32.dll_PostMessageA]
cmp byte [ebp + 0xb], bl
je 0x412d39
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push 0x412961
push ebx
push ebx
call fcn.0042281e
add esp, 0x18
cmp eax, ebx
je 0x412d39
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
jle 0x412e31
mov eax, dword [ebp - 0x2c]
xor edi, edi
mov dword [ebp + 8], edi
cmp dword [eax], ebx
je 0x412d59
add eax, 4
inc edi
cmp dword [eax], ebx
jne 0x412d4e
mov dword [ebp + 8], edi
lea ecx, [ebp - 0x2c28]
call fcn.0041dfff
mov dword [ebp - 0x34], eax
xor ecx, ecx
cmp dword [eax], ebx
je 0x412d73
inc ecx
add eax, 4
jmp 0x412d69
cmp dword [ebp - 0x10], edi
jge 0x412e31
cmp ecx, edi
jne 0x412e31
lea eax, [edi*4 + 4]
push eax
call fcn.00421c57
mov edi, eax
pop ecx
cmp edi, ebx
je 0x412e21
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x3c], 1
mov ecx, dword [edx + eax*4]
mov dword [edi], ecx
jle 0x412dd7
mov dword [ebp - 0x10], edx
lea edx, [eax + 1]
lea ecx, [edi + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x10]
add dword [ebp - 0x10], 4
mov edx, dword [edx]
mov dword [ecx], edx
add ecx, 4
dec dword [ebp - 0x14]
jne 0x412dc1
mov edx, dword [ebp - 0x34]
lea ecx, [eax + 1]
cmp ecx, dword [ebp + 8]
jge 0x412e08
mov eax, dword [ebp - 0x3c]
lea eax, [edi + eax*4]
mov dword [ebp - 0x14], eax
lea eax, [edx + ecx*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
sub eax, ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
add dword [ebp - 0x10], 4
add dword [ebp - 0x14], 4
mov ecx, dword [ecx]
dec eax
mov dword [edx], ecx
jne 0x412df3
mov eax, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x2c28]
mov dword [edi + eax*4], ebx
call fcn.0041e0b6
push edi
call fcn.00421dfa
pop ecx
push ebx
push ebx
push 2
push 8
mov ecx, 0x437fe0
call fcn.0041c996
push dword [ebp - 0x2c]
call fcn.00421dfa
cmp dword [ebp - 0x20], ebx
pop ecx
jne 0x412ecf
mov eax, dword [esi]
cmp eax, ebx
je 0x412eb5
cmp dword [ebp - 0x24], 0x20007197
jne 0x412e69
push dword [ebp + 0x10]
lea eax, [ebp - 0x2c28]
push dword [ebp + 0xc]
push eax
call fcn.00406adc
add esp, 0xc
jmp 0x412eb5
push dword [ebp + 0x10]
cmp dword [ebp - 0x24], 0x20001006
push dword [ebp + 0xc]
jne 0x412e96
add esi, 0xf01d
push esi
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c28]
push 0x439d84
push eax
call fcn.00406910
jmp 0x412eb2
add esi, 0xf01d
push esi
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c28]
push 0x439d84
push eax
call fcn.004060a2
add esp, 0x1c
lea eax, [ebp - 0x4c]
mov ecx, 0x437fe0
push eax
push dword [ebp - 0x24]
push 2
push 0x66
call fcn.0041c996
jmp 0x413122
cmp dword [ebp - 0x30], ebx
je 0x4130a5
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
sub eax, ebx
je 0x412ef6
dec eax
je 0x412eed
mov dword [ebp - 0x28], 2
jmp 0x412ef9
mov dword [ebp - 0x28], 1
jmp 0x412ef9
mov dword [ebp - 0x28], ebx
mov eax, dword [esi]
cmp eax, ebx
jne 0x412f3f
mov esi, 0x439d68
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x4421c0]
cmp byte [0x4421c4], bl
jne 0x412f2c
push ebx
push ebx
push 0x2406
push dword [0x441fe8]
call dword [sym.imp.USER32.dll_PostMessageA]
push esi
mov byte [0x4421c4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x41309c
cmp ecx, ebx
jne 0x412fff
cmp dword [0x44221c], ebx
je 0x412fa5
lea eax, [ebp - 0x58]
push eax
call fcn.00411afc
add esi, 0xf01d
mov dword [esp], 0x100
lea eax, [ebp - 0x158]
push esi
push eax
call fcn.004208c0
lea eax, [ebp - 0x158]
mov byte [ebp - 0x59], bl
push eax
call fcn.00420cc0
add esp, 0x10
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x268]
mov dword [ebp - 0x54], 1
push eax
lea eax, [ebp - 0x15c]
push eax
call dword [0x44221c]
mov esi, 0x439d68
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x4421c0]
cmp byte [0x4421c4], bl
jne 0x412fd2
push ebx
push ebx
push 0x2406
push dword [0x441fe8]
call dword [sym.imp.USER32.dll_PostMessageA]
push esi
mov byte [0x4421c4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 0x10]
lea eax, [ebp - 0x3c2c]
push eax
push dword [ebp + 0xc]
call fcn.004208c0
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov byte [eax], bl
jmp 0x41309c
cmp ecx, 1
jne 0x413069
lea edi, [esi + 0xf01d]
push edi
call fcn.00413143
pop ecx
mov esi, 0x439d68
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x4421c0]
cmp byte [0x4421c4], bl
jne 0x41303e
push ebx
push ebx
push 0x2406
push dword [0x441fe8]
call dword [sym.imp.USER32.dll_PostMessageA]
push esi
mov byte [0x4421c4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 0x10]
lea eax, [ebp - 0x2c28]
push dword [ebp + 0xc]
push edi
push 0x439d84
push eax
call fcn.00406b32
add esp, 0x14
jmp 0x41309c
cmp ecx, 4
je 0x412fa5
cmp ecx, 3
je 0x41309c
push dword [ebp + 0x10]
add esi, 0xf01d
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c28]
push 0x439d84
push eax
call fcn.00406604
add esp, 0x1c
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x1c]
jmp 0x41310b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
cmp eax, ebx
je 0x413106
push dword [ebp + 0x10]
cmp edi, 0x2ee2
push dword [ebp + 0xc]
jne 0x4130e2
add esi, 0xf01d
push esi
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c28]
push 0x439d84
push eax
call fcn.0040678a
add esp, 0x1c
jmp 0x413106
add esi, 0xf01d
push esi
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c28]
push 0x439d84
push eax
call fcn.00406604
add esp, 0x1c
mov edi, 0x2000100b
lea eax, [ebp - 0x4c]
push eax
push edi
push 2
push 0x66
mov ecx, 0x437fe0
call fcn.0041c996
push dword [ebp - 0x20]
call dword [0x442508]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c28]
call fcn.0041dcb8
mov eax, dword [ebp - 0x28]
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret