Function at 0x459610
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x48b310]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
and edx, 1
je 0x45963f
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
lea edx, [ecx*8 + 0x74]
push edx
call fcn.00459a50
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x459662
xor eax, eax
jmp 0x459a3d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x50]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [edx]
imul ecx, dword [eax + 4]
mov edx, dword [ebp - 4]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
sub ecx, 2
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x10], ecx
push 0
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call fcn.00459ab0
add esp, 0x10
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x14], 0
jne 0x4596e4
jmp 0x459978
push 0
mov eax, dword [ebp - 4]
add eax, 0x54
push eax
push 0
call dword [0x4bb784]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x459703
jmp 0x459978
push 2
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x54]
mov ecx, dword [ecx]
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x45972c
jmp 0x459978
mov dword [ebp - 0x20], 0
jmp 0x45973e
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 3
jge 0x459770
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 0x2c], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
cmp dword [ecx + eax*4 + 0x2c], 0
jne 0x45976e
jmp 0x459978
jmp 0x459735
push 0x12
push 0
lea edx, [ebp - 0x18]
push edx
call fcn.00415330
add esp, 0xc
mov word [ebp - 0x18], 1
mov word [ebp - 0x16], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
mov word [ebp - 0xa], 0x10
movzx eax, word [ebp - 0xa]
movzx edx, word [ebp - 0x16]
imul eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov word [ebp - 0xc], ax
movzx eax, word [ebp - 0xc]
imul eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push 0x24
push 0
lea ecx, [ebp - 0x48]
push ecx
call fcn.00415330
add esp, 0xc
mov dword [ebp - 0x48], 0x24
mov dword [ebp - 0x44], 0x18120
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x38], ecx
push 0
mov edx, dword [ebp - 4]
add edx, 0x5c
push edx
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x54]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
mov edx, dword [edx]
push ecx
call dword [edx + 0xc]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x459818
jmp 0x459978
mov eax, dword [ebp - 4]
add eax, 0x60
push eax
push 0x486f78
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x5c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x5c]
mov edx, dword [edx]
push ecx
call dword [edx]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x459843
jmp 0x459978
mov eax, dword [ebp - 4]
add eax, 0x6c
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x64], eax
mov dword [ebp - 0x20], 0
jmp 0x459861
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 4]
jge 0x45989c
mov edx, dword [ebp - 0x20]
add edx, 1
mov eax, dword [ebp - 4]
imul edx, dword [eax]
sub edx, 1
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x64]
mov ecx, dword [ebp - 0x20]
mov dword [eax + ecx*8], edx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x64]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2c]
mov dword [eax + ecx*8 + 4], edx
jmp 0x459858
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x64]
mov edx, dword [ebp - 0x20]
mov dword [ecx + edx*8], 0xffffffff
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x64]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dword [ecx + edx*8 + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x64]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
add ecx, 1
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x60]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x60]
mov eax, dword [eax]
push edx
call dword [eax + 0xc]
cmp dword [ebp - 0x4c], 0
jge 0x4598ed
jmp 0x459978
lea ecx, [ebp - 0x1c]
push ecx
push 4
mov edx, dword [ebp - 4]
push edx
push 0x459e20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x38], 0
jne 0x459917
jmp 0x459978
mov eax, dword [ebp - 4]
mov dword [eax + 0x68], 0
mov ecx, dword [ebp - 4]
add ecx, 0x3c
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, dword [ebp - 4]
push edx
push 0xffffffffffffffeb
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
cmp dword [section..sseg], 0
jne 0x459963
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], 0
jmp 0x459970
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 4]
jmp 0x459a3d
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x45998e
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
jmp 0x4599a0
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 3
jge 0x4599c6
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
cmp dword [eax + edx*4 + 0x2c], 0
je 0x4599c4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x459997
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x14], 0
je 0x4599de
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
call fcn.00459cc0
add esp, 4
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x5c], 0
je 0x4599f9
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x5c]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x5c]
mov eax, dword [eax]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x58], 0
je 0x459a14
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x58]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x58]
mov eax, dword [eax]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x54], 0
je 0x459a2f
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x54]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x54]
mov eax, dword [eax]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00459a70
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x24]
call fcn.00415724
mov esp, ebp
pop ebp
ret