Function at 0x459284
Capabilities:
Create thread

Disassembly:
push 0x74
mov eax, 0x46327c
call fcn.0045cea5
mov esi, ecx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x45952d
cmp dword [ebp + 0xc], ebx
je 0x45952d
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x45952d
cmp dword [ebp + 0x14], ebx
je 0x45952d
cmp dword [ebp + 0x18], ebx
je 0x45952d
cmp dword [ebp + 0x24], ebx
je 0x45952d
mov byte [esi + 0x78], bl
mov byte [esi + 0x79], bl
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
call fcn.00458c6a
mov eax, dword [ebp + 8]
push dword [ebp + 0x18]
lea ecx, [esi + 0xc]
mov dword [esi + 8], eax
call fcn.00404494
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x24]
push 0x48c1ac
lea ecx, [ebp + 0x10]
mov dword [esi + 0x48], edi
mov dword [esi + 0x10], eax
call fcn.00405f70
push 0xa
pop eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x10]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004584ea
mov dword [ebp + 0x24], eax
shr eax, 0x1f
not al
and al, 1
mov byte [ebp + 0xf], al
je 0x459394
mov ecx, esi
call fcn.00458544
mov edi, SysReAllocString
test edi, eax
mov dword [ebp + 0x24], eax
jne 0x459399
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0x14]
call fcn.004585d5
mov dword [ebp + 0x24], eax
jmp 0x459399
mov edi, SysReAllocString
test dword [ebp + 0x24], edi
jne 0x4593c4
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x18]
call fcn.00458952
test edi, eax
pop ecx
pop ecx
mov dword [ebp + 0x24], eax
jne 0x4593c4
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x48]
call fcn.00458952
pop ecx
pop ecx
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x24]
and eax, edi
mov dword [ebp + 0x14], eax
jne 0x45944b
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
push str.HubDefs
push 1
call dword [eax + 0x18]
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
mov edi, str.CurDefs
push edi
push 1
call dword [eax + 0x18]
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx]
push str.HubDefs
push 1
call dword [eax + 0x18]
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx]
push edi
push 1
call dword [eax + 0x18]
push dword [ebp + 0x1c]
call fcn.00452918
test al, al
pop ecx
jne 0x45942c
push dword [ebp + 0x1c]
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x1c]
push dword [ebp + 0x1c]
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x1c]
push dword [ebp + 0x20]
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
push 2
call dword [eax + 0x20]
push dword [ebp + 0x20]
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx]
push 2
call dword [eax + 0x20]
mov edi, SysReAllocString
cmp dword [ebp + 0x14], ebx
jne 0x45945a
mov ecx, esi
call fcn.004589d8
mov dword [ebp + 0x24], eax
test dword [ebp + 0x24], edi
je 0x45950d
mov ecx, esi
mov dword [esi + 0x10], ebx
call fcn.00458c6a
cmp byte [ebp + 0xf], bl
je 0x45950d
push 0x48c1ac
lea ecx, [ebp - 0x64]
call fcn.00405f70
mov eax, dword [ebp + 8]
push dword [ebp + 0x18]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
mov dword [ebp - 0x80], eax
call fcn.00404494
movzx eax, byte [ebp + 0xf]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0x1c]
push eax
push ebx
lea eax, [ebp - 0x80]
push eax
push 0x458e53
push ebx
push ebx
call dword [sym.imp.MSVCR80.dll__beginthreadex]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
add esp, 0x18
jmp 0x4594f5
cmp dword [ebp - 0x54], 0x465
je 0x459502
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x58]
push eax
call esi
test eax, eax
jne 0x4594d8
mov ecx, dword [ebp - 0x64]
add ecx, 0xfffffff0
call fcn.00402703
lea ecx, [ebp - 0x24]
call fcn.00456d97
lea ecx, [ebp - 0x3c]
call fcn.00456d97
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00402703
mov eax, dword [ebp + 0x24]
jmp 0x45955f
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x45955a
test byte [eax + 0x1c], 1
je 0x45955a
cmp byte [eax + 0x19], 2
jb 0x45955a
push 0x47538c
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
mov eax, 0x80010203
call fcn.0045cf7d
ret 0x20