Function at 0x586ed0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60bdad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
push eax
lea ecx, [edi + 0xf8]
push esi
mov dword [esp + 0x68], edi
mov dword [esp + 0x34], ecx
call fcn.00584df0
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x3c], 0
jne 0x586f33
xor eax, eax
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebx + 0x10]
push 0x619bc8
push ecx
call fcn.00419950
add esp, 8
test al, al
je 0x586f4f
mov eax, dword [ebp + 0x10]
xor esi, esi
jmp 0x586f79
mov eax, dword [esi]
mov ecx, dword [esi + 4]
xor esi, esi
mov dword [esp + 0xa4], eax
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa8], ecx
lea eax, [esp + 0x9c]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0xc8], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0xcc], ecx
lea ecx, [esp + 0xc8]
push ecx
mov dword [esp + 0xd4], edx
mov dword [esp + 0xd8], eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x586f1a
lea edx, [esp + 0x64]
mov dword [esp + 0x64], esi
lea esi, [ebx + 8]
add edi, 0xa8
push edx
push esi
mov ecx, edi
mov dword [esp + 0xbc], esi
mov dword [esp + 0x100], edi
call fcn.00584050
test al, al
je 0x587025
cmp byte [ebx + 0xc], 0
jne 0x58701d
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0xc8]
add eax, 4
push ecx
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
je 0x58701d
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
mov ecx, edi
call fcn.00586590
mov edi, dword [ebx + 0x34]
xor eax, eax
test edi, edi
setne al
mov dword [esp + 0x78], edi
test eax, eax
jne 0x587041
push 0x80004005
call fcn.00401480
mov edx, dword [esp + 0xd0]
sub edx, dword [esp + 0xc8]
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
sub eax, dword [esp + 0xcc]
fdiv dword [ebx + 0x14]
mov dword [esp + 0x30], eax
fstp dword [esp + 0x44]
fild dword [esp + 0x30]
fdiv dword [ebx + 0x18]
fstp dword [esp + 0x48]
fild dword [esp + 0xc8]
fstp dword [esp + 0x30]
fld dword [edi + 0x28]
fld dword [esp + 0x44]
fld st(0)
fmulp st(2)
fld dword [esp + 0x30]
fld st(0)
faddp st(3)
fld qword [0x628778]
fmul st(3), st(0)
fld qword [0x613d10]
fadd st(4), st(0)
fxch st(4)
call fcn.005c2100
fild dword [esp + 0xcc]
mov dword [esp + 0x9c], eax
fstp dword [esp + 0xac]
fld dword [edi + 0x1c]
fld dword [esp + 0x48]
fld st(0)
fmulp st(2)
fld dword [esp + 0xac]
faddp st(2)
fxch st(1)
fmul st(2)
fadd st(5)
call fcn.005c2100
fild dword [esp + 0xd0]
fld dword [edi + 0x20]
mov dword [esp + 0xa0], eax
fmul st(5)
fsubp st(1)
fmul st(2)
fadd st(5)
call fcn.005c2100
fild dword [esp + 0xd4]
fld dword [edi + 0x24]
mov dword [esp + 0xa4], eax
fmul st(2)
fsubp st(1)
fmul st(2)
faddp st(5)
fxch st(4)
call fcn.005c2100
fld dword [0x629e50]
fcom dword [edi + 0x18]
mov dword [esp + 0xa8], eax
fnstsw ax
test ah, 0x44
jp 0x587146
mov dword [esp + 0xb8], 0
jmp 0x587159
fld dword [edi + 0x18]
fmul st(4)
fadd st(3)
call fcn.005c2100
mov dword [esp + 0xb8], eax
fcom dword [edi + 0xc]
lea ecx, [edi + 0xc]
mov dword [esp + 0x64], ecx
fnstsw ax
test ah, 0x44
jp 0x58716e
xor esi, esi
jmp 0x587180
fld dword [ecx]
fmul st(5)
fadd dword [esp + 0xac]
call fcn.005c2100
mov esi, eax
mov dword [esp + 0xbc], esi
fcom dword [edi + 0x10]
fnstsw ax
test ah, 0x44
jp 0x5871a1
mov edx, dword [ebp + 0xc]
fstp st(2)
mov ecx, dword [edx]
mov dword [esp + 0xc0], ecx
jmp 0x5871b9
fld dword [edi + 0x10]
fmul st(4)
faddp st(3)
fxch st(2)
call fcn.005c2100
mov edx, dword [ebp + 0xc]
mov dword [esp + 0xc0], eax
fxch st(1)
fcomp dword [edi + 0x14]
fnstsw ax
test ah, 0x44
jp 0x5871ca
mov edi, dword [edx + 4]
jmp 0x5871e0
fld dword [edi + 0x14]
fmul st(3)
fadd dword [esp + 0xac]
call fcn.005c2100
mov edx, dword [ebp + 0xc]
mov edi, eax
mov ecx, dword [esp + 0xb8]
xor eax, eax
test ecx, ecx
setle al
mov dword [esp + 0xc4], edi
sub eax, 1
and eax, ecx
xor ecx, ecx
test esi, esi
setle cl
mov dword [esp + 0xb8], eax
sub ecx, 1
and ecx, esi
mov dword [esp + 0xbc], ecx
mov ecx, dword [edx]
cmp dword [esp + 0xc0], ecx
jl 0x587226
mov dword [esp + 0xc0], ecx
mov edx, dword [edx + 4]
cmp edi, edx
jl 0x587234
mov dword [esp + 0xc4], edx
fmul st(1), st(0)
lea esi, [ebx + 0x1c]
fxch st(1)
push str.down
push esi
fstp dword [esp + 0x4c]
mov dword [esp + 0xb4], esi
fmulp st(1)
fstp dword [esp + 0x50]
call fcn.00419950
add esp, 8
test al, al
jne 0x587275
push 0x668eec
push esi
call fcn.00419950
add esp, 8
test al, al
mov byte [esp + 0x1b], 0
je 0x58727a
mov byte [esp + 0x1b], 1
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], 0xa
mov edi, dword [ebx + 0x34]
cmp edi, eax
mov dword [esp + 0x16c], eax
je 0x58769d
xor eax, eax
test edi, edi
setne al
test eax, eax
je 0x587037
push 0x3c
mov ebx, edi
mov edi, dword [edi]
lea edx, [esp + 0x128]
push 0
push edx
mov dword [esp + 0x34], edi
add ebx, 8
call fcn.005c0060
mov byte [esp + 0x147], 1
mov eax, dword [ebx + 0x68]
add esp, 0xc
push eax
lea ecx, [esp + 0x34]
call fcn.00418ef0
mov eax, dword [eax]
push eax
lea eax, [esp + 0x144]
push 0x20
push eax
call fcn.005c51e5
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x587338
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
fld dword [ebx + 0x6c]
fmul dword [esp + 0x48]
fld qword [0x613d10]
fadd st(1), st(0)
fxch st(1)
call fcn.005c2100
mov dword [esp + 0x124], eax
fadd dword [ebx + 0x70]
call fcn.005c2100
mov esi, dword [esp + 0x60]
mov dword [esp + 0x134], eax
cmp byte [ebx + 0x86], 0
setne cl
mov byte [esp + 0x138], cl
cmp byte [ebx + 0x84], 0
lea ecx, [esp + 0x124]
setne dl
mov byte [esp + 0x139], dl
cmp byte [ebx + 0x85], 0
mov edx, dword [esp + 0x60]
setne al
mov byte [esp + 0x13a], al
mov eax, dword [edx + 4]
push ecx
add esi, 8
push eax
mov ecx, esi
mov byte [esp + 0x144], 4
mov byte [esp + 0x145], 0
mov byte [esp + 0x146], 4
mov byte [esp + 0x147], 0
call fcn.00586950
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x587417
push 0x618c7c
lea ecx, [esp + 0x144]
push 0x20
push ecx
call fcn.005c51e5
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 4]
add esp, 0xc
lea edx, [esp + 0x124]
push edx
push ecx
mov ecx, esi
call fcn.00586950
test eax, eax
mov dword [esp + 0x1c], eax
je 0x58768e
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [ebx + 0xe8]
cmp word [esi], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], esi
je 0x58767b
push 0x334
call fcn.0059b02f
add esp, 4
mov dword [esp + 0x4c], eax
test eax, eax
mov byte [esp + 0x16c], 1
je 0x587469
mov ecx, eax
call fcn.00594f40
mov edi, eax
jmp 0x58746b
xor edi, edi
mov dword [esp + 0x4c], edi
mov cx, word [esi]
mov word [edi], cx
push ebx
lea ecx, [edi + 4]
mov byte [esp + 0x170], 2
call fcn.005850b0
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov cl, byte [esp + 0x1b]
mov dword [edi + 0xfc], edx
mov edx, dword [esp + 0x1c]
mov dword [edi + 0x100], eax
mov byte [edi + 0x104], cl
mov dword [edi + 0x108], edx
movzx eax, word [esi + 2]
test ax, ax
jne 0x5874d4
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x5874d4
mov eax, dword [ecx + 0xf0]
cmp dword [eax - 0xc], 0
jl 0x587744
movzx eax, word [eax]
jmp 0x5874d7
movzx eax, ax
push eax
mov eax, dword [esp + 0x18]
push eax
push edi
call fcn.00595630
movzx ecx, word [esi]
mov eax, dword [esp + 0x6c]
add esp, 0xc
lea edx, [esp + 0x68]
push edx
push 1
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 4]
push edi
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
cmp byte [esp + 0x1b], 0
fld dword [ebx + 0x88]
je 0x587557
fmul dword [esp + 0x48]
fadd qword [0x613d10]
call fcn.005c2100
mov dword [edi + 0x118], eax
mov eax, dword [esp + 0x68]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x10c], eax
mov edx, dword [esp + 0x68]
sub edx, eax
mov dword [edi + 0x110], edx
mov eax, dword [esp + 0x6c]
mov dword [edi + 0x114], eax
cmp word [edi], 0x20
jne 0x58758c
cdq
sub eax, edx
sar eax, 1
jmp 0x587586
fmul dword [esp + 0x44]
fadd qword [0x613d10]
call fcn.005c2100
mov dword [edi + 0x118], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
mov dword [edi + 0x10c], ecx
mov edx, dword [eax + 0x14]
mov dword [edi + 0x110], edx
mov eax, dword [esp + 0x68]
mov dword [edi + 0x114], eax
movzx eax, word [edi]
cmp ax, 0xa
jne 0x5875c7
xor eax, eax
mov dword [edi + 0x118], eax
mov dword [edi + 0x114], eax
mov eax, dword [edi + 0x10c]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x10c], eax
mov eax, dword [edi + 0x110]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x110], eax
jmp 0x587606
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 4]
push ecx
push edx
lea ecx, [eax + 0x58]
call fcn.00586b10
test eax, eax
jne 0x5875fa
mov ecx, edi
mov byte [esp + 0x16c], al
call fcn.00584220
push edi
call fcn.0059b05f
add esp, 4
jmp 0x587666
push eax
lea ecx, [edi + 0x128]
call fcn.00595190
mov esi, dword [esp + 0x100]
lea ecx, [esp + 0xfc]
call fcn.0058a6a0
mov eax, dword [esp + 0x10c]
mov ecx, dword [eax]
mov dword [eax + 8], edi
mov dword [esp + 0x10c], ecx
mov dword [eax + 4], esi
mov dword [eax], 0
mov ecx, dword [esp + 0x100]
add dword [esp + 0x104], 1
test ecx, ecx
je 0x58764c
mov dword [ecx], eax
jmp 0x587653
mov dword [esp + 0xfc], eax
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x100], eax
mov byte [esp + 0x16c], 0
add esi, 2
cmp word [esi], 0
mov dword [esp + 0x3c], esi
jne 0x587441
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
test edi, edi
jne 0x5872c0
mov eax, dword [esp + 0xfc]
xor ebx, ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], 0xa
xor edi, edi
mov dword [esp + 0x5c], edi
cmp eax, ebx
mov byte [esp + 0x16c], 4
mov dword [esp + 0x28], eax
je 0x587827
mov eax, dword [esp + 0x28]
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x587037
mov ecx, dword [eax]
mov esi, dword [eax + 8]
mov dword [esp + 0x28], ecx
mov dword [eax + 8], ebx
mov dword [esp + 0x1c], esi
cmp edi, ebx
mov byte [esp + 0x16c], 5
jne 0x587756
push 0x28
call fcn.0059b02f
add esp, 4
cmp eax, ebx
je 0x58774e
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], 0xa
mov dword [eax + 0x24], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x18], ebx
jmp 0x587750
push 0x80070057
call fcn.00401480
xor eax, eax
mov dword [esp + 0x5c], eax
mov edi, eax
movzx edx, word [esi]
mov eax, dword [edi + 4]
mov ecx, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], eax
call fcn.0058a6a0
mov eax, dword [edi + 0x10]
cmp eax, ebx
mov ecx, dword [eax]
je 0x58777b
mov dword [esp + 0x1c], ebx
mov dword [eax + 8], esi
mov dword [edi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov ecx, dword [edi + 4]
add dword [edi + 8], 1
cmp ecx, ebx
je 0x587796
mov dword [ecx], eax
jmp 0x587798
mov dword [edi], eax
cmp word [esp + 0x14], 0xa
mov dword [edi + 4], eax
je 0x5877a9
cmp dword [esp + 0x28], ebx
jne 0x5877fb
mov esi, dword [esp + 0x80]
lea ecx, [esp + 0x7c]
call fcn.0058a6a0
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax]
mov dword [eax + 8], edi
mov dword [esp + 0x8c], ecx
mov dword [eax + 4], esi
mov dword [eax], ebx
mov ecx, dword [esp + 0x80]
add dword [esp + 0x84], 1
cmp ecx, ebx
mov dword [esp + 0x5c], ebx
je 0x5877ec
mov dword [ecx], eax
jmp 0x5877f0
mov dword [esp + 0x7c], eax
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x80], eax
cmp dword [esp + 0x1c], ebx
mov byte [esp + 0x16c], 4
je 0x58781d
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.00584220
push esi
call fcn.0059b05f
add esp, 4
cmp dword [esp + 0x28], ebx
jne 0x5876e4
mov edx, dword [esp + 0xac]
push 0x628eac
push edx
call fcn.00419950
add esp, 8
test al, al
je 0x5878f7
mov eax, dword [esp + 0x7c]
cmp eax, ebx
mov ecx, eax
mov dword [esp + 0x14], ecx
je 0x5878f7
xor edx, edx
test ecx, ecx
setne dl
test edx, edx
mov dword [esp + 0x30], edx
je 0x587037
mov eax, dword [ecx + 8]
mov edi, dword [eax]
test edi, edi
je 0x5878df
mov eax, edi
mov edi, dword [edi]
test edi, edi
mov eax, dword [eax + 8]
je 0x5878d7
mov esi, dword [edi + 8]
mov ecx, dword [eax + 0x108]
cmp ecx, dword [esi + 0x108]
jne 0x587872
cmp byte [eax + 0x98], 0
je 0x587872
cmp byte [esi + 0x98], 0
je 0x587872
movzx edx, word [esi]
movzx eax, word [eax]
push edx
push eax
call fcn.00593be0
mov ebx, eax
test ebx, ebx
je 0x587872
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esi + 0x128]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 0
call fcn.005950a0
add dword [esi + 0x114], ebx
jmp 0x587872
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
test edx, edx
je 0x587037
mov ecx, dword [ecx]
test ecx, ecx
mov dword [esp + 0x14], ecx
jne 0x587856
xor ebx, ebx
mov esi, dword [ebp + 8]
add esi, 0x24
push str.normal
push esi
call fcn.00419950
add esp, 8
test al, al
jne 0x587925
push str.even
push esi
call fcn.00419950
add esp, 8
test al, al
je 0x587eba
cmp byte [esp + 0x1b], 0
je 0x58793c
mov eax, dword [esp + 0xa8]
sub eax, dword [esp + 0xa0]
jmp 0x58794a
mov eax, dword [esp + 0xa4]
sub eax, dword [esp + 0x9c]
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x7c]
cmp eax, ebx
mov ecx, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], ecx
je 0x587ebe
jmp 0x587974
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
mov dword [esp + 0x4c], eax
je 0x587037
mov esi, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax - 0x10]
add esi, 0x24
cmp ecx, ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ebx
je 0x5879ad
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp eax, ebx
jne 0x5879bb
call fcn.005a2e2e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
push eax
push str.even
lea ecx, [esp + 0xf8]
call fcn.00419080
mov edi, dword [esp + 0xf0]
xor eax, eax
cmp edi, ebx
setne al
mov byte [esp + 0x16c], 6
cmp eax, ebx
je 0x587037
mov eax, dword [esi]
mov ecx, edi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x587a16
cmp dx, bx
je 0x587a12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x587a16
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x5879f0
xor eax, eax
jmp 0x587a1b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
lea eax, [edi - 0x10]
sete byte [esp + 0x23]
mov byte [esp + 0x16c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x587a46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x23], 0
je 0x587ab8
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
xor edi, edi
cmp ecx, ebx
je 0x587a90
lea esp, [esp]
xor edx, edx
cmp ecx, ebx
setne dl
mov esi, edx
cmp esi, ebx
je 0x587037
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x118]
add eax, dword [edx + 0x114]
add edi, eax
cmp esi, ebx
je 0x587037
mov ecx, dword [ecx]
cmp ecx, ebx
jne 0x587a60
mov esi, dword [esp + 0x3c]
mov eax, edi
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
cmp ecx, esi
jle 0x587ab8
mov eax, ecx
cdq
idiv esi
mov esi, eax
mov eax, ecx
cdq
add esi, 1
idiv esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], eax
je 0x587e9e
mov edi, edi
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x587037
mov edi, dword [ecx + 8]
mov edx, dword [edi + 0x118]
add edx, dword [edi + 0x114]
add dword [esp + 0x10], edx
cmp esi, ebx
je 0x587cfc
mov eax, dword [esp + 0x10]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [esp + 0x3c]
jle 0x587cfc
cmp word [edi], 0x20
je 0x587cfc
push 0x28
call fcn.0059b02f
add esp, 4
cmp eax, ebx
je 0x587b52
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], 0xa
mov dword [eax + 0x24], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x18], ebx
mov edi, eax
jmp 0x587b54
xor edi, edi
mov eax, dword [esi]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x10], eax
mov edi, edi
xor eax, eax
cmp dword [esp + 0x24], eax
setne al
test eax, eax
je 0x587037
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + 4]
mov ebx, dword [edi]
mov dword [esp + 0x24], ecx
mov ecx, edi
call fcn.0058a6a0
mov eax, dword [edi + 0x10]
test eax, eax
mov ecx, dword [eax]
je 0x587b9b
mov edx, dword [esi + 8]
mov dword [esi + 8], 0
mov dword [eax + 8], edx
mov dword [edi + 0x10], ecx
mov dword [eax + 4], 0
mov dword [eax], ebx
mov ecx, dword [edi]
add dword [edi + 8], 1
test ecx, ecx
je 0x587bb6
mov dword [ecx + 4], eax
jmp 0x587bb9
mov dword [edi + 4], eax
cmp dword [esp + 0x24], 0
mov dword [edi], eax
jne 0x587b60
cmp dword [esp + 0x1c], 0
lea ecx, [esp + 0x7c]
jne 0x587c1a
mov esi, dword [esp + 0x7c]
call fcn.0058a6a0
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax]
mov dword [eax + 8], edi
xor edx, edx
mov dword [esp + 0x8c], ecx
mov dword [eax + 4], edx
mov dword [eax], esi
mov ecx, dword [esp + 0x7c]
add dword [esp + 0x84], 1
cmp ecx, edx
mov dword [esp + 0x5c], edx
je 0x587c0d
mov dword [ecx + 4], eax
mov dword [esp + 0x7c], eax
jmp 0x587c60
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], eax
jmp 0x587c60
mov esi, dword [esp + 0x1c]
mov ebx, dword [esi + 4]
call fcn.0058a6a0
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax]
mov dword [eax + 8], edi
mov dword [esp + 0x8c], ecx
mov dword [eax + 4], ebx
mov dword [eax], esi
add dword [esp + 0x84], 1
mov ecx, dword [esi + 4]
test ecx, ecx
mov dword [esp + 0x5c], 0
je 0x587c59
mov dword [ecx], eax
jmp 0x587c5d
mov dword [esp + 0x7c], eax
mov dword [esi + 4], eax
mov esi, dword [esp + 0x14]
cmp dword [esi + 8], 0
je 0x587cd2
lea ebx, [ebx]
mov edi, dword [esi]
cmp edi, dword [esp + 0x10]
je 0x587cd2
xor eax, eax
xor ecx, ecx
cmp edi, ecx
setne al
cmp eax, ecx
je 0x587037
mov eax, dword [edi]
cmp eax, ecx
mov dword [esi], eax
je 0x587c96
mov dword [eax + 4], ecx
jmp 0x587c99
mov dword [esi + 4], ecx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x587cb0
mov ecx, ebx
call fcn.00584220
push ebx
call fcn.0059b05f
add esp, 4
mov dword [edi + 8], 0
mov edx, dword [esi + 0x10]
mov dword [edi], edx
add dword [esi + 8], 0xffffffff
mov dword [esi + 0x10], edi
jne 0x587ccc
mov ecx, esi
call fcn.00586000
cmp dword [esi + 8], 0
jne 0x587c70
mov eax, dword [esp + 0x10]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x587037
mov edi, dword [eax + 8]
mov eax, dword [edi + 0x118]
add eax, dword [edi + 0x114]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [esp + 0x30]
jl 0x587e7b
mov eax, dword [edi + 4]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x587d24
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x587d32
call fcn.005a2e2e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
push eax
push str.char
lea ecx, [esp + 0x9c]
call fcn.00419080
mov esi, dword [esp + 0x94]
xor eax, eax
test esi, esi
setne al
mov byte [esp + 0x16c], 7
test eax, eax
je 0x587037
mov eax, dword [edi + 4]
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x587d8d
test dx, dx
je 0x587d89
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x587d8d
add eax, 4
add ecx, 4
test dx, dx
jne 0x587d67
xor eax, eax
jmp 0x587d92
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea eax, [esi - 0x10]
sete bl
mov byte [esp + 0x16c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x587dbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x587e73
mov ecx, dword [edi + 4]
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x587dd8
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x587de6
call fcn.005a2e2e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
push eax
push str.word
lea ecx, [esp + 0x70]
call fcn.00419080
mov esi, dword [esp + 0x68]
xor eax, eax
test esi, esi
setne al
mov byte [esp + 0x16c], 8
test eax, eax
je 0x587037
mov eax, dword [edi + 4]
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x587e3b
test dx, dx
je 0x587e37
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x587e3b
add eax, 4
add ecx, 4
test dx, dx
jne 0x587e15
xor eax, eax
jmp 0x587e40
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea eax, [esi - 0x10]
sete bl
mov byte [esp + 0x16c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x587e69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x587e7b
cmp word [edi], 0x20
jne 0x587e7b
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x28]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x587037
mov eax, dword [ecx]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x28], eax
jne 0x587ad0
cmp dword [esp + 0x4c], ebx
je 0x587037
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x587970
mov eax, dword [esp + 0x7c]
cmp eax, ebx
mov ecx, eax
mov dword [esp + 0x3c], eax
je 0x587fa7
lea esp, [esp]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
mov dword [esp + 0x4c], eax
je 0x587037
mov esi, dword [ecx + 8]
xor edi, edi
cmp dword [esi + 8], edi
je 0x587f85
mov eax, dword [esi]
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x587037
mov eax, dword [eax + 8]
cmp word [eax], 0x20
jne 0x587f38
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.00585c90
mov ebx, dword [esp + 0x30]
cmp ebx, edi
je 0x587f2f
mov ecx, ebx
call fcn.00584220
push ebx
call fcn.0059b05f
add esp, 4
cmp dword [esi + 8], edi
mov dword [esp + 0x30], edi
jne 0x587ef1
cmp dword [esi + 8], edi
je 0x587f85
mov eax, dword [esi + 4]
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x587037
mov eax, dword [eax + 8]
cmp word [eax], 0x20
jne 0x587f85
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00585d10
mov ebx, dword [esp + 0x14]
cmp ebx, edi
je 0x587f7c
mov ecx, ebx
call fcn.00584220
push ebx
call fcn.0059b05f
add esp, 4
cmp dword [esi + 8], edi
mov dword [esp + 0x14], edi
jne 0x587f3d
cmp dword [esp + 0x4c], edi
je 0x587037
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx]
cmp ecx, edi
mov dword [esp + 0x3c], ecx
jne 0x587ed0
mov eax, dword [esp + 0x7c]
xor ebx, ebx
xor edi, edi
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], edi
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], 0xa
cmp eax, ebx
mov byte [esp + 0x16c], 9
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
je 0x5881cd
xor edx, edx
cmp eax, ebx
setne dl
cmp edx, ebx
mov dword [esp + 0x94], edx
je 0x587037
mov ecx, dword [eax + 8]
mov ecx, dword [ecx]
cmp ecx, ebx
mov dword [esp + 0x1c], ecx
je 0x5881b7
jmp 0x588024
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x587037
cmp dword [esp + 0xe0], ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov esi, dword [eax + 8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x68], esi
je 0x58813f
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x58813f
cmp dword [esi + 0xd4], eax
jne 0x588077
cmp dword [esp + 0x14], ebx
jne 0x58813f
cmp ecx, ebx
jne 0x58813f
fld dword [esi + 0xe8]
fimul dword [esp + 0x10]
fadd qword [0x613d10]
call fcn.005c2100
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x4c], eax
jmp 0x5880a7
mov edi, dword [esp + 0xdc]
xor eax, eax
test edi, edi
setne al
test eax, eax
je 0x587037
mov esi, dword [edi + 8]
mov eax, edi
mov edi, dword [edi + 4]
test edi, edi
mov dword [esp + 0xdc], edi
je 0x5880d1
mov dword [edi], 0
jmp 0x5880dc
mov dword [esp + 0xd8], 0
mov ecx, dword [esp + 0xe8]
mov dword [eax], ecx
sub dword [esp + 0xe0], 1
mov dword [esp + 0xe8], eax
jne 0x588102
lea ecx, [esp + 0xd8]
call fcn.004cd340
sub ebx, dword [esi + 0x114]
mov edx, dword [esp + 0x4c]
sub edx, ebx
mov dword [esi + 0x11c], edx
cmp dword [esp + 0xe0], 0
jne 0x5880a0
lea ecx, [esp + 0xd8]
call fcn.004cd340
mov edi, dword [esp + 0xdc]
mov esi, dword [esp + 0x68]
mov dword [esp + 0x10], 0
xor ebx, ebx
mov eax, dword [esi + 0xd4]
cmp eax, ebx
mov dword [esp + 0x30], eax
je 0x5881a2
lea ecx, [esp + 0xd8]
call fcn.0058a6a0
mov eax, dword [esp + 0xe8]
mov ecx, dword [eax]
mov dword [eax + 8], esi
mov dword [esp + 0xe8], ecx
mov dword [eax + 4], edi
mov dword [eax], ebx
mov ecx, dword [esp + 0xdc]
add dword [esp + 0xe0], 1
cmp ecx, ebx
je 0x588188
mov dword [ecx], eax
jmp 0x58818f
mov dword [esp + 0xd8], eax
mov edi, eax
mov dword [esp + 0xdc], edi
mov eax, dword [esi + 0x114]
add dword [esp + 0x10], eax
cmp dword [esp + 0x1c], ebx
jne 0x588020
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x14]
cmp edx, ebx
je 0x587037
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x587ff3
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x20]
mov ecx, dword [ecx - 0x10]
cmp ecx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
je 0x5881ed
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp eax, ebx
jne 0x5881fb
call fcn.005a2e2e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
push eax
push 0x628ebc
lea ecx, [esp + 0x54]
call fcn.00419080
mov esi, dword [esp + 0x4c]
xor eax, eax
cmp esi, ebx
setne al
mov byte [esp + 0x16c], 0xa
cmp eax, ebx
jne 0x58822b
push 0x80004005
call fcn.00401480
mov eax, dword [edi + 0x20]
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x588256
cmp dx, bx
je 0x588252
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x588256
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x588230
xor eax, eax
jmp 0x58825b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
lea eax, [esi - 0x10]
sete byte [esp + 0x23]
mov byte [esp + 0x16c], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x588286
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x23], 0
jne 0x58834d
mov ecx, dword [edi + 0x20]
mov ecx, dword [ecx - 0x10]
cmp ecx, ebx
je 0x5882a6
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp eax, ebx
jne 0x5882b4
call fcn.005a2e2e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
push eax
push 0x668eec
lea ecx, [esp + 0x54]
call fcn.00419080
mov esi, dword [esp + 0x4c]
xor eax, eax
cmp esi, ebx
setne al
mov byte [esp + 0x16c], 0xb
cmp eax, ebx
jne 0x5882e4
push 0x80004005
call fcn.00401480
mov eax, dword [edi + 0x20]
mov ecx, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x588316
cmp dx, bx
je 0x588312
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x588316
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x5882f0
xor eax, eax
jmp 0x58831b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
lea eax, [esi - 0x10]
sete byte [esp + 0x23]
mov byte [esp + 0x16c], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x588346
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x23], 0
je 0x58835a
lea ecx, [esp + 0x7c]
push ecx
call fcn.00586e50
add esp, 4
mov eax, dword [esp + 0x7c]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x588671
jmp 0x588374
mov eax, dword [esp + 0x14]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
mov dword [esp + 0xf0], ecx
je 0x587037
mov ebx, dword [esp + 0xac]
mov edx, dword [ebx]
mov ecx, dword [edx - 0x10]
test ecx, ecx
mov edi, dword [eax + 8]
je 0x5883a8
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
jne 0x5883b6
call fcn.005a2e2e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
push eax
push 0x628ebc
lea ecx, [esp + 0x54]
call fcn.00419080
mov esi, dword [esp + 0x4c]
xor eax, eax
test esi, esi
setne al
mov byte [esp + 0x16c], 0xc
test eax, eax
je 0x587037
mov eax, dword [ebx]
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x58840a
test dx, dx
je 0x588406
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x58840a
add eax, 4
add ecx, 4
test dx, dx
jne 0x5883e4
xor eax, eax
jmp 0x58840f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea eax, [esi - 0x10]
sete bl
mov byte [esp + 0x16c], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x588438
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x5884f8
mov ecx, dword [esp + 0xac]
mov edx, dword [ecx]
mov ecx, dword [edx - 0x10]
test ecx, ecx
je 0x58845b
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
jne 0x588469
call fcn.005a2e2e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
push eax
push 0x668eec
lea ecx, [esp + 0x70]
call fcn.00419080
mov esi, dword [esp + 0x68]
xor eax, eax
test esi, esi
setne al
mov byte [esp + 0x16c], 0xd
test eax, eax
je 0x587037
mov ecx, dword [esp + 0xac]
mov eax, dword [ecx]
mov ecx, esi
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5884c6
test dx, dx
je 0x5884c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5884c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x5884a0
xor eax, eax
jmp 0x5884cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea eax, [esi - 0x10]
sete bl
mov byte [esp + 0x16c], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5884f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x588501
push edi
call fcn.00585f80
add esp, 4
mov ebx, dword [edi]
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [edi + 0x24], eax
je 0x5885e7
xor eax, eax
test ebx, ebx
setne al
test eax, eax
mov dword [esp + 0x94], eax
je 0x587037
mov esi, dword [ebx + 8]
mov eax, dword [esi + 0x114]
add dword [esp + 0x10], eax
test ebx, ebx
je 0x588549
mov ecx, dword [esi + 0x118]
add dword [esp + 0x10], ecx
mov edx, dword [esi + 0x110]
mov ecx, dword [esi + 0x10c]
add ecx, edx
cmp dword [esp + 0x1c], ecx
jg 0x588561
mov dword [esp + 0x1c], ecx
add dword [edi + 0x24], eax
test ebx, ebx
mov eax, dword [edi + 0x24]
je 0x588576
mov edx, dword [esi + 0x118]
add edx, eax
mov dword [edi + 0x24], edx
mov eax, dword [edi + 0x18]
mov ecx, dword [esi + 0x10c]
cmp eax, ecx
jg 0x588585
mov eax, ecx
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov ecx, dword [esi + 0x110]
cmp eax, ecx
jg 0x588597
mov eax, ecx
fild dword [edi + 0x20]
mov ecx, esi
mov dword [edi + 0x1c], eax
fstp qword [esp + 0x30]
call fcn.00593f40
fcomp qword [esp + 0x30]
fnstsw ax
test ah, 5
jp 0x5885b8
fild dword [edi + 0x20]
jmp 0x5885bf
mov ecx, esi
call fcn.00593f40
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
call fcn.005c2100
cmp dword [esp + 0x94], 0
mov dword [edi + 0x20], eax
je 0x587037
mov ebx, dword [ebx]
test ebx, ebx
jne 0x588518
mov eax, dword [edi]
test eax, eax
je 0x58861a
lea ecx, [ecx]
xor edx, edx
test eax, eax
setne dl
test edx, edx
je 0x587037
mov ecx, dword [eax + 8]
mov esi, dword [edi + 0x18]
mov dword [ecx + 0x120], esi
mov esi, dword [edi + 0x1c]
mov dword [ecx + 0x124], esi
mov eax, dword [eax]
test eax, eax
jne 0x5885f0
cmp byte [esp + 0x1b], 0
je 0x588639
mov eax, dword [esp + 0x1c]
add dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x40], eax
jg 0x58864f
mov dword [esp + 0x40], eax
jmp 0x58864f
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x3c], eax
jg 0x588647
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x40], ecx
cmp dword [esp + 0xf0], 0
je 0x587037
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x588370
xor ebx, ebx
push 0x3c
call fcn.0059b02f
add esp, 4
cmp eax, ebx
je 0x5886f1
mov dword [eax], vtable.ssf::RenderedSubtitle.0
mov ecx, dword [esp + 0xc8]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0xcc]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0xd0]
mov dword [eax + 0xc], ecx
mov edx, dword [esp + 0xd4]
mov dword [eax + 0x10], edx
mov ecx, dword [esp + 0xb8]
mov dword [eax + 0x14], ecx
mov edx, dword [esp + 0xbc]
mov dword [eax + 0x18], edx
mov ecx, dword [esp + 0xc0]
mov dword [eax + 0x1c], ecx
mov edx, dword [esp + 0xc4]
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x30], ebx
mov dword [eax + 0x34], ebx
mov dword [eax + 0x38], 0xa
mov dword [esp + 0x24], eax
jmp 0x5886f5
mov dword [esp + 0x24], ebx
mov esi, dword [esp + 0x64]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edi, [esp + 0xa4]
lea ebx, [esp + 0x70]
call fcn.00583000
xor eax, eax
lea edx, [esp + 0x54]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
push edx
lea eax, [esp + 0x50]
push eax
lea ebx, [esp + 0xa4]
call fcn.00583000
mov edx, dword [ebp + 8]
add esp, 0x10
cmp byte [edx + 0xc], 0
jne 0x5887f9
xor ecx, ecx
cmp dword [esp + 0x84], ecx
je 0x58878f
mov eax, dword [esp + 0x7c]
test eax, eax
setne cl
test ecx, ecx
jne 0x588765
push 0x80004005
call fcn.00401480
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x20]
mov esi, dword [esp + 0x80]
xor eax, eax
test esi, esi
setne al
test eax, eax
jne 0x588787
push 0x80004005
call fcn.00401480
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x20]
jmp 0x588791
xor eax, eax
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
push eax
push ecx
mov ecx, dword [esp + 0x80]
add ecx, 0x2c
push ecx
mov ecx, dword [esp + 0x38]
add edi, esi
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x78]
push edx
lea edx, [esp + 0x5c]
add ebx, edi
push edx
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x6c], ebx
call fcn.00586260
mov edx, dword [esp + 0x50]
mov eax, edx
sub eax, edi
mov edi, dword [esp + 0x4c]
mov ecx, edi
sub ecx, esi
add dword [esp + 0x94], ecx
add dword [esp + 0x98], eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edx
jmp 0x588801
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x114], edi
add edi, eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x118], edx
add edx, ecx
test eax, eax
mov dword [esp + 0x11c], edi
mov dword [esp + 0x120], edx
mov dword [esp + 0x3c], eax
je 0x588b32
jmp 0x588844
mov eax, dword [esp + 0x3c]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
mov dword [esp + 0x4c], ecx
je 0x587037
cmp byte [esp + 0x1b], 0
mov eax, dword [eax + 8]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov eax, dword [eax + 0x24]
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf0], eax
lea edi, [esp + 0x9c]
je 0x5889cf
lea edx, [esp + 0xf0]
push edx
lea eax, [esp + 0x48]
push eax
lea ebx, [esp + 0x38]
call fcn.00583000
mov edx, dword [esp + 0x18]
mov esi, dword [edx]
mov ecx, dword [eax + 4]
add esp, 8
test esi, esi
mov dword [esp + 0x6c], ecx
je 0x5889bc
xor eax, eax
test esi, esi
setne al
test eax, eax
mov dword [esp + 0x78], eax
je 0x587037
mov edi, dword [esi + 8]
mov dword [esi + 8], 0
mov dword [esp + 0x14], edi
fld dword [edi + 0x3c]
fmul dword [esp + 0x44]
mov byte [esp + 0x16c], 0xe
fld qword [0x613d10]
fadd st(1), st(0)
fxch st(1)
call fcn.005c2100
sub eax, dword [edi + 0x10c]
mov ecx, dword [esp + 0x10]
add eax, dword [ecx + 0x18]
add eax, dword [esp + 0x68]
mov dword [edi + 0x180], eax
fld dword [edi + 0x40]
fmul dword [esp + 0x48]
faddp st(1)
call fcn.005c2100
mov ebx, dword [esp + 0x24]
mov edx, eax
mov eax, dword [esp + 0x6c]
add edx, eax
mov dword [edi + 0x184], edx
mov ecx, dword [edi + 0x118]
add ecx, dword [edi + 0x114]
mov edx, dword [ebx + 0x28]
add ebx, 0x24
add eax, ecx
mov ecx, ebx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x2c], edx
call fcn.0058a6a0
mov eax, dword [ebx + 0x10]
test eax, eax
mov ecx, dword [eax]
je 0x588960
mov dword [esp + 0x14], 0
mov dword [eax + 8], edi
mov dword [ebx + 0x10], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov dword [eax], 0
mov ecx, dword [ebx + 4]
add dword [ebx + 8], 1
test ecx, ecx
je 0x58897f
mov dword [ecx], eax
jmp 0x588981
mov dword [ebx], eax
cmp dword [esp + 0x14], 0
mov dword [ebx + 4], eax
mov byte [esp + 0x16c], 9
je 0x5889a7
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.00584220
push edi
call fcn.0059b05f
add esp, 4
cmp dword [esp + 0x78], 0
je 0x587037
mov esi, dword [esi]
test esi, esi
jne 0x5888b3
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x1c]
add edx, dword [eax + 0x18]
add dword [esp + 0x68], edx
jmp 0x588b15
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x48]
push ecx
lea ebx, [esp + 0xb4]
call fcn.00583000
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
mov esi, dword [eax]
add esp, 8
test esi, esi
mov dword [esp + 0x68], edx
je 0x588b07
nop
xor eax, eax
test esi, esi
setne al
test eax, eax
mov dword [esp + 0x78], eax
je 0x587037
mov edi, dword [esi + 8]
mov dword [esi + 8], 0
mov dword [esp + 0x14], edi
fld dword [edi + 0x3c]
fmul dword [esp + 0x44]
mov byte [esp + 0x16c], 0xf
fld qword [0x613d10]
fadd st(1), st(0)
fxch st(1)
call fcn.005c2100
mov ebx, dword [esp + 0x68]
add eax, ebx
mov dword [edi + 0x180], eax
fld dword [edi + 0x40]
fmul dword [esp + 0x48]
faddp st(1)
call fcn.005c2100
sub eax, dword [edi + 0x10c]
mov ecx, dword [esp + 0x10]
add eax, dword [ecx + 0x18]
add eax, dword [esp + 0x6c]
mov dword [edi + 0x184], eax
mov edx, dword [edi + 0x118]
add edx, dword [edi + 0x114]
add ebx, edx
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 0x28]
add ebx, 0x24
mov ecx, ebx
mov dword [esp + 0x2c], eax
call fcn.0058a6a0
mov eax, dword [ebx + 0x10]
test eax, eax
mov ecx, dword [eax]
je 0x588aab
mov dword [esp + 0x14], 0
mov dword [eax + 8], edi
mov dword [ebx + 0x10], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov dword [eax], 0
mov ecx, dword [ebx + 4]
add dword [ebx + 8], 1
test ecx, ecx
je 0x588aca
mov dword [ecx], eax
jmp 0x588acc
mov dword [ebx], eax
cmp dword [esp + 0x14], 0
mov dword [ebx + 4], eax
mov byte [esp + 0x16c], 9
je 0x588af2
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.00584220
push edi
call fcn.0059b05f
add esp, 4
cmp dword [esp + 0x78], 0
je 0x587037
mov esi, dword [esi]
test esi, esi
jne 0x588a00
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x1c]
add edx, dword [eax + 0x18]
add dword [esp + 0x6c], edx
cmp dword [esp + 0x4c], 0
je 0x587037
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x3c], eax
jne 0x588840
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx + 0x24]
test esi, esi
je 0x588b8c
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x587037
mov eax, esi
mov edi, dword [eax + 8]
mov esi, dword [esi]
mov ecx, edi
call fcn.005948e0
lea ecx, [esp + 0xc8]
push ecx
mov ecx, edi
call fcn.00594ba0
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x94]
lea edx, [esp + 0x114]
push edx
push eax
push ecx
mov ecx, edi
call fcn.005944d0
test esi, esi
jne 0x588b3d
lea eax, [ebx + 0x24]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x10], 0
je 0x589000
mov esi, dword [eax + 8]
mov edx, dword [eax]
mov ecx, dword [esi + 0x184]
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0x170]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x180]
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0x174]
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x178]
push ecx
push eax
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0x17c]
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x64], edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, esi
call fcn.00593f40
fadd qword [0x613d10]
call fcn.005c2100
mov ecx, esi
mov edi, eax
call fcn.00593f70
fadd qword [0x613d10]
call fcn.005c2100
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_InflateRect]
lea ecx, [esp + 0x54]
push ecx
mov ebx, eax
call edi
push ebx
push ebx
lea edx, [esp + 0x54]
push edx
call edi
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
sar dword [esp + 0x4c], 6
sar dword [esp + 0x50], 6
add eax, 0x20
sar eax, 6
add ecx, 0x20
sar ecx, 6
lea edx, [esp + 0xb8]
mov dword [esp + 0x54], eax
push edx
lea eax, [esp + 0x50]
mov dword [esp + 0x5c], ecx
push eax
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x588c92
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
push eax
add ecx, 0x24
call fcn.00585da0
jmp 0x588ff0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x588fec
lea ecx, [esi + 4]
push ecx
lea ecx, [eax + 4]
call fcn.0058b600
test al, al
je 0x588fec
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x184]
mov eax, dword [esi + 0x184]
mov edx, dword [edi + 0x180]
sub eax, ecx
mov ecx, dword [esi + 0x180]
sub ecx, edx
lea edx, [esp + 0x44]
mov dword [esp + 0x44], ecx
push edx
lea ecx, [esi + 0x128]
mov dword [esp + 0x4c], eax
call fcn.005950a0
mov eax, dword [edi + 0x130]
mov ebx, dword [esi + 0x130]
add edi, 0x12c
add ebx, eax
mov dword [esp + 0x2c], eax
jne 0x588d1c
mov eax, dword [edi]
xor ebx, ebx
cmp eax, ebx
je 0x588d17
push eax
call fcn.005bfb1a
add esp, 4
mov dword [edi], ebx
mov dword [edi + 8], ebx
jmp 0x588d4c
cmp ebx, dword [edi + 8]
ja 0x588d27
cmp ebx, eax
jbe 0x588d4c
jmp 0x588d3a
push ebx
mov ecx, edi
call fcn.00487120
test al, al
je 0x5890d3
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov ecx, ebx
sub ecx, eax
push ecx
add edx, eax
push edx
call fcn.004a6d10
add esp, 8
mov dword [edi + 4], ebx
mov edi, dword [edi]
mov edx, dword [esi + 0x130]
add edi, dword [esp + 0x2c]
test edx, edx
mov ecx, dword [esi + 0x12c]
jbe 0x588d7d
mov eax, edi
sub ecx, edi
mov edi, edx
jmp 0x588d70
mov dl, byte [ecx + eax]
mov byte [eax], dl
add eax, 1
sub edi, 1
jne 0x588d70
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x140]
mov ebx, dword [esi + 0x140]
add edi, 0x13c
add ebx, eax
mov dword [esp + 0x2c], eax
jne 0x588dba
mov eax, dword [edi]
test eax, eax
je 0x588db0
push eax
call fcn.005bfb1a
add esp, 4
mov dword [edi], 0
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
jmp 0x588dee
cmp ebx, dword [edi + 8]
ja 0x588dc5
cmp ebx, eax
jbe 0x588deb
jmp 0x588dd8
push ebx
mov ecx, edi
call fcn.004c6720
test al, al
je 0x5890d3
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov ecx, ebx
sub ecx, eax
push ecx
lea eax, [edx + eax*8]
push eax
call fcn.004a6d10
add esp, 8
mov dword [edi + 4], ebx
mov eax, dword [edi]
mov edx, dword [esi + 0x140]
test edx, edx
mov edi, dword [esp + 0x2c]
mov ecx, dword [esi + 0x13c]
lea eax, [eax + edi*8]
jbe 0x588e24
sub ecx, eax
lea esp, [esp]
mov edi, dword [ecx + eax]
mov dword [eax], edi
mov edi, dword [ecx + eax + 4]
mov dword [eax + 4], edi
add eax, 8
sub edx, 1
jne 0x588e10
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esi + 0x14c]
call fcn.005950a0
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x154]
mov ebx, dword [esi + 0x154]
add edi, 0x150
add ebx, eax
mov dword [esp + 0x2c], eax
jne 0x588e6a
mov eax, dword [edi]
xor ebx, ebx
cmp eax, ebx
je 0x588e65
push eax
call fcn.005bfb1a
add esp, 4
mov dword [edi], ebx
mov dword [edi + 8], ebx
jmp 0x588e9a
cmp ebx, dword [edi + 8]
ja 0x588e75
cmp ebx, eax
jbe 0x588e9a
jmp 0x588e88
push ebx
mov ecx, edi
call fcn.00487120
test al, al
je 0x5890d3
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov edx, ebx
sub edx, eax
push edx
add ecx, eax
push ecx
call fcn.004a6d10
add esp, 8
mov dword [edi + 4], ebx
mov edi, dword [edi]
mov edx, dword [esi + 0x154]
add edi, dword [esp + 0x2c]
test edx, edx
mov ecx, dword [esi + 0x150]
jbe 0x588ecd
mov eax, edi
sub ecx, edi
mov edi, edx
lea esp, [esp]
mov dl, byte [ecx + eax]
mov byte [eax], dl
add eax, 1
sub edi, 1
jne 0x588ec0
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x164]
mov ebx, dword [esi + 0x164]
add edi, 0x160
add ebx, eax
mov dword [esp + 0x2c], eax
jne 0x588f0a
mov eax, dword [edi]
test eax, eax
je 0x588f00
push eax
call fcn.005bfb1a
add esp, 4
mov dword [edi], 0
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
jmp 0x588f3e
cmp ebx, dword [edi + 8]
ja 0x588f15
cmp ebx, eax
jbe 0x588f3b
jmp 0x588f28
push ebx
mov ecx, edi
call fcn.004c6720
test al, al
je 0x5890d3
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov ecx, ebx
sub ecx, eax
push ecx
lea eax, [edx + eax*8]
push eax
call fcn.004a6d10
add esp, 8
mov dword [edi + 4], ebx
mov eax, dword [edi]
mov edx, dword [esi + 0x164]
test edx, edx
mov edi, dword [esp + 0x2c]
mov ecx, dword [esi + 0x160]
lea eax, [eax + edi*8]
jbe 0x588f74
sub ecx, eax
lea esp, [esp]
mov edi, dword [ecx + eax]
mov dword [eax], edi
mov edi, dword [ecx + eax + 4]
mov dword [eax + 4], edi
add eax, 8
sub edx, 1
jne 0x588f60
mov edx, dword [esi + 0x174]
mov ecx, dword [esi + 0x170]
mov eax, dword [esi + 0x178]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esi + 0x17c]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x44]
push edx
mov dword [esp + 0xac], ecx
push eax
lea ecx, [esp + 0xa4]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x9c]
add eax, 0x170
push edx
push eax
push eax
call dword [sym.imp.USER32.dll_UnionRect]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
push eax
add ecx, 0x24
call fcn.00585da0
jmp 0x588ff0
mov dword [esp + 0x10], esi
cmp dword [esp + 0x28], 0
je 0x589000
mov eax, dword [esp + 0x28]
jmp 0x588ba1
mov eax, dword [esp + 0x24]
mov esi, dword [eax + 0x24]
add eax, 0x24
test esi, esi
je 0x58902f
mov edi, edi
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x587037
mov eax, esi
mov ecx, dword [eax + 8]
mov esi, dword [esi]
call fcn.00594660
test esi, esi
jne 0x589010
mov ebx, dword [esp + 0xb4]
mov edi, dword [esp + 0xf8]
mov eax, dword [ebx]
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x80]
push ecx
add edi, 4
push eax
mov ecx, edi
call fcn.00583250
test eax, eax
je 0x589076
mov eax, dword [eax + 4]
test eax, eax
je 0x58909e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
jmp 0x58909e
mov esi, dword [esp + 0xf8]
mov ecx, dword [esi + 0x38]
add esi, 0x34
push 0
push ecx
push ebx
mov ecx, esi
call fcn.00437500
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x589099
mov dword [ecx], eax
jmp 0x58909b
mov dword [esi], eax
mov dword [esi + 4], eax
mov ebx, dword [ebx]
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebx
mov ecx, edi
call fcn.00583250
test eax, eax
jne 0x5890f2
cmp dword [edi], eax
jne 0x5890dd
mov edx, dword [edi + 8]
push 1
push edx
mov ecx, edi
call fcn.005832f0
test al, al
jne 0x5890dd
push 0x8007000e
call fcn.00401480
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push ebx
mov ecx, edi
call fcn.005855b0
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0xf8]
mov dword [eax + 4], edi
call fcn.005866f0
mov ecx, dword [esp + 0x60]
add ecx, 8
call fcn.00586490
lea ecx, [esp + 0xd8]
call fcn.004cd340
mov esi, dword [esp + 0x5c]
test esi, esi
mov byte [esp + 0x16c], 3
je 0x58913d
mov ecx, esi
call fcn.00586000
push esi
call fcn.0059b05f
add esp, 4
lea ecx, [esp + 0x7c]
call fcn.00583530
lea ecx, [esp + 0xfc]
call fcn.00586000
mov ecx, dword [esp + 0x164]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc