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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
lea eax, [ebp - 0x20]
mov edx, dword [0x66197c]
call fcn.0040ac14
xor eax, eax
push ebp
push 0x649fec
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x21], 0
test esi, esi
je 0x649fc0
mov byte [ebp - 0x21], 1
mov edx, 7
mov eax, esi
call fcn.0065ee14
test al, al
jne 0x649fc0
mov eax, dword [0x762b74]
mov byte [eax], 1
lea edx, [ebp - 0x40]
mov eax, esi
call fcn.0065f0e4
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 4]
call fcn.00423264
mov edx, 0xfffffff0
mov eax, esi
call fcn.00412be0
mov dword [ebp - 0x28], eax
xor ebx, ebx
lea eax, [ebp - 0x1c]
call fcn.004092a4
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 8], 0xffffffff
mov byte [ebp - 0x17], 1
mov byte [ebp - 0x18], 1
mov eax, dword [ebp - 4]
mov edx, 0x64a00c
call fcn.0040a5e4
jne 0x6496af
mov eax, dword [ebp - 0x28]
and eax, 0x1f
mov edx, dword [ebp - 0x28]
and edx, 3
cmp edx, 3
je 0x6495eb
mov edx, dword [ebp - 0x28]
and edx, 0xe
cmp edx, 0xe
jne 0x649662
mov edx, 0xffffffec
mov eax, esi
call fcn.00412be0
and eax, 0x20000
cmp eax, 0x20000
jne 0x649639
lea eax, [ebp - 0x1c]
mov edx, 0x64a028
call fcn.004096cc
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x6631c0]
call fcn.0067a640
mov ebx, eax
jmp 0x649f90
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x663300]
call fcn.0067a640
mov ebx, eax
jmp 0x649f90
mov edx, dword [ebp - 0x28]
and edx, 0xd
cmp edx, 0xd
je 0x649f90
add eax, 0xfffffffb
sub eax, 2
jb 0x649f90
sub eax, 4
je 0x649f90
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x663014]
call fcn.0067a640
mov ebx, eax
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a040
call fcn.0040a5e4
jne 0x6496e7
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x66535c]
call fcn.0067a640
mov ebx, eax
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a05c
call fcn.0040a5e4
jne 0x64982f
lea eax, [ebp - 0x1c]
mov edx, 0x64a078
call fcn.004096cc
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x665af8]
call fcn.0067a640
mov ebx, eax
mov eax, esi
call fcn.005222d4
mov edx, dword [ebx + 0x6c]
mov dword [edx + 0x44], eax
mov eax, dword [ebx + 0x6c]
mov esi, dword [eax + 0x44]
test esi, esi
je 0x649f90
mov eax, esi
mov edx, dword [0x51d5fc]
call fcn.004078ac
test al, al
je 0x649f90
mov eax, esi
call fcn.0052a648
dec eax
test eax, eax
jl 0x64980d
inc eax
mov dword [ebp - 0x2c], eax
xor esi, esi
mov eax, dword [ebx + 0x6c]
mov eax, dword [eax + 0x44]
mov edx, esi
call fcn.0052a60c
mov edx, dword [0x537d44]
call fcn.004078ac
test al, al
je 0x6497cc
mov eax, dword [ebx + 0x6c]
mov eax, dword [eax + 0x44]
mov edx, esi
call fcn.0052a60c
mov eax, dword [eax + 0x6c]
push eax
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
call fcn.006c5718
mov edx, eax
pop eax
call fcn.004ff7f4
mov eax, dword [ebx + 0x6c]
mov eax, dword [eax + 0x44]
mov edx, esi
call fcn.0052a60c
mov dl, 1
call fcn.00544280
jmp 0x649803
mov eax, dword [ebx + 0x6c]
mov eax, dword [eax + 0x44]
mov edx, esi
call fcn.0052a60c
mov edx, dword [0x51d5fc]
call fcn.004078ac
test al, al
je 0x649803
mov eax, dword [ebx + 0x6c]
mov eax, dword [eax + 0x44]
mov edx, esi
call fcn.0052a60c
call fcn.0052ed68
mov edx, eax
mov eax, edi
call fcn.00649508
inc esi
dec dword [ebp - 0x2c]
jne 0x649771
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
call fcn.006c5710
mov edx, eax
mov eax, dword [ebx + 0x6c]
mov eax, dword [eax + 0x44]
call fcn.00525cd4
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a098
call fcn.0040a5e4
jne 0x6498b6
lea eax, [ebp - 0x1c]
mov edx, 0x64a0c8
call fcn.004096cc
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x665af8]
call fcn.0067a640
mov ebx, eax
mov eax, esi
call fcn.005222d4
mov edx, dword [ebx + 0x6c]
mov dword [edx + 0x44], eax
mov eax, dword [ebx + 0x6c]
cmp dword [eax + 0x44], 0
je 0x6498a7
mov eax, dword [ebx + 0x6c]
mov eax, dword [eax + 0x44]
mov esi, ebx
mov dword [esi + 0x78], eax
mov eax, dword [ebx + 0x6c]
mov eax, dword [eax + 0x44]
xor edx, edx
call fcn.00525b54
mov eax, dword [esi + 0x78]
mov dword [eax + 0xc], 0x3e7
mov eax, dword [ebx + 0x6c]
mov byte [eax + 0x80], 1
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a0e8
call fcn.0040a5e4
jne 0x64992a
mov eax, dword [edi + 0x40]
test eax, eax
je 0x6498d3
mov byte [eax + 0xa9], 0
push esi
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x649f90
lea eax, [ebp - 0x1c]
mov edx, 0x64a028
call fcn.004096cc
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x20]
xor al, 1
push eax
mov ecx, esi
mov dl, 1
mov eax, dword [0x6663b8]
call fcn.00670608
mov ebx, eax
mov byte [ebx + 4], 1
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a100
call fcn.0040a5e4
je 0x64994c
mov eax, dword [ebp - 4]
mov edx, 0x64a11c
call fcn.0040a5e4
jne 0x649a3f
mov eax, dword [ebp - 0x28]
and eax, 7
cmp eax, 7
jne 0x64998d
lea eax, [ebp - 0x1c]
mov edx, 0x64a0c8
call fcn.004096cc
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x6654d8]
call fcn.0067a640
mov ebx, eax
jmp 0x649f90
mov eax, dword [ebp - 0x28]
and eax, 3
cmp eax, 3
je 0x6499ae
mov eax, dword [ebp - 0x28]
and eax, 2
cmp eax, 2
je 0x6499ae
mov eax, dword [ebp - 0x28]
and eax, 5
cmp eax, 5
jne 0x6499d7
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x6647b4]
call fcn.0067a640
mov ebx, eax
jmp 0x649f90
mov eax, dword [ebp - 0x28]
and eax, 9
cmp eax, 9
je 0x6499ed
mov eax, dword [ebp - 0x28]
and eax, 4
cmp eax, 4
jne 0x649a16
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x6647b4]
call fcn.0067a640
mov ebx, eax
jmp 0x649f90
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x6635a4]
call fcn.0067a640
mov ebx, eax
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a138
call fcn.0040a5e4
jne 0x649aa5
mov eax, dword [edi + 0x40]
test eax, eax
je 0x649a5c
mov byte [eax + 0xa9], 0
lea eax, [ebp - 0x1c]
mov edx, 0x64a158
call fcn.004096cc
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x20]
xor al, 1
push eax
mov ecx, esi
mov dl, 1
mov eax, dword [0x6678e4]
call fcn.00670608
mov ebx, eax
mov byte [ebx + 4], 1
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a178
call fcn.0040a5e4
jne 0x649af8
mov eax, dword [edi + 0x40]
test eax, eax
je 0x649ac2
mov byte [eax + 0xa9], 0
lea eax, [ebp - 0x1c]
mov edx, 0x64a158
call fcn.004096cc
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x6663b8]
call fcn.00670608
mov ebx, eax
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a198
call fcn.0040a5e4
jne 0x649b4b
mov eax, dword [edi + 0x40]
test eax, eax
je 0x649b15
mov byte [eax + 0xa9], 0
lea eax, [ebp - 0x1c]
mov edx, 0x64a158
call fcn.004096cc
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x6678e4]
call fcn.00670608
mov ebx, eax
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a1c0
call fcn.0040a5e4
jne 0x649ba1
mov edx, 0xfffffff0
mov eax, esi
call fcn.00412be0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
and eax, 0x10
cmp eax, 0x10
jne 0x649f90
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x663eac]
call fcn.0067a640
mov ebx, eax
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a1e0
call fcn.0040a5e4
jne 0x649bf9
mov eax, dword [ebp - 0x28]
and eax, 0x2000
cmp eax, 0x2000
je 0x649f90
lea eax, [ebp - 0x1c]
mov edx, 0x64a20c
call fcn.004096cc
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x66835c]
call fcn.0067a640
mov ebx, eax
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a230
call fcn.0040a5e4
jne 0x649c42
lea eax, [ebp - 0x1c]
mov edx, 0x64a028
call fcn.004096cc
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x666cd8]
call fcn.00670608
mov ebx, eax
mov byte [ebx + 4], 1
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a258
call fcn.0040a5e4
jne 0x649c8e
lea eax, [ebp - 0x1c]
mov edx, 0x64a284
call fcn.004096cc
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x66401c]
call fcn.0067a640
mov ebx, eax
mov dword [ebx + 0x78], 2
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a2b4
call fcn.0040a5e4
jne 0x649cd3
lea eax, [ebp - 0x1c]
mov edx, 0x64a2e4
call fcn.004096cc
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x66427c]
call fcn.0067a640
mov ebx, eax
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a304
call fcn.0040a5e4
jne 0x649d2a
mov eax, dword [edi + 0x40]
test eax, eax
je 0x649cf0
mov byte [eax + 0xa9], 0
lea eax, [ebp - 0x1c]
mov edx, 0x64a028
call fcn.004096cc
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x6663b8]
call fcn.00670608
mov ebx, eax
mov byte [ebx + 4], 1
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a320
call fcn.0040a5e4
je 0x649d48
mov eax, dword [ebp - 4]
mov edx, 0x64a344
call fcn.0040a5e4
jne 0x649d71
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x663478]
call fcn.0067a640
mov ebx, eax
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a360
call fcn.0040a5e4
jne 0x649e08
mov edx, 0xfffffff0
mov eax, esi
call fcn.00412be0
and eax, 0x200
cmp eax, 0x200
jne 0x649dd2
lea eax, [ebp - 0x1c]
mov edx, 0x64a38c
call fcn.004096cc
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x664fd0]
call fcn.0067a640
mov ebx, eax
jmp 0x649f90
lea eax, [ebp - 0x1c]
mov edx, 0x64a078
call fcn.004096cc
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x664fd0]
call fcn.0067a640
mov ebx, eax
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a3a0
call fcn.0040a5e4
jne 0x649e51
lea eax, [ebp - 0x1c]
mov edx, 0x64a028
call fcn.004096cc
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x6676c0]
call fcn.00673ebc
mov ebx, eax
mov byte [ebx + 4], 1
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a3c8
call fcn.0040a5e4
jne 0x649e89
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x66535c]
call fcn.0067a640
mov ebx, eax
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a3f8
call fcn.0040a5e4
je 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a424
call fcn.0040a5e4
je 0x649f14
mov eax, dword [ebp - 4]
mov edx, 0x64a44c
call fcn.0040a5e4
je 0x649f14
mov eax, dword [ebp - 4]
mov edx, 0x64a47c
call fcn.0040a5e4
je 0x649f14
mov eax, dword [ebp - 4]
mov edx, 0x64a4b0
call fcn.0040a5e4
je 0x649f14
mov eax, dword [ebp - 4]
mov edx, 0x64a4e0
call fcn.0040a5e4
je 0x649f14
mov eax, dword [ebp - 4]
mov edx, 0x64a4fc
call fcn.0040a5e4
je 0x649f14
mov eax, dword [ebp - 4]
mov edx, 0x64a520
call fcn.0040a5e4
je 0x649f14
mov eax, dword [ebp - 4]
mov edx, 0x64a544
call fcn.0040a5e4
jne 0x649f44
push esi
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x649f90
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x664b9c]
call fcn.0067a640
mov ebx, eax
jmp 0x649f90
mov eax, dword [ebp - 4]
mov edx, 0x64a574
call fcn.0040a5e4
jne 0x649f90
lea eax, [ebp - 0x3c]
push eax
push esi
call sub.user32.dll_GetWindowRect
lea eax, [ebp - 0x3c]
xor edx, edx
call fcn.006bd050
cmp eax, 0x18
jne 0x649f90
push 0
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x6c]
call fcn.006dd8ac
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x664e08]
call fcn.0067a640
mov ebx, eax
test ebx, ebx
je 0x649fb8
mov eax, dword [edi + 0x44]
mov edx, ebx
call fcn.004ac6d4
lea eax, [ebx + 0x2c]
push eax
lea eax, [ebx + 0x1c]
push eax
lea eax, [ebx + 0x24]
push eax
lea ecx, [ebx + 0xc]
lea edx, [ebx + 0x3c]
mov eax, dword [edi + 0x38]
call fcn.006697dc
mov eax, dword [0x762b74]
mov byte [eax], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x649ff3
lea eax, [ebp - 0x40]
call fcn.004092a4
lea eax, [ebp - 0x20]
mov edx, dword [0x66197c]
call fcn.0040acec
lea eax, [ebp - 4]
call fcn.004092a4
ret