Function at 0x459c6b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x20]
push ebx
push ebx
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x48], 0x32
mov dword [esi + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push dword [esi + 0x4c]
mov ecx, esi
push dword [esi + 0x48]
mov dword [esi + 0x50], eax
call fcn.00458f40
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], edi
call fcn.00458a6c
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x459cf1
push 0x31
pop eax
push dword [ebp + 0x10]
mov ecx, 0x1131
jmp 0x459e99
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x459d06
push 0x31
pop eax
mov ecx, 0x1008
push ebx
jmp 0x459e99
cmp eax, ebx
mov dword [ebp + 0xc], ebx
jbe 0x459d91
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x10]
shl edi, 2
lea ecx, [ebp + 0x14]
add eax, edi
push ecx
mov ecx, dword [eax]
call fcn.0045c987
cmp eax, 0x105
jne 0x459d62
cmp dword [ebp + 0x14], ebx
jne 0x459d62
mov eax, dword [esi + 0x10]
mov eax, dword [edi + eax]
push dword [ebp + 0x18]
mov dword [eax + 0x4c], 0x101
mov eax, dword [esi + 0x10]
push dword [ebp + 8]
add eax, edi
mov ecx, dword [eax]
call fcn.0045cca3
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x459db9
mov dword [esi + 0x4c], 0x1134
jmp 0x459d76
mov eax, dword [esi + 0x10]
mov dword [esi + 0x4c], 0x1133
mov eax, dword [edi + eax]
mov dword [eax + 0x4c], 0x100
push dword [ebp + 0xc]
mov ecx, esi
push dword [esi + 0x4c]
push dword [esi + 0x48]
call fcn.00458f40
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 8]
jb 0x459d11
push ebx
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x459de0
cmp dword [ebp + 0x24], ebx
je 0x459e74
push esi
call fcn.004595e4
push dword [esi + 0x4c]
push eax
push 0x31
jmp 0x459e63
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x10]
shl eax, 2
mov ecx, dword [eax + ecx]
mov dword [ecx + 0x4c], 0x107
mov ecx, dword [esi + 0x10]
mov eax, dword [eax + ecx]
mov dword [eax + 0x50], 0x1001
mov dword [esi + 0x4c], 0x1132
xor eax, eax
cmp dword [ebp + 0x10], ebx
setne al
add eax, 0x34
mov dword [esi + 0x48], eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 0x1032
add eax, 0x100
xor edi, edi
cmp dword [esi + 8], ebx
mov dword [esi + 0x4c], eax
jbe 0x459e44
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x10], edi
mov eax, dword [eax + edi*4]
cmp dword [eax + 0x4c], 0x100
je 0x459e3e
xor ecx, ecx
cmp dword [ebp + 0x10], ebx
sete cl
lea ecx, [ecx*8 + 0x1001]
mov dword [eax + 0x4c], ecx
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x4c]
mov ecx, esi
push dword [esi + 0x48]
call fcn.00458f40
inc edi
cmp edi, dword [esi + 8]
jb 0x459e09
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x50], ebx
call fcn.00458a94
push 0x31
pop eax
push edi
push dword [esi + 0x4c]
push eax
mov dword [esi + 0x48], eax
mov ecx, esi
call fcn.00458f40
mov eax, dword [esi + 0x48]
pop edi
pop esi
pop ebx
leave
ret 0x20
lea eax, [ebp + 8]
push eax
push ebx
push esi
push fcn.004595e4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x30], eax
jne 0x459e6a
push 0x31
pop eax
push dword [ebp + 0xc]
mov ecx, 0x1007
mov dword [esi + 0x4c], ecx
push ecx
jmp 0x459e5f