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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa4], eax
cmp dword [0x101844d0], 0
mov eax, ecx
push esi
push edi
mov dword [esp + 0x74], eax
je 0x10050812
cmp dword [0x101844c4], 0
je 0x10050812
test eax, eax
jne 0x1004f6bc
cmp dword [0x101844e8], ecx
jne 0x10050812
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x101844e8
mov dword [esp + 0x84], esi
call esi
push 0
push 0x101844c4
call esi
mov eax, dword [sym.imp.GDI32.dll_SetRectRgn]
xorps xmm0, xmm0
mov esi, dword [0x101844d0]
push 0
push 0
push 0
push 0
push dword [0x101845a8]
mov dword [esp + 0x2c], 0
mov byte [esp + 0x2f], 1
movlpd qword [esp + 0x9c], xmm0
movlpd qword [esp + 0x94], xmm0
mov byte [esp + 0x1e], 0
mov dword [esp + 0x20], eax
call eax
mov eax, dword [sym.imp.GDI32.dll_CombineRgn]
mov dword [esp + 0x1c], eax
mov eax, dword [sym.imp.USER32.dll_GetPropW]
mov dword [esp + 0x3c], eax
mov eax, dword [sym.imp.GDI32.dll_RectInRegion]
mov dword [esp + 0x5c], eax
mov eax, dword [sym.imp.GDI32.dll_SelectClipRgn]
mov dword [esp + 0x2c], eax
mov eax, dword [sym.imp.GDI32.dll_FillRgn]
mov dword [esp + 0x38], eax
mov eax, dword [sym.imp.GDI32.dll_GetRgnBox]
mov dword [esp + 0x58], eax
mov eax, dword [sym.imp.GDI32.dll_BitBlt]
mov dword [esp + 0x68], eax
mov eax, dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x6c], eax
mov eax, dword [sym.imp.GDI32.dll_StretchBlt]
mov dword [esp + 0x60], eax
mov eax, dword [sym.imp.USER32.dll_SetPropW]
mov dword [esp + 0x70], eax
mov eax, dword [sym.imp.USER32.dll_RedrawWindow]
mov dword [esp + 0x64], eax
mov eax, dword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov dword [esp + 0x78], eax
mov edi, esi
mov dword [esp + 0x54], edi
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x40], ecx
mov dword [esi + 0xf0], 0
test ecx, ecx
je 0x1004f7b6
mov edx, dword [ecx + 0xd4]
or edx, dword [esi + 0xd0]
jmp 0x1004f7bc
mov edx, dword [esi + 0xd0]
mov dword [esi + 0xd4], edx
mov ah, byte [esi + 0xe8]
mov byte [esp + 0xb], ah
mov al, ah
test dl, 8
je 0x1004f860
mov dh, byte [esi + 0x3c]
test dh, dh
je 0x1004f808
test ecx, ecx
je 0x1004f804
cmp byte [ecx + 0xe8], 0
je 0x1004f7fa
mov eax, dword [esi + 0x30]
cmp eax, dword [ecx + 0x34]
jne 0x1004f7fa
mov eax, 1
jmp 0x1004f7fc
xor eax, eax
test eax, eax
mov ah, byte [esp + 0xb]
je 0x1004f808
mov dl, 1
jmp 0x1004f80a
xor dl, dl
cmp byte [0x10184484], 0
mov al, dl
mov byte [esi + 0xe8], dl
je 0x1004f835
test ecx, ecx
je 0x1004f835
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x1004f835
cmp dword [ecx + 0x1c], 0
je 0x1004f835
mov byte [esi + 0xe8], 0
xor al, al
cmp al, ah
je 0x1004f860
push 0
xor eax, eax
test dh, dh
push 0
push dword [esi + 0xd0]
setne al
push eax
mov eax, dword [esi + 0x44]
push 0x3f3
push esi
call eax
mov al, byte [esi + 0xe8]
mov ah, byte [esp + 0xb]
mov ecx, dword [esi + 0xd4]
test cl, 6
je 0x1004fe97
test ah, ah
je 0x1004f8bf
cmp dword [esi + 0x9c], 0
je 0x1004f8bf
cmp dword [esi + 0xa0], 0
je 0x1004f8bf
push dword [esi + 0x98]
mov byte [esp + 0xe], 1
push dword [esi + 0x94]
push dword [esi + 0x90]
push dword [esi + 0x8c]
push dword [0x101844dc]
call dword [esp + 0x20]
mov eax, dword [0x101845a8]
push 2
push dword [0x101844dc]
push eax
push eax
call dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
test edx, edx
je 0x1004fa66
mov ecx, dword [edx + 0x84]
add ecx, dword [esi + 0x48]
mov dword [esp + 0x34], ecx
mov eax, ecx
mov dword [esi + 0x84], ecx
mov ecx, dword [edx + 0x88]
add ecx, dword [esi + 0x4c]
mov dword [esi + 0x88], ecx
mov edi, dword [edx + 0xac]
mov dword [esp + 0x44], ecx
cmp eax, edi
jge 0x1004f919
mov dword [esi + 0x8c], edi
mov ecx, dword [edx + 0xac]
sub ecx, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x44]
jmp 0x1004f92d
mov dword [esi + 0x8c], eax
mov edi, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0xa4], eax
mov eax, dword [edx + 0xb0]
cmp ecx, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
jge 0x1004f971
mov edx, dword [esp + 0x30]
mov dword [esi + 0x90], edx
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0xb0]
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
jmp 0x1004f987
mov dword [esi + 0x90], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xa8], ecx
mov ecx, dword [esi + 0x50]
mov dword [esp + 0x10], ecx
mov ecx, dword [edx + 0xb4]
add eax, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
cmp eax, ecx
jg 0x1004f9b6
mov ecx, dword [esp + 0x34]
sub ecx, edi
add ecx, dword [esp + 0x10]
jmp 0x1004f9b8
sub ecx, edi
lea eax, [ecx + edi]
mov dword [esi + 0x9c], ecx
mov edi, dword [esi + 0x54]
mov dword [esi + 0x94], eax
mov ecx, dword [edx + 0xb8]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x40], eax
lea eax, [edx + edi]
cmp eax, ecx
jg 0x1004f9e9
mov ecx, edx
sub ecx, dword [esp + 0x30]
add ecx, edi
jmp 0x1004f9ed
sub ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esi + 0xa0], ecx
add ecx, dword [esp + 0x48]
mov eax, dword [esi + 0x74]
add eax, edx
mov edi, dword [esp + 0x54]
cmp dword [esp + 0x20], eax
mov dword [esi + 0x98], ecx
cmovge eax, dword [esp + 0x20]
mov dword [esi + 0xac], eax
mov eax, dword [esi + 0x78]
add eax, dword [esp + 0x44]
cmp dword [esp + 0x48], eax
cmovge eax, dword [esp + 0x48]
sub edx, dword [esi + 0x7c]
mov dword [esi + 0xb0], eax
mov eax, dword [esp + 0x10]
add eax, edx
mov edx, dword [esp + 0x40]
cmp edx, eax
cmovg edx, eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0xb4], edx
mov edx, dword [esi + 0x54]
sub edx, dword [esi + 0x80]
add eax, edx
cmp ecx, eax
cmovg ecx, eax
mov dword [esi + 0xb8], ecx
jmp 0x1004fb03
mov eax, dword [esi + 0x50]
mov dword [esi + 0x9c], eax
mov dword [esi + 0xb4], eax
mov dword [esi + 0x94], eax
mov eax, dword [esi + 0x54]
push str.Tab_CanvasEx
mov dword [esi + 0xa0], eax
mov dword [esi + 0x98], eax
mov dword [esi + 0xb8], eax
mov dword [esi + 0x88], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xa4], 0
push dword [edi + 0x28]
call dword [esp + 0x44]
movd xmm2, dword [esi + 0x54]
mov ecx, eax
movd xmm1, dword [esi + 0x50]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.1002ab10
test byte [esi + 0xd0], 4
je 0x1004fb53
movd xmm2, dword [esi + 0x54]
movd xmm1, dword [esi + 0x50]
mov ecx, dword [esi + 0xec]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.1002ab10
push dword [esi + 0x54]
or dword [esi + 0xd0], 1
push dword [esi + 0x50]
or dword [esi + 0xd4], 1
push 0
push 0
push dword [esi + 0xc8]
mov dword [esi + 0xdc], 0xa
call dword [esp + 0x20]
cmp dword [esi + 0x9c], 0
jle 0x1004fbc5
cmp dword [esi + 0xa0], 0
jle 0x1004fbc5
cmp byte [esi + 0xe8], 0
je 0x1004fbc5
mov eax, dword [esi + 0xd4]
test al, 0x10
jne 0x1004fbc5
push dword [esi + 0x98]
or eax, 0x10
mov byte [esp + 0xe], 1
push dword [esi + 0x94]
mov dword [esi + 0xf0], 1
push dword [esi + 0x90]
mov dword [esi + 0xd4], eax
push dword [esi + 0x8c]
push dword [0x101844dc]
call dword [esp + 0x20]
mov eax, dword [0x101845a8]
push 2
push dword [0x101844dc]
push eax
push eax
call dword [esp + 0x2c]
test byte [esi + 0xd0], 2
je 0x1004fd2d
movss xmm1, dword [edi + 0x120]
ucomiss xmm1, dword [0x1016e6e8]
mov ecx, dword [esi + 0x54]
movd xmm0, ecx
lahf
test ah, 0x44
jp 0x1004fbf4
cvtdq2pd xmm0, xmm0
jmp 0x1004fc1e
cvtdq2ps xmm0, xmm0
sub esp, 8
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.1013d9b0
fstp qword [esp + 0x98]
movsd xmm0, qword [esp + 0x98]
add esp, 8
movss xmm1, dword [edi + 0x120]
ucomiss xmm1, dword [0x1016e6e8]
mov ecx, dword [esi + 0x50]
movsd qword [esp + 0x90], xmm0
movd xmm0, ecx
lahf
test ah, 0x44
jp 0x1004fc49
cvtdq2pd xmm0, xmm0
jmp 0x1004fc6d
cvtdq2ps xmm0, xmm0
sub esp, 8
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.1013d9b0
fstp qword [esp + 0x28]
movsd xmm0, qword [esp + 0x28]
add esp, 8
movss xmm1, dword [edi + 0x120]
ucomiss xmm1, dword [0x1016e6e8]
mov ecx, dword [esi + 0x4c]
movsd qword [esp + 0x20], xmm0
movd xmm0, ecx
lahf
test ah, 0x44
jp 0x1004fc95
cvtdq2pd xmm0, xmm0
jmp 0x1004fcb9
cvtdq2ps xmm0, xmm0
sub esp, 8
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.1013d9b0
fstp qword [esp + 0x18]
movsd xmm0, qword [esp + 0x18]
add esp, 8
movss xmm1, dword [edi + 0x120]
ucomiss xmm1, dword [0x1016e6e8]
mov ecx, dword [esi + 0x48]
movsd qword [esp + 0x10], xmm0
movd xmm0, ecx
lahf
test ah, 0x44
jp 0x1004fce1
cvtdq2pd xmm0, xmm0
jmp 0x1004fd05
cvtdq2ps xmm0, xmm0
sub esp, 8
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.1013d9b0
fstp qword [esp + 0x50]
movsd xmm0, qword [esp + 0x50]
add esp, 8
cvttsd2si eax, qword [esp + 0x90]
push eax
cvttsd2si eax, qword [esp + 0x24]
push eax
cvttsd2si eax, qword [esp + 0x18]
push eax
cvttsd2si eax, xmm0
push eax
mov eax, dword [esi + 0x44]
push 0x3ee
push esi
call eax
test byte [esi + 0xd0], 4
je 0x1004fef9
movss xmm1, dword [edi + 0x120]
ucomiss xmm1, dword [0x1016e6e8]
mov ecx, dword [esi + 0x54]
movd xmm0, ecx
lahf
test ah, 0x44
jp 0x1004fd5c
cvtdq2pd xmm0, xmm0
jmp 0x1004fd86
cvtdq2ps xmm0, xmm0
sub esp, 8
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.1013d9b0
fstp qword [esp + 0x98]
movsd xmm0, qword [esp + 0x98]
add esp, 8
movss xmm1, dword [edi + 0x120]
ucomiss xmm1, dword [0x1016e6e8]
mov ecx, dword [esi + 0x50]
movsd qword [esp + 0x90], xmm0
movd xmm0, ecx
lahf
test ah, 0x44
jp 0x1004fdb1
cvtdq2pd xmm0, xmm0
jmp 0x1004fdd5
cvtdq2ps xmm0, xmm0
sub esp, 8
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.1013d9b0
fstp qword [esp + 0x28]
movsd xmm0, qword [esp + 0x28]
add esp, 8
movss xmm1, dword [edi + 0x120]
ucomiss xmm1, dword [0x1016e6e8]
mov ecx, dword [esi + 0x4c]
movsd qword [esp + 0x20], xmm0
movd xmm0, ecx
lahf
test ah, 0x44
jp 0x1004fdfd
cvtdq2pd xmm0, xmm0
jmp 0x1004fe21
cvtdq2ps xmm0, xmm0
sub esp, 8
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.1013d9b0
fstp qword [esp + 0x18]
movsd xmm0, qword [esp + 0x18]
add esp, 8
movss xmm1, dword [edi + 0x120]
ucomiss xmm1, dword [0x1016e6e8]
mov ecx, dword [esi + 0x48]
movsd qword [esp + 0x10], xmm0
movd xmm0, ecx
lahf
test ah, 0x44
jp 0x1004fe49
cvtdq2pd xmm0, xmm0
jmp 0x1004fe6d
cvtdq2ps xmm0, xmm0
sub esp, 8
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.1013d9b0
fstp qword [esp + 0x50]
movsd xmm0, qword [esp + 0x50]
add esp, 8
cvttsd2si eax, qword [esp + 0x90]
push eax
cvttsd2si eax, qword [esp + 0x24]
push eax
cvttsd2si eax, qword [esp + 0x18]
push eax
cvttsd2si eax, xmm0
push eax
mov eax, dword [esi + 0x44]
push 0x3ef
push esi
call eax
jmp 0x1004fef9
cmp al, ah
je 0x1004fef9
cmp dword [esi + 0x9c], 0
je 0x1004fef9
cmp dword [esi + 0xa0], 0
je 0x1004fef9
push dword [esi + 0x98]
movzx eax, al
or ecx, 0x10
push dword [esi + 0x94]
mov byte [esp + 0x12], 1
push dword [esi + 0x90]
mov dword [esi + 0xf0], eax
push dword [esi + 0x8c]
mov dword [esi + 0xd4], ecx
push dword [0x101844dc]
call dword [esp + 0x20]
mov eax, dword [0x101845a8]
push 2
push dword [0x101844dc]
push eax
push eax
call dword [esp + 0x2c]
mov ecx, dword [esi + 0xd4]
and ecx, 0x10
je 0x1004ff11
movzx eax, byte [esi + 0xe8]
mov dword [esi + 0xf0], eax
cmp byte [esi + 0xe8], 0
je 0x1004ffdc
cmp dword [esi + 0x64], 0
je 0x1004ffdc
cmp dword [esi + 0x24], 0x44c
jne 0x1004ffdc
cmp dword [esi + 0x9c], 0
jle 0x1004ffdc
cmp dword [esi + 0xa0], 0
jle 0x1004ffdc
test ecx, ecx
jne 0x1004ffdc
lea eax, [esi + 0x8c]
push eax
push dword [0x101845a8]
call dword [esp + 0x64]
test eax, eax
je 0x1004ffdc
push dword [esi + 0x54]
or dword [esi + 0xd0], 1
push dword [esi + 0x50]
mov byte [esp + 0x12], 1
push 0
push 0
push dword [esi + 0xc8]
mov dword [esi + 0xf0], 1
mov dword [esi + 0xdc], 0xa
call dword [esp + 0x20]
push dword [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 0x90]
push dword [esi + 0x8c]
push dword [esi + 0xc4]
call dword [esp + 0x20]
mov eax, dword [0x101845a8]
or dword [esi + 0xd4], 0x11
push 2
push dword [esi + 0xc4]
push eax
push eax
call dword [esp + 0x2c]
test byte [esi + 0xd0], 1
je 0x10050048
cmp dword [esi + 0x9c], 0
mov dword [esi + 0xd8], 1
jle 0x10050048
cmp dword [esi + 0xa0], 0
jle 0x10050048
cmp byte [esi + 0xe8], 0
je 0x10050048
mov eax, dword [esi + 0xd4]
test al, 0x10
jne 0x10050048
mov dword [esi + 0xf0], 1
cmp dword [edi + 0xdc], 9
mov byte [esp + 0xa], 1
jle 0x10050035
or eax, 0x10
mov dword [esi + 0xd4], eax
mov eax, dword [0x101845a8]
push 2
push dword [esi + 0xc4]
push eax
push eax
call dword [esp + 0x2c]
mov dword [esi + 0xd0], 0
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x10050063
cmp dword [esi + 0x2c], 1
jg 0x1004f793
cmp byte [esp + 0xa], 0
je 0x100507e6
push str.Tab_CanvasEx
push dword [edi + 0x28]
call dword [esp + 0x44]
push str.Layered
push dword [edi + 0x28]
mov esi, eax
mov dword [esp + 0x18], esi
call dword [esp + 0x44]
push dword [0x101845a8]
mov dword [esp + 0x24], eax
push dword [esi + 0x20]
call dword [esp + 0x34]
push dword [0x10184598]
push dword [0x101845a8]
push dword [esi + 0x20]
call dword [esp + 0x44]
cmp dword [edi + 0x24], 0
jle 0x100503a9
cmp byte [edi + 0xe8], 0
je 0x100503a9
cmp dword [edi + 0x9c], 0
jle 0x100503a9
cmp dword [edi + 0xa0], 0
jle 0x100503a9
mov eax, dword [edi + 0xec]
cmp dword [eax + 0x14], 0
je 0x100503a9
cmp dword [edi + 0xd8], 0
je 0x10050318
cmp byte [edi + 0xf5], 0
jne 0x10050318
push 5
push 0
push dword [edi + 0xc8]
push dword [edi + 0xcc]
call dword [esp + 0x2c]
and dword [edi + 0xd0], 0xfffffffe
push 0
push 0
push 0
push 0
push dword [edi + 0xc8]
mov dword [edi + 0xdc], 0
call dword [esp + 0x20]
push 0
push 0
push 0
push 0
push dword [edi + 0xc4]
call dword [esp + 0x20]
cmp dword [0x101845f8], 0
mov eax, dword [edi + 0xcc]
mov byte [edi + 0xf5], 1
je 0x10050253
lea ecx, [esp + 0x90]
xorps xmm0, xmm0
push ecx
push eax
movaps xmmword [esp + 0x98], xmm0
call dword [esp + 0x60]
push dword [esp + 0x9c]
push dword [esp + 0x9c]
push dword [esp + 0x9c]
push dword [esp + 0x9c]
push dword [0x101844dc]
call dword [esp + 0x20]
mov eax, dword [edi + 0xec]
push dword [0x101844dc]
push dword [eax + 0x20]
call dword [esp + 0x34]
mov eax, dword [edi + 0xec]
push 0
push dword [0x101844dc]
push dword [eax + 0x24]
call dword [0x10185998]
push dword [0x10184598]
mov eax, dword [edi + 0xec]
push dword [0x101844dc]
push dword [eax + 0x20]
call dword [esp + 0x44]
mov ecx, dword [edi + 0xec]
test ecx, ecx
je 0x10050219
cmp dword [0x101845f8], 0
je 0x10050219
mov eax, dword [ecx + 0x2c]
test eax, eax
jg 0x10050219
inc eax
mov dword [ecx + 0x2c], eax
mov eax, dword [ecx + 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc0]
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x98]
sub eax, ecx
mov dword [esp], 0x3f800000
push 0
push eax
mov eax, dword [esp + 0xa4]
sub eax, edx
push eax
push ecx
mov ecx, dword [edi + 0xec]
call fcn.1002baa0
jmp 0x10050291
push eax
mov eax, dword [edi + 0xec]
push dword [eax + 0x20]
call dword [esp + 0x34]
mov eax, dword [edi + 0xec]
push 0
push dword [edi + 0xcc]
push dword [eax + 0x24]
call dword [0x10185998]
push dword [0x10184598]
mov eax, dword [edi + 0xec]
push dword [edi + 0xcc]
push dword [eax + 0x20]
call dword [esp + 0x44]
mov eax, dword [edi + 0xec]
push eax
push dword [eax + 0x14]
push dword [eax + 0x24]
push dword [eax + 0x20]
mov eax, dword [edi + 0x44]
push 0x3f0
push edi
call eax
cmp dword [0x101845f8], 0
je 0x10050307
mov ecx, dword [edi + 0xec]
call fcn.1002b310
mov ecx, dword [edi + 0xec]
mov dword [esp + 0x90], ecx
test ecx, ecx
je 0x10050307
cmp dword [0x101845f8], 0
je 0x10050307
mov eax, dword [ecx + 0x2c]
cmp eax, 1
jl 0x10050307
dec eax
mov dword [ecx + 0x2c], eax
call fcn.1002b310
mov ecx, dword [esp + 0x90]
push 0
push 0
mov eax, dword [ecx + 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov dword [0x101845fc], eax
mov dword [edi + 0xd8], 0
mov byte [edi + 0xf5], 0
cmp dword [edi + 0x64], 0
je 0x100503a9
mov eax, dword [edi + 0xec]
push eax
push dword [eax + 0x14]
push dword [eax + 0x20]
mov eax, dword [edi + 0x44]
push dword [esi + 0x20]
push 0x3f1
push edi
call eax
test eax, eax
jne 0x100503a9
mov eax, dword [edi + 0x64]
cmp eax, 0x100
jge 0x10050383
cmp dword [esp + 0x20], 0x100
jge 0x10050383
mov byte [esp + 0x1a], al
push dword [esp + 0x18]
mov ecx, dword [edi + 0x54]
mov edx, dword [edi + 0x50]
mov eax, dword [edi + 0xec]
push ecx
push edx
push 0
push 0
push dword [eax + 0x20]
push ecx
push edx
push 0
push 0
push dword [esi + 0x20]
call dword [0x1018594c]
jmp 0x100503a9
mov eax, dword [edi + 0xec]
push 0xcc0020
push 0
push 0
push dword [eax + 0x20]
push dword [edi + 0x54]
push dword [edi + 0x50]
push 0
push 0
push dword [esi + 0x20]
call dword [esp + 0x8c]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x10050740
mov edi, dword [esp + 0x10]
nop dword [eax + eax]
cmp dword [esi + 0x2c], 1
jle 0x1005073c
cmp byte [esi + 0xe8], 0
je 0x10050731
cmp dword [esi + 0x9c], 0
jle 0x10050731
cmp dword [esi + 0xa0], 0
jle 0x10050731
mov eax, dword [esi + 0xec]
cmp dword [eax + 0x14], 0
je 0x10050731
cmp dword [esi + 0xd8], 0
je 0x10050635
cmp byte [esi + 0xf5], 0
jne 0x10050635
push 5
push 0
push dword [esi + 0xc8]
push dword [esi + 0xcc]
call dword [esp + 0x2c]
and dword [esi + 0xd0], 0xfffffffe
push 0
push 0
push 0
push 0
push dword [esi + 0xc8]
mov dword [esi + 0xdc], 0
call dword [esp + 0x20]
push 0
push 0
push 0
push 0
push dword [esi + 0xc4]
call dword [esp + 0x20]
cmp dword [esi + 0xf8], 0
mov byte [esi + 0xf5], 1
jne 0x100505ae
cmp dword [0x101845f8], 0
mov eax, dword [esi + 0xcc]
je 0x10050570
lea ecx, [esp + 0x90]
xorps xmm0, xmm0
push ecx
push eax
movaps xmmword [esp + 0x98], xmm0
call dword [esp + 0x60]
push dword [esp + 0x9c]
push dword [esp + 0x9c]
push dword [esp + 0x9c]
push dword [esp + 0x9c]
push dword [0x101844dc]
call dword [esp + 0x20]
mov eax, dword [esi + 0xec]
push dword [0x101844dc]
push dword [eax + 0x20]
call dword [esp + 0x34]
mov eax, dword [esi + 0xec]
push 0
push dword [0x101844dc]
push dword [eax + 0x24]
call dword [0x10185998]
push dword [0x10184598]
mov eax, dword [esi + 0xec]
push dword [0x101844dc]
push dword [eax + 0x20]
call dword [esp + 0x44]
mov ecx, dword [esi + 0xec]
test ecx, ecx
je 0x10050536
cmp dword [0x101845f8], 0
je 0x10050536
mov eax, dword [ecx + 0x2c]
test eax, eax
jg 0x10050536
inc eax
mov dword [ecx + 0x2c], eax
mov eax, dword [ecx + 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc0]
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x98]
sub eax, ecx
mov dword [esp], 0x3f800000
push 0
push eax
mov eax, dword [esp + 0xa4]
sub eax, edx
push eax
push ecx
mov ecx, dword [esi + 0xec]
call fcn.1002baa0
jmp 0x100505ae
push eax
mov eax, dword [esi + 0xec]
push dword [eax + 0x20]
call dword [esp + 0x34]
mov eax, dword [esi + 0xec]
push 0
push dword [esi + 0xcc]
push dword [eax + 0x24]
call dword [0x10185998]
push dword [0x10184598]
mov eax, dword [esi + 0xec]
push dword [esi + 0xcc]
push dword [eax + 0x20]
call dword [esp + 0x44]
mov eax, dword [esi + 0xec]
push eax
push dword [eax + 0x14]
push dword [eax + 0x24]
push dword [eax + 0x20]
mov eax, dword [esi + 0x44]
push 0x3f0
push esi
call eax
cmp dword [0x101845f8], 0
je 0x10050624
mov ecx, dword [esi + 0xec]
call fcn.1002b310
mov ecx, dword [esi + 0xec]
mov dword [esp + 0x90], ecx
test ecx, ecx
je 0x10050624
cmp dword [0x101845f8], 0
je 0x10050624
mov eax, dword [ecx + 0x2c]
cmp eax, 1
jl 0x10050624
dec eax
mov dword [ecx + 0x2c], eax
call fcn.1002b310
mov ecx, dword [esp + 0x90]
push 0
push 0
mov eax, dword [ecx + 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov dword [0x101845fc], eax
mov dword [esi + 0xd8], 0
mov byte [esi + 0xf5], 0
cmp byte [0x10184485], 0
lea eax, [esi + 0x8c]
je 0x10050658
push dword [0x101844a0]
push eax
push dword [edi + 0x20]
call dword [esp + 0x78]
lea eax, [esi + 0x8c]
cmp dword [esi + 0x64], 0
je 0x10050731
cmp dword [esi + 0xf0], 0
je 0x10050690
mov eax, dword [esi + 0xec]
push eax
push dword [eax + 0x14]
push dword [eax + 0x20]
mov eax, dword [esi + 0x44]
push dword [edi + 0x20]
push 0x3f1
push esi
call eax
test eax, eax
jne 0x10050731
jmp 0x100506a3
push eax
push dword [0x101845a8]
call dword [esp + 0x64]
test eax, eax
je 0x10050731
mov eax, dword [esi + 0x64]
cmp eax, 0x100
jge 0x100506f1
mov byte [esp + 0x1a], al
push dword [esp + 0x18]
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x9c]
mov eax, dword [esi + 0xec]
push ecx
push edx
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [eax + 0x20]
push ecx
push edx
push dword [esi + 0x90]
push dword [esi + 0x8c]
push dword [edi + 0x20]
call dword [0x1018594c]
jmp 0x10050731
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x9c]
mov eax, dword [esi + 0xec]
push 0xcc0020
push ecx
push edx
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [eax + 0x20]
push ecx
push edx
push dword [esi + 0x90]
push dword [esi + 0x8c]
push dword [edi + 0x20]
call dword [esp + 0x8c]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100503c0
mov edi, dword [esp + 0x54]
push str.Tab_UpdateState
push dword [edi + 0x28]
call dword [esp + 0x44]
mov ecx, dword [edi + 0x28]
test eax, eax
je 0x10050764
push 1
push str.Tab_NeedUpdate
push ecx
call dword [esp + 0x7c]
jmp 0x100507e6
push str.Tab_RefreshCallBack
push ecx
call dword [esp + 0x44]
test eax, eax
jne 0x100507e6
push eax
mov eax, dword [esp + 0x14]
push dword [eax + 0x20]
call dword [esp + 0x34]
mov eax, dword [esp + 0x20]
cmp eax, 0xff
jle 0x100507a0
mov eax, dword [edi + 0x28]
push 0x83
push dword [0x101845a8]
push 0
push eax
call dword [esp + 0x74]
jmp 0x100507e6
mov byte [esp + 0x1a], al
mov eax, dword [edi + 0x50]
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x54]
push 2
mov dword [esp + 0x88], eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x94]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x20]
lea eax, [esp + 0x94]
push eax
push 0
push 0
push dword [edi + 0x28]
call dword [esp + 0x9c]
push 0
test esi, esi
je 0x10050806
push 0
push 0
push 0
push dword [0x101845a8]
call dword [esp + 0x20]
mov byte [esp + 0xa], 0
jmp 0x1004f78d
push 0x101844e8
call dword [esp + 0x84]
mov ecx, dword [esp + 0xac]
pop edi
pop esi
xor ecx, esp
call fcn.1013a1f3
mov esp, ebp
pop ebp
ret