Function at 0x40c530
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], 0x5b1f6b29
jmp 0x40c550
mov dword [ebp - 0x14], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x14]
cmp eax, 0x9b2618f6
jg 0x40c580
cmp eax, 0x8c59f233
jne 0x40c550
mov al, byte [ebp - 0xa]
test al, al
mov eax, 0x24215481
jne 0x40c544
mov eax, 0x5d789a23
jmp 0x40c544
cmp eax, 0x9fcdce24
jg 0x40c610
cmp eax, 0x9b2618f7
jne 0x40c550
mov eax, 4
call fcn.00416c10
mov ecx, esp
mov eax, 4
call fcn.00416c10
mov dword [ebp - 0x10], esp
mov dword [ecx], esi
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
lea ecx, [eax + 0x2c]
sub esp, 0x18
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x40c0e0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00417b83
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
sete byte [ebp - 0xa]
mov dword [ebp - 0x14], 0x8c59f233
jmp 0x40c550
cmp eax, 0xa74466f3
jg 0x40c62e
cmp eax, 0x9fcdce25
jne 0x40c550
mov dword [ebp - 0x14], 0x4c041e60
jmp 0x40c550
cmp eax, 0x5d789a22
jg 0x40c6f8
cmp eax, 0x5b1f6b28
jg 0x40c70f
cmp eax, 0x59ffae81
jg 0x40c726
cmp eax, 0x51d67f37
jg 0x40c756
cmp eax, 0x4c4d936b
jg 0x40c76d
cmp eax, 0x4c041e5f
jg 0x40c784
cmp eax, 0x2edc000c
jg 0x40c7a5
cmp eax, 0x24215480
jg 0x40c7bc
cmp eax, 0x237c4ea8
jg 0x40c7d3
cmp eax, 0x1f548156
jg 0x40c7ea
cmp eax, 0xe9759b21
jg 0x40c7fa
cmp eax, 0xdf2c7a27
jg 0x40c81e
cmp eax, 0xdd27b514
jg 0x40c835
cmp eax, 0xdb41dde3
jg 0x40c85d
cmp eax, 0xbc9f6d8d
jg 0x40c885
cmp eax, 0xa74466f4
je 0x40c89c
cmp eax, 0xa7501603
jne 0x40c901
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x4c041e60
jmp 0x40c550
cmp eax, 0x5d789a23
jne 0x40c550
mov dword [ebp - 0x14], 0x59ffae82
jmp 0x40c550
cmp eax, 0x5b1f6b29
jne 0x40c550
mov dword [ebp - 0x14], 0x9b2618f7
jmp 0x40c550
cmp eax, 0x59ffae82
jne 0x40c550
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], 0xdf2c7a28
jmp 0x40c550
cmp eax, 0x51d67f38
jne 0x40c550
mov dword [ebp - 0x14], 0x9fcdce25
jmp 0x40c550
cmp eax, 0x4c4d936c
jne 0x40c550
mov dword [ebp - 0x14], 0x51d67f38
jmp 0x40c550
cmp eax, 0x4c041e60
jne 0x40c550
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
setne byte [ebp - 9]
mov dword [ebp - 0x14], 0xe9759b22
jmp 0x40c550
cmp eax, 0x2edc000d
jne 0x40c550
mov dword [ebp - 0x14], 0xdb41dde4
jmp 0x40c550
cmp eax, 0x24215481
jne 0x40c550
mov dword [ebp - 0x14], 0x4c4d936c
jmp 0x40c550
cmp eax, 0x237c4ea9
jne 0x40c550
mov dword [ebp - 0x14], 0x4c4d936c
jmp 0x40c550
cmp eax, 0x1f548157
jne 0x40c550
jmp 0x40c931
cmp eax, 0xe9759b22
jne 0x40c550
mov al, byte [ebp - 9]
test al, al
mov eax, 0x2edc000d
jne 0x40c816
mov eax, 0x1f548157
mov dword [ebp - 0x14], eax
jmp 0x40c550
cmp eax, 0xdf2c7a28
jne 0x40c550
mov dword [ebp - 0x14], 0x9fcdce25
jmp 0x40c550
cmp eax, 0xdd27b515
jne 0x40c550
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0xdb41dde4
jmp 0x40c550
cmp eax, 0xdb41dde4
jne 0x40c550
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0xbc9f6d8e
jmp 0x40c550
cmp eax, 0xbc9f6d8e
jne 0x40c550
mov dword [ebp - 0x14], 0x1f548157
jmp 0x40c550
mov eax, 4
call fcn.00416c10
mov ecx, esp
mov eax, 4
call fcn.00416c10
mov edi, esp
mov dword [ecx], esi
mov dword [edi], 0
mov eax, dword [ecx]
lea ecx, [eax + 0x2c]
sub esp, 0x18
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x40c0e0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00417b83
add esp, 0x18
mov dword [edi], eax
mov dword [ebp - 0x14], 0x9b2618f7
jmp 0x40c550
cmp eax, 0xbb3ce0a5
jne 0x40c550
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], 0x59ffae82
jmp 0x40c550
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret