Function at 0x5b91d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x79331c
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x867e6c]
xor eax, esp
mov dword [esp + 0x1f0], eax
push ebx
push esi
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0x208]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
xor ebx, ebx
mov byte [esp + 0x12], bl
cmp byte [eax + 0x39f], bl
jne 0x5b9236
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x104]
push 1
call eax
mov byte [esp + 0x12], 1
mov ecx, dword [edi + 4]
fldz
mov byte [ecx + 0x680], 1
mov edx, dword [edi + 4]
fstp dword [edx + 0x684]
mov ecx, dword [edi + 4]
push ebx
add ecx, 0x6a4
push 0x81d304
call fcn.004016e0
mov ecx, dword [edi + 4]
push ebx
add ecx, 0x688
push 0x81d304
call fcn.004016e0
push edi
push ebx
push 0x5b91c0
call fcn.006480e2
mov eax, dword [edi + 4]
mov cl, byte [eax + 0x631]
mov byte [eax + 0x631], 1
mov edx, dword [edi + 8]
add esp, 0xc
push edx
lea eax, [esp + 0x118]
push eax
mov byte [esp + 0x1b], cl
call fcn.0047ad80
mov dword [esp + 0x210], ebx
mov ecx, dword [edi + 4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov edx, dword [ecx + 0x358]
cmp dword [edx + 0x70], ebx
je 0x5b936f
mov eax, ecx
mov ecx, dword [eax + 0x358]
mov esi, dword [ecx + 0x70]
mov eax, dword [esi + 0x30]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 0x2c]
or dword [esp + 0x118], 0x10
cdq
sub eax, edx
sar ecx, 1
sub ecx, 0x4b
mov esi, 0x96
sar eax, 1
mov edx, 0x12c
push esi
sub eax, 0x96
mov dword [esp + 0x20], ecx
push edx
lea ecx, [esp + 0x11c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
call fcn.004800a0
push ebx
push ebx
lea ecx, [esp + 0x11c]
call fcn.00553aa0
lea edx, [esp + 0x44]
push edx
call fcn.00430680
mov byte [esp + 0x210], 1
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x358]
mov edx, dword [ecx + 0x70]
push ebx
push ebx
push edx
lea eax, [esp + 0x24]
lea esi, [esp + 0x50]
call fcn.00431840
mov ecx, esi
mov byte [esp + 0x210], bl
call fcn.00430870
fld dword [0x82dc70]
mov dword [esp + 0x110], 0xf
fstp dword [esp + 0x14]
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], bl
mov byte [esp + 0x210], 2
mov ecx, dword [edi + 4]
cmp byte [ecx + 0x680], bl
je 0x5b9498
mov esi, dword [sym.imp.user32.dll_PeekMessageA]
fld dword [ecx + 0x684]
fld dword [esp + 0x14]
fucompp
fnstsw ax
test ah, 0x44
jp 0x5b93f6
mov eax, dword [esp + 0xfc]
add ecx, 0x688
cmp dword [esp + 0x110], 0x10
jae 0x5b93e0
lea eax, [esp + 0xfc]
push dword [esp + 0x10c]
push eax
mov eax, dword [ecx + 0x14]
push eax
push ebx
call fcn.00402330
test eax, eax
je 0x5b9415
mov eax, dword [edi + 4]
fld dword [eax + 0x684]
push ecx
lea ecx, [eax + 0x6a4]
fstp dword [esp]
push ecx
add eax, 0x688
push eax
call fcn.005b6d80
mov eax, dword [edi + 4]
fld dword [eax + 0x684]
push 0xffffffffffffffff
add eax, 0x688
fstp dword [esp + 0x18]
push ebx
push eax
lea ecx, [esp + 0x104]
call fcn.00401530
push 1
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
call esi
test eax, eax
je 0x5b9481
jmp 0x5b9450
mov eax, dword [edi + 4]
cmp byte [eax + 0x680], bl
je 0x5b9481
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.user32.dll_TranslateMessage]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.user32.dll_DispatchMessageA]
push 1
push ebx
push ebx
push ebx
lea eax, [esp + 0x38]
push eax
call esi
test eax, eax
jne 0x5b9450
push 0x14
call dword [sym.imp.kernel32.dll_Sleep]
mov ecx, dword [edi + 4]
cmp byte [ecx + 0x680], bl
jne 0x5b93af
mov ecx, dword [edi + 4]
mov dl, byte [esp + 0x13]
mov byte [ecx + 0x631], dl
mov esi, dword [edi + 4]
add esi, 0x534
call fcn.00465af0
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x358]
cmp dword [ecx + 0x70], ebx
je 0x5b9505
mov edx, ecx
mov ecx, dword [edx + 0x70]
lea eax, [esp + 0x44]
push eax
call fcn.00430680
mov byte [esp + 0x210], 3
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea ebx, [esp + 0x11c]
lea eax, [esp + 0x4c]
call fcn.00431710
lea ecx, [esp + 0x44]
mov byte [esp + 0x210], 2
call fcn.00430870
xor ebx, ebx
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x358]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 0x5e4]
push ebx
push ebx
push edx
call dword [sym.imp.user32.dll_InvalidateRect]
cmp byte [esp + 0x12], bl
je 0x5b955e
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x104]
push ebx
call edx
mov eax, dword [edi + 4]
mov byte [eax + 0x636], bl
mov ecx, dword [edi + 4]
mov byte [ecx + 0x632], 1
mov edx, dword [edi + 4]
mov esi, edi
mov byte [edx + 0x633], bl
call fcn.005baa20
cmp dword [esp + 0x110], 0x10
jb 0x5b9578
mov eax, dword [esp + 0xfc]
push eax
call fcn.006441c7
add esp, 4
lea ecx, [esp + 0x114]
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], bl
mov dword [esp + 0x210], 0xffffffff
call fcn.0047ae60
mov al, 1
mov ecx, dword [esp + 0x208]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f0]
xor ecx, esp
call fcn.00643db8
mov esp, ebp
pop ebp
ret