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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59abc1
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x60aecc]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp eax, 2
je case.0x4a22e1.17
cmp eax, 0x11
jne 0x4a223b
xor eax, eax
mov dword [edi + 4], eax
mov ebx, dword [edi + 8]
cmp ebx, eax
mov dword [edi + 8], eax
je 0x4a223b
add dword [ebx + 4], 0xffffffff
cmp dword [ebx + 4], eax
jne 0x4a223b
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
call edx
add dword [ebx + 8], 0xffffffff
cmp dword [ebx + 8], 0
jne 0x4a223b
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
cmp dword [esi], 3
jne 0x4a2250
push 0
mov ecx, edi
call fcn.004a0980
mov ecx, eax
call fcn.004a9220
mov ecx, edi
call fcn.004a0f90
mov eax, dword [edi + 0x18]
test eax, eax
je case.0x4a22e1.17
cmp dword [eax + 8], 0
je case.0x4a22e1.17
mov ecx, dword [eax + 4]
mov ebx, dword [ecx]
cmp ebx, ecx
jne 0x4a227a
call fcn.0055d776
mov ebx, dword [ebx + 8]
test ebx, ebx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
jne 0x4a22cc
push ebx
call fcn.004988c0
mov ecx, eax
call fcn.004988a0
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi]
add edx, 0xffffffff
cmp edx, 0x11
ja case.0x4a22e1.1
movzx edx, byte [edx + 0x4a293c]
jmp dword [edx*4 + 0x4a2920]
cmp dword [edi + 0x38], 0
je 0x4a2836
mov ecx, edi
mov byte [edi + 0x29], 0
call fcn.004a12a0
lea esi, [edi + 0x30]
mov ebx, eax
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], esi
mov ecx, dword [esi + 4]
lea edx, [esp + 0x30]
mov dword [esp + 0x34], ecx
push edx
lea ecx, [esp + 0x14]
call fcn.0049ef50
test al, al
je 0x4a2836
push 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.0049f670
lea ecx, [esp + 0x28]
call fcn.0049f610
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 0x4c]
call eax
mov ecx, edi
call fcn.004a12a0
cmp ebx, eax
jne 0x4a2836
cmp byte [edi + 0x29], 0
je 0x4a2313
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x84]
push eax
mov ecx, edi
call fcn.004a0f10
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jmp 0x4a2313
cmp dword [edi + 0x38], 0
je 0x4a253c
mov dword [esp + 0x24], ecx
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.004a12a0
lea ebx, [edi + 0x30]
mov dword [esp + 0x18], eax
mov byte [edi + 0x29], 0
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x6c]
mov dword [esp + 0x70], ecx
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], ebx
call fcn.0049ef50
test al, al
je 0x4a2836
push 0
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x18]
call fcn.0049f670
lea ecx, [esp + 0x74]
call fcn.0049f610
mov eax, dword [eax]
xor ecx, ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x50]
push ecx
mov ecx, eax
mov dword [esp + 0x20], eax
call fcn.0049eb50
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x54]
call fcn.0049e970
test al, al
jne 0x4a24b7
call fcn.004988c0
mov ecx, eax
call fcn.00498c30
test eax, eax
jne 0x4a24b7
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x4c]
call edx
mov eax, dword [ebx + 4]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x20]
push edx
push eax
mov ecx, eax
mov ecx, dword [ecx]
push ebx
push ecx
mov dword [esp + 0x40], eax
lea eax, [esp + 0xa0]
push ebx
push eax
mov dword [esp + 0x44], ebx
call fcn.004a0140
add esp, 0x18
mov ecx, eax
call fcn.0049ef20
test al, al
je 0x4a24b7
mov ecx, edi
call fcn.004a12a0
cmp dword [esp + 0x18], eax
je 0x4a23c0
mov ecx, edi
call fcn.004a1ba0
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi], 8
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
jne 0x4a24dc
call fcn.004988c0
mov ecx, eax
call fcn.00498c30
test eax, eax
jne 0x4a24ea
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x44]
push eax
call fcn.0049ec20
push 0
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004a0290
mov ecx, edi
call fcn.004a12a0
cmp dword [esp + 0x18], eax
jne 0x4a2836
cmp byte [edi + 0x29], 0
je 0x4a23c0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x8c]
push ecx
mov ecx, edi
call fcn.004a0f10
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], edx
jmp 0x4a23bc
cmp dword [esi], 8
jne 0x4a2556
call fcn.004988c0
mov ecx, eax
call fcn.00498c30
cmp eax, 1
je case.0x4a22e1.17
mov edx, dword [str.overlaymouse]
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00496da0
call fcn.00401000
add esp, 4
test al, al
je 0x4a2671
mov eax, dword [edi + 0x20]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
lea esp, [esp]
mov eax, dword [edi + 0x20]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], edx
call fcn.0049ef50
test al, al
je 0x4a2671
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x54], edx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x20], eax
call fcn.0049f610
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
call fcn.0049ec20
lea ecx, [esp + 0x10]
call fcn.0049f610
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [eax]
call fcn.0049f850
mov ebx, eax
test ebx, ebx
je 0x4a262e
lea edx, [esp + 0x58]
push edx
mov ecx, ebx
call fcn.0049ec20
push 0
lea eax, [esp + 0x54]
push eax
mov ecx, ebx
call fcn.004a0290
test al, al
jne 0x4a2640
lea ecx, [esp + 0x10]
call fcn.0049f640
mov ebx, dword [esp + 0x1c]
jmp 0x4a2590
cmp byte [edi + 0x28], 0
mov dword [edi + 0x2c], ebx
je 0x4a28c9
mov ecx, edi
call fcn.004a0af0
call fcn.004a1ba0
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
lea eax, [esp + 0x30]
mov dword [esp + 0x30], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x38], edx
call fcn.0049ec20
push 0xffffffffffffffff
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.0049f850
cmp byte [edi + 0x28], 0
mov ebx, eax
mov dword [edi + 0x2c], ebx
je 0x4a26ab
mov ecx, edi
call fcn.004a0af0
lea edx, [esp + 0x44]
push edx
mov ecx, ebx
call fcn.0049ec20
push 0
lea eax, [esp + 0x40]
push eax
mov ecx, ebx
call fcn.004a0290
test al, al
jne 0x4a2836
mov edx, dword [str.overlaymouse]
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00496da0
call fcn.00401000
add esp, 4
test al, al
je 0x4a2836
lea ecx, [esp + 0x18]
call fcn.00496d90
mov eax, dword [esp + 0x3c]
cmp eax, 7
mov dword [esp + 0xa0], 0
je 0x4a276f
cmp eax, 0xb
jne 0x4a277d
push str.raw:
lea ecx, [esp + 0x68]
call fcn.00496da0
movzx ecx, byte [esi + 4]
push ecx
lea edx, [esp + 0x6c]
push edx
mov ecx, eax
mov byte [esp + 0xa8], 1
call fcn.00497620
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa4], 2
call fcn.00497360
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 1
call fcn.00497320
lea ecx, [esp + 0x64]
mov byte [esp + 0xa0], 0
call fcn.00497320
jmp 0x4a277d
push str.mouse:up
lea ecx, [esp + 0x1c]
call fcn.00497d30
push 0x5a8554
lea ecx, [esp + 0x3c]
call fcn.00496da0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa4], 3
call fcn.00497270
test al, al
lea ecx, [esp + 0x38]
setne bl
mov byte [esp + 0xa0], 0
call fcn.00497320
test bl, bl
je 0x4a2822
push 0x10
call fcn.0055d3fe
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
mov ebx, 4
mov byte [esp + 0xa0], bl
je 0x4a27fb
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x5a8554
call fcn.00496da0
push 0
mov ecx, esi
call fcn.0049e9c0
mov esi, eax
jmp 0x4a27fd
xor esi, esi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 8]
mov byte [esp + 0xa4], 0
mov dword [esi + 4], ebx
call fcn.00497360
push esi
call fcn.004a0970
mov ecx, eax
call fcn.004a20f0
lea ecx, [esp + 0x18]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00497320
mov ecx, edi
call fcn.004a1ba0
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x3c]
test ecx, ecx
push 0
je 0x4a2887
lea edx, [esp + 0x40]
push edx
call fcn.004a0290
mov ecx, edi
call fcn.004a1ba0
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x40]
push eax
mov ecx, ebx
call fcn.004a0290
mov ecx, edi
call fcn.004a1ba0
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
mov ecx, ebx
call fcn.004a47d0
mov ecx, edi
call fcn.004a1ba0
mov ecx, edi
call fcn.004a15f0
mov ecx, edi
call fcn.004a1ba0
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004a0970
mov ecx, eax
call fcn.004a0af0
jmp 0x4a28bb
mov ecx, edi
call fcn.004a1ba0
push 0
push esi
mov ecx, ebx
call fcn.004a0290
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4