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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56c081
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [ebx + 0x1ac], esi
sete al
test al, al
jne 0x487e30
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x1b0], esi
mov dword [ebx + 0x1b8], eax
mov dword [ebx + 0x1bc], ecx
mov eax, dword [ebx + 0x1ac]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
cmp eax, esi
jne 0x486dfc
push 0x80004003
call fcn.0053c010
mov edx, dword [eax]
mov edx, dword [edx + 0x40]
lea ecx, [esp + 0x2c]
push ecx
push eax
call edx
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x38]
sub edi, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x1ac]
mov dword [esp + 0x64], edi
cmp eax, esi
jne 0x486e39
push 0x80004003
call fcn.0053c010
push 0
push 0x3ed
lea esi, [esp + 0xa8]
call fcn.0046fb00
xor edx, edx
mov dword [esp + 0xd8], edx
mov eax, dword [eax]
push ecx
mov ecx, esp
mov dword [esp + 0x74], edx
mov dword [esp + 0x14], esp
mov dword [ecx], eax
cmp eax, edx
je 0x486e70
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea esi, [esp + 0x74]
call fcn.004726d0
test eax, eax
jge 0x486e8a
cmp eax, 0x80004002
je 0x486e8a
push eax
call fcn.0053c010
mov byte [esp + 0xd8], 2
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x486ea5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebx + 0x1ac]
test eax, eax
jne 0x486eb9
push 0x80004003
call fcn.0053c010
push 0
push 0x3ee
lea esi, [esp + 0xa4]
call fcn.0046fb00
mov byte [esp + 0xd8], 3
mov eax, dword [eax]
push ecx
mov ecx, esp
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], esp
mov dword [ecx], eax
test eax, eax
je 0x486ef3
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea esi, [esp + 0x24]
call fcn.004726d0
test eax, eax
jge 0x486f0d
cmp eax, 0x80004002
je 0x486f0d
push eax
call fcn.0053c010
mov byte [esp + 0xd8], 5
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x486f28
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebx + 0x1ac]
test eax, eax
jne 0x486f3c
push 0x80004003
call fcn.0053c010
push 0
push 0x3ef
lea esi, [esp + 0xa0]
call fcn.0046fb00
mov byte [esp + 0xd8], 6
mov eax, dword [eax]
push ecx
mov ecx, esp
mov dword [esp + 0x70], 0
mov dword [esp + 0x14], esp
mov dword [ecx], eax
test eax, eax
je 0x486f76
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea esi, [esp + 0x70]
call fcn.00472750
test eax, eax
jge 0x486f90
cmp eax, 0x80004002
je 0x486f90
push eax
call fcn.0053c010
mov byte [esp + 0xd8], 8
mov eax, dword [esp + 0x98]
test eax, eax
je 0x486fab
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov eax, dword [ebx + 0x1ac]
mov dword [esp + 0x88], 0
test eax, eax
jne 0x486fe1
push 0x80004003
call fcn.0053c010
push 0
push 0x1f40
lea esi, [esp + 0x24]
call fcn.0046fb00
mov byte [esp + 0xd8], 9
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x48703a
mov eax, dword [esi]
mov edx, dword [eax + 0x40]
lea ecx, [esp + 0x2c]
push ecx
push esi
call edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], eax
mov byte [esp + 0xd8], 8
test esi, esi
je 0x48704e
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov esi, dword [esp + 0x70]
mov dword [esp + 0x14], 0
test esi, esi
je 0x48749d
cmp dword [esp + 0x20], 0
je 0x48749d
cmp dword [esp + 0x6c], 0
je 0x48749d
movzx eax, byte [ebx + 0x1c7]
xor edi, edi
push edi
push eax
push ecx
mov eax, esp
mov dword [eax], esi
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov dword [esp + 0x1c], esp
push esi
call edx
mov eax, dword [ebx + 0x30]
push eax
mov ecx, edi
xor dl, dl
call fcn.00492180
mov ecx, dword [esi]
add esp, 0x10
mov edi, edx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0x40]
push esi
call eax
cmp byte [ebx + 0x1c7], 0
je 0x4870e6
call fcn.0046c450
cmp byte [eax + 0xc], 0
je 0x4870df
mov eax, dword [eax]
cmp eax, 0x64
je 0x4870df
push 0x64
push eax
push 0x14
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x4870e8
mov eax, 0x14
jmp 0x4870e8
xor eax, eax
lea ecx, [edi + eax]
add ecx, dword [esp + 0x30]
push 1
mov dword [esp + 0x3c], ecx
mov edx, dword [esi]
mov ecx, dword [edx + 0x44]
lea eax, [esp + 0x30]
push eax
push esi
call ecx
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
cmp byte [ebx + 0x1c7], al
je 0x487145
call fcn.0046c450
cmp byte [eax + 0xc], 0
je 0x48713e
mov eax, dword [eax]
cmp eax, 0x64
je 0x48713e
push 0x64
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x487147
mov eax, 0xa
jmp 0x487147
xor eax, eax
lea esi, [edi + eax]
add esi, dword [esp + 0x30]
mov dword [esp + 0x28], esi
call fcn.0046c450
cmp byte [eax + 0xc], 0
je 0x487178
mov eax, dword [eax]
cmp eax, 0x64
je 0x487178
push 0x64
push eax
push 0x8a
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x64], eax
jmp 0x487180
mov dword [esp + 0x64], 0x8a
mov edx, dword [esp + 0x38]
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], esp
call fcn.00472530
call fcn.0048b6e0
add esp, 4
cmp al, 1
jne 0x48735d
mov esi, dword [esp + 0x20]
xor edi, edi
push edi
push edi
push ecx
mov eax, esp
mov dword [eax], esi
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], esp
push esi
call ecx
mov edx, dword [ebx + 0x30]
push edx
mov ecx, edi
xor dl, dl
call fcn.00492180
add esp, 0x10
lea ecx, [esp + 0x50]
mov dword [esp + 0x3c], eax
mov eax, dword [esi]
push ecx
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0x40]
push esi
call edx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x88]
push edi
mov dword [esp + 0x84], eax
add ecx, edx
push 0x3ec
lea eax, [ebx + 0x1ac]
mov dword [esp + 0x80], ecx
call fcn.0046f8d0
lea esi, [esp + 0x24]
call fcn.0046fb00
lea ecx, [esp + 0x18]
mov byte [esp + 0xd8], 0xa
call fcn.00483950
mov byte [esp + 0xd8], 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x487260
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4872d5
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x14], esp
call fcn.00472530
call fcn.0048b6e0
add esp, 4
cmp al, 1
jne 0x4872d5
mov eax, dword [esi]
mov edx, dword [eax + 0x40]
lea ecx, [esp + 0x50]
push ecx
push esi
call edx
mov eax, dword [esp + 0x5c]
cmp eax, dword [esp + 0x78]
jl 0x4872d5
mov ecx, dword [esp + 0x58]
cmp ecx, dword [esp + 0x74]
jl 0x4872d5
call fcn.0046c450
cmp byte [eax + 0xc], 0
je 0x4872c6
mov eax, dword [eax]
cmp eax, 0x64
je 0x4872c6
push 0x64
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, eax
jmp 0x4872cb
mov edi, 0xa
mov edx, dword [esp + 0x5c]
add edx, edi
mov dword [esp + 0x78], edx
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x20]
add eax, ecx
mov dword [esp + 0x80], eax
mov edx, dword [esi]
mov ecx, dword [edx + 0x44]
push 1
lea eax, [esp + 0x78]
push eax
push esi
call ecx
mov edx, dword [esp + 0x40]
add edx, edi
add edx, dword [esp + 0x88]
add dword [esp + 0x28], edx
call fcn.0046c450
cmp byte [eax + 0xc], 0
je 0x487330
mov eax, dword [eax]
cmp eax, 0x64
je 0x487330
push 0x64
push eax
push 0x96
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x64], eax
jmp 0x487338
mov dword [esp + 0x64], 0x96
mov eax, dword [esp + 0x80]
mov dword [esp + 0x14], eax
mov byte [esp + 0xd8], 8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x48736c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x48736c
add esi, dword [esp + 0x88]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x20]
push ecx
lea eax, [esp + 0x70]
mov ecx, esp
mov dword [esp + 0x14], esp
call fcn.00472530
call fcn.0048b6e0
add esp, 4
cmp al, 1
jne 0x48747b
mov edi, dword [esp + 0x6c]
mov eax, dword [edi]
mov edx, dword [eax + 0x40]
lea ecx, [esp + 0x3c]
push ecx
push edi
call edx
mov esi, dword [esp + 0x48]
sub esi, dword [esp + 0x40]
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x14], esp
call fcn.00472530
call fcn.0048b6e0
movzx eax, al
add esp, 4
neg eax
sbb eax, eax
and eax, dword [esp + 0x88]
push 1
add eax, dword [esp + 0x2c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], eax
add eax, esi
mov dword [esp + 0x4c], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x44]
push ecx
push edi
call edx
mov eax, dword [esp + 0x90]
add eax, esi
add dword [esp + 0x28], eax
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x14], esp
call fcn.00472530
call fcn.0048b6e0
add esp, 4
test al, al
je 0x487441
call fcn.0046c450
cmp byte [eax + 0xc], 0
je 0x487437
mov eax, dword [eax]
cmp eax, 0x64
je 0x487437
push 0x64
push eax
push 0xa9
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x64], eax
jmp 0x48746f
mov dword [esp + 0x64], 0xa9
jmp 0x48746f
call fcn.0046c450
cmp byte [eax + 0xc], 0
je 0x487467
mov eax, dword [eax]
cmp eax, 0x64
je 0x487467
push 0x64
push eax
push 0x96
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x64], eax
jmp 0x48746f
mov dword [esp + 0x64], 0x96
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x70]
mov edx, dword [eax]
push 1
push eax
mov eax, dword [edx + 0x9c]
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x9c]
push 1
push esi
call edx
mov edi, dword [esp + 0x28]
mov eax, dword [ebx + 0x218]
sub eax, dword [ebx + 0x214]
test eax, 0xfffffff0
je 0x48779c
mov esi, ebx
call fcn.00489650
mov eax, dword [ebx + 0x218]
sub eax, dword [ebx + 0x214]
xor ecx, ecx
sar eax, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
cmp eax, ecx
jbe 0x487723
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0x218]
sub ecx, dword [ebx + 0x214]
sar ecx, 4
cmp dword [esp + 0x18], ecx
jb 0x4874fa
call fcn.0053d6a6
mov edi, dword [ebx + 0x214]
add edi, dword [esp + 0x1c]
xor edx, edx
movzx ecx, word [edi + 8]
cmp dx, cx
je 0x48756e
mov eax, dword [ebx + 0x1ac]
test eax, eax
je 0x486df2
push 1
push ecx
lea esi, [esp + 0x8c]
call fcn.0046fb00
mov byte [esp + 0xd8], 0xd
mov esi, dword [esp + 0x84]
test esi, esi
je 0x48755a
mov eax, dword [esi]
mov edx, dword [eax + 0x40]
lea ecx, [esp + 0xbc]
push ecx
push esi
call edx
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x14], eax
mov byte [esp + 0xd8], 8
test esi, esi
je 0x48756e
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov esi, dword [edi + 0xc]
cmp esi, 0xffffffff
je 0x487600
mov eax, dword [ebx + 0x218]
sub eax, dword [ebx + 0x214]
sar eax, 4
cmp esi, eax
jge 0x487600
mov ecx, dword [ebx + 0x218]
sub ecx, dword [ebx + 0x214]
sar ecx, 4
cmp esi, ecx
jb 0x4875a5
call fcn.0053d6a6
shl esi, 4
add esi, dword [ebx + 0x214]
push ecx
mov eax, dword [esi]
mov ecx, esp
mov dword [esp + 0x18], esi
mov dword [esp + 0x40], esp
mov dword [ecx], eax
test eax, eax
je 0x4875c9
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0xa8]
call fcn.00492c10
mov ecx, dword [eax]
mov edx, dword [eax + 8]
mov dword [esp + 0x78], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x18]
add esp, 4
sub ecx, dword [edx + 4]
mov dword [esp + 0x80], eax
mov dword [esp + 0x14], ecx
mov eax, dword [edi]
test eax, eax
je 0x486df2
mov ecx, dword [eax]
lea edx, [esp + 0x68]
push edx
push eax
mov eax, dword [ecx + 0xa8]
call eax
mov eax, dword [esp + 0x68]
cmp eax, 3
je 0x4876ba
cmp eax, 2
je 0x4876ba
cmp eax, 9
je 0x4876ba
cmp eax, 1
je 0x4876ba
cmp eax, 0xb
jne 0x48770b
xor esi, esi
push esi
push esi
push ecx
mov eax, edi
mov ecx, esp
mov dword [esp + 0x48], esp
call fcn.004724f0
mov ecx, dword [ebx + 0x30]
push ecx
mov ecx, esi
xor dl, dl
call fcn.00492180
mov dword [esp + 0x4c], eax
mov eax, dword [edi]
add esp, 0x10
mov esi, edx
test eax, eax
je 0x486df2
mov edx, dword [eax]
mov edx, dword [edx + 0x40]
lea ecx, [esp + 0x50]
push ecx
push eax
call edx
mov eax, dword [edi + 4]
add eax, dword [esp + 0x14]
mov edi, dword [edi]
add esi, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], esi
test edi, edi
je 0x486df2
mov eax, dword [edi]
mov edx, dword [eax + 0x44]
push 1
lea ecx, [esp + 0x54]
push ecx
push edi
call edx
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x14], eax
jmp 0x48770b
mov eax, dword [edi]
test eax, eax
je 0x486df2
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x38]
add ecx, dword [esp + 0x14]
sub eax, dword [esp + 0x30]
mov edi, dword [edi]
mov dword [esp + 0x30], ecx
add ecx, eax
mov dword [esp + 0x38], ecx
test edi, edi
je 0x486df2
mov ecx, dword [edi]
mov eax, dword [ecx + 0x44]
push 1
lea edx, [esp + 0x30]
push edx
push edi
call eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x18]
add dword [esp + 0x1c], 0x10
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x10]
jb 0x4874e0
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x64], edx
mov edi, dword [esp + 0x64]
jg 0x487733
mov edi, edx
test byte [0x5d1200], 1
jne 0x487771
or dword [0x5d1200], 1
mov eax, 0x60
mov dword [0x5d1204], 0x64
mov dword [0x5d1208], eax
mov dword [0x5d120c], eax
mov byte [0x5d1210], 0
call fcn.00403ca0
test al, al
jne 0x487771
call fcn.0046c3f0
cmp byte [0x5d1210], 0
je 0x487793
mov eax, dword [0x5d1204]
cmp eax, 0x64
je 0x487793
push 0x64
push eax
push 0x1f
call dword [sym.imp.KERNEL32.dll_MulDiv]
add edi, eax
jmp 0x4877d2
mov eax, 0x1f
add edi, eax
jmp 0x4877d2
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x40], esp
call fcn.00472530
call fcn.0048b6e0
movzx eax, al
add esp, 4
neg eax
sbb eax, eax
and eax, dword [esp + 0x8c]
add edi, eax
mov eax, dword [esp + 0x64]
cmp eax, edi
mov dword [esp + 0x28], edi
jle 0x4877d6
mov edi, eax
mov dword [esp + 0x28], edi
mov eax, dword [ebp + 0xc]
cmp eax, 4
jne 0x48786b
mov eax, dword [ebx + 0x1ac]
push 0
push ecx
mov ecx, esp
mov esi, 0x22b7
mov dword [esp + 0x44], esp
mov dword [ecx], eax
test eax, eax
je 0x487804
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, esi
call fcn.0048b750
mov eax, dword [ebx + 0x1ac]
add esp, 8
push 0
push ecx
mov ecx, esp
mov esi, 1
mov dword [esp + 0x44], esp
mov dword [ecx], eax
test eax, eax
je 0x487830
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, esi
call fcn.0048b750
mov eax, dword [ebx + 0x1ac]
add esp, 8
push 0
push ecx
mov ecx, esp
mov esi, 2
mov dword [esp + 0x44], esp
mov dword [ecx], eax
test eax, eax
je 0x48785c
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, esi
call fcn.0048b750
add esp, 8
jmp 0x487d63
cmp eax, 1
je 0x487b81
cmp eax, 2
je 0x487b81
test eax, eax
je 0x48788a
cmp eax, 3
jne 0x487d63
mov edi, dword [ebx + 0x1c8]
mov eax, dword [ebx + 0x1ac]
dec edi
neg edi
sbb edi, edi
add edi, 2
test eax, eax
jne 0x4878ac
push 0x80004003
call fcn.0053c010
movzx ecx, word [ebx + 0x1c8]
push 0
push ecx
lea esi, [esp + 0x20]
call fcn.0046fb00
mov byte [esp + 0xd8], 0x11
mov eax, dword [ebx + 0x1ac]
test eax, eax
jne 0x4878db
push 0x80004003
call fcn.0053c010
push 0
push edi
lea esi, [esp + 0x1c]
call fcn.0046fb00
mov byte [esp + 0xd8], 0x12
mov edi, dword [esp + 0x18]
test edi, edi
je 0x487b51
cmp dword [esp + 0x14], 0
je 0x487b51
lea edx, [ebx + 0x1cc]
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
lea esi, [eax + ecx]
mov eax, dword [ebx + 0x1fc]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x200]
push ecx
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x44], esi
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [edi]
mov ecx, dword [edx + 0x44]
push 1
lea eax, [esp + 0x30]
push eax
push edi
call ecx
lea edx, [ebx + 0x1dc]
push edx
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x28]
mov eax, dword [ebx + 0x1fc]
mov dword [esp + 0x54], ecx
mov ecx, dword [ebx + 0x200]
push ecx
push eax
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x68], esi
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x54]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
cmp byte [ebx + 0x250], 0
mov dword [esp + 0x28], esi
je 0x487a33
push 0
push ecx
mov eax, esp
mov dword [eax], edi
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
mov dword [esp + 0x44], esp
push edi
call edx
lea eax, [esp + 0x24]
push eax
lea ecx, [ebx + 0x54]
push ecx
call fcn.004ae970
mov byte [esp + 0xd8], 0x13
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x487a0e
lea esi, [esp + 0x10]
call fcn.004858e0
lea edi, [ebx + 0x258]
mov byte [esp + 0xd8], 0x14
call fcn.00423c70
mov ecx, esi
mov byte [esp + 0xd8], 0x13
call fcn.00423d60
mov edx, dword [ebx + 0x254]
push edx
push ebx
call fcn.00488a80
mov byte [esp + 0xd8], 0x12
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x487a33
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebx + 0x30]
mov esi, dword [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x44], esp
mov edi, esp
push 0
push ecx
mov dword [esp + 0x20], eax
mov eax, esp
mov dword [eax], esi
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov dword [esp + 0x4c], esp
push esi
call edx
lea eax, [ebx + 0x54]
push edi
push eax
call fcn.004ae970
mov edx, dword [esp + 0x18]
mov ecx, 3
call fcn.004a1dc0
mov eax, dword [ebx + 0x30]
add esp, 8
push 0
push ecx
mov dword [esp + 0x44], esp
mov edi, esp
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x24]
mov dword [ecx], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [esp + 0x4c], esp
push eax
mov dword [esp + 0x24], 3
call edx
push edi
lea eax, [ebx + 0x54]
push eax
call fcn.004ae970
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x70]
call fcn.004a1dc0
add esp, 8
lea eax, [esp + 0xa4]
push eax
call fcn.004e2e10
lea ecx, [esp + 0x18]
push ecx
lea edi, [esp + 0xa8]
mov byte [esp + 0xdc], 0x15
call fcn.00471f10
lea edx, [esp + 0x14]
push edx
call fcn.00471f10
mov ecx, dword [ebx + 0x30]
mov eax, edi
push eax
push ecx
call fcn.0048f7b0
add esp, 8
push 1
push ecx
mov eax, esp
mov dword [eax], esi
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov dword [esp + 0x44], esp
push esi
call eax
call fcn.0048b640
add esp, 8
push 1
push ecx
mov dword [esp + 0x44], esp
mov eax, dword [esp + 0x1c]
mov ecx, esp
mov dword [ecx], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
call fcn.0048b640
add esp, 8
mov eax, edi
push eax
call fcn.004a90c0
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.0053c152
add esp, 4
mov edi, esi
mov byte [esp + 0xd8], 0x11
mov eax, dword [esp + 0x14]
test eax, eax
je 0x487b69
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [esp + 0xd8], 8
test edi, edi
je 0x487d63
mov ecx, dword [edi]
push edi
jmp 0x487d5e
mov eax, dword [ebx + 0x1ac]
test eax, eax
jne 0x487b95
push 0x80004003
call fcn.0053c010
xor ecx, ecx
cmp dword [ebp + 0xc], 1
push 0
setne cl
lea esi, [esp + 0x20]
inc ecx
push ecx
call fcn.0046fb00
mov byte [esp + 0xd8], 0xe
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x487ce7
cmp byte [ebx + 0x250], 0
je 0x487c55
push 0
push ecx
mov eax, esp
mov dword [eax], esi
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov dword [esp + 0x44], esp
push esi
call eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [ebx + 0x54]
push edx
call fcn.004ae970
mov byte [esp + 0xd8], 0xf
mov eax, dword [esp + 0x18]
test eax, eax
je 0x487c30
lea esi, [esp + 0x10]
call fcn.004858e0
lea edi, [ebx + 0x258]
mov byte [esp + 0xd8], 0x10
call fcn.00423c70
mov ecx, esi
mov byte [esp + 0xd8], 0xf
call fcn.00423d60
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
mov eax, dword [ebx + 0x254]
push eax
push ebx
call fcn.00488a80
mov byte [esp + 0xd8], 0xe
mov eax, dword [esp + 0x18]
test eax, eax
je 0x487c55
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebx + 0x1cc]
mov ecx, dword [ebx + 0x1d0]
mov edx, dword [ebx + 0x1d4]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x1d8]
sub eax, ecx
add eax, edi
push 1
mov dword [esp + 0x5c], edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x58], edi
mov dword [esp + 0x88], eax
mov dword [esp + 0x60], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x44]
push ecx
push esi
call edx
mov eax, dword [ebx + 0x30]
push 0
push ecx
mov dword [esp + 0x44], esp
mov edi, esp
push 0
push ecx
mov dword [esp + 0x78], eax
mov eax, esp
mov dword [eax], esi
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov dword [esp + 0x4c], esp
push esi
mov dword [esp + 0x24], 3
call edx
push edi
lea eax, [ebx + 0x54]
push eax
call fcn.004ae970
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x70]
call fcn.004a1dc0
mov ecx, dword [esp + 0x8c]
add esp, 8
mov dword [esp + 0x28], ecx
mov edi, 1
cmp dword [ebp + 0xc], edi
sete dl
movzx eax, dl
push eax
mov eax, dword [ebx + 0x1ac]
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
mov dword [ecx], eax
test eax, eax
je 0x487d11
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, edi
call fcn.0048b750
add esp, 8
mov edi, 2
cmp dword [ebp + 0xc], edi
sete al
movzx ecx, al
mov eax, dword [ebx + 0x1ac]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
mov dword [ecx], eax
test eax, eax
je 0x487d45
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, edi
call fcn.0048b750
add esp, 8
mov byte [esp + 0xd8], 8
test esi, esi
je 0x487d63
mov ecx, dword [esi]
push esi
mov edx, dword [ecx + 8]
call edx
mov esi, dword [esp + 0x28]
add esi, dword [esp + 0x94]
cmp byte [ebx + 0x250], 0
je 0x487d8a
mov eax, dword [ebx + 0x30]
push 0
push 0x3e8
push 0x11
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [ebx + 0x30]
add ebx, 0x30
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x487dba
mov edx, dword [esp + 0x24]
push 0x21c
push esi
push edx
push eax
push eax
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebx
call fcn.00483ab0
jmp 0x487de5
mov edx, dword [ebx]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push 0x14
push esi
push eax
mov eax, dword [ebx]
push ecx
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov byte [esp + 0xd8], 5
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x487dfd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0xd8], 2
mov eax, dword [esp + 0x20]
test eax, eax
je 0x487e15
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xd8], 0xffffffff
mov eax, dword [esp + 0x70]
test eax, eax
je 0x487e30
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc