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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b68e4
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx]
mov eax, esi
cmp eax, 0x82
jg 0x4b6452
je 0x4b6487
sub eax, 2
je 0x4b6487
sub eax, 3
je 0x4b6478
sub eax, 7
je 0x4b6588
jmp 0x4b65df
sub eax, 0x128
je 0x4b68ce
sub eax, 0xd8
je 0x4b6533
sub eax, 0x117
je 0x4b65c1
jmp 0x4b65df
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov byte [eax + 0x35], 1
jmp 0x4b65df
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
test eax, eax
je 0x4b649f
cmp dword [eax + 0x14], 0xffffffff
jle 0x4b649f
mov eax, dword [eax + 0x14]
call fcn.004c75bc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0
jne 0x4b64b2
mov eax, dword [ebp - 4]
cmp word [eax + 0x42], 0
je 0x4b6514
mov eax, dword [ebx + 4]
push eax
lea eax, [ebx + 8]
push eax
mov ecx, dword [ebx]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
call fcn.004b68f4
mov esi, eax
mov dword [ebx + 0xc], esi
test esi, esi
jne 0x4b68ce
xor eax, eax
push ebp
push 0x4b6505
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
xor ecx, ecx
xor edx, edx
call fcn.004aaf80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b68ce
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call sub.user32.dll_SendMessageA
mov dword [ebx + 0xc], eax
jmp 0x4b68ce
mov eax, dword [0x5702f0]
cmp dword [eax], 0
je 0x4b65df
mov eax, dword [0x5702f0]
mov eax, dword [eax]
test byte [eax + 0x1c], 0x10
jne 0x4b65df
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x4b65df
mov eax, dword [0x5702f0]
mov eax, dword [eax]
mov eax, dword [eax + 0x78]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
je 0x4b65df
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c]
mov eax, dword [0x5702f0]
mov eax, dword [eax]
call fcn.004d7ccc
jmp 0x4b65df
mov eax, dword [ebx + 4]
push eax
lea eax, [ebx + 8]
push eax
mov ecx, esi
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
call fcn.004b68f4
mov dword [ebx + 0xc], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.004a0248
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, 8
call fcn.00404c20
jmp 0x4b65df
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 4]
push eax
push 0xf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call sub.user32.dll_SendMessageA
mov dword [ebx + 0xc], eax
jmp 0x4b68ce
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x54]
test esi, esi
je 0x4b6605
mov eax, esi
call fcn.004daa00
test eax, eax
je 0x4b6605
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.004daa00
cmp byte [eax + 0x3c], 0
jne 0x4b6625
mov eax, dword [ebx + 4]
push eax
lea eax, [ebx + 8]
push eax
mov ecx, dword [ebx]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
call fcn.004b68f4
mov dword [ebx + 0xc], eax
jmp 0x4b68ce
mov eax, dword [ebx]
mov edx, dword [0x56ff38]
cmp eax, dword [edx]
jne case.0x4b6648.0
movzx eax, word [ebx + 6]
cmp eax, 0x3c
ja case.0x4b6648.0
mov al, byte [eax + 0x4b664f]
jmp dword [eax*4 + 0x4b668c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
test eax, eax
je case.0x4b6648.0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
push edx
mov edx, dword [ebx + 8]
xor ecx, ecx
call fcn.004d946c
jmp 0x4b68ce
cmp dword [ebx + 8], 0
jne 0x4b66f8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
and word [eax + 0x4e], 0xfdff
jmp 0x4b6704
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
or word [eax + 0x4e], 0x200
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x54]
mov dword [edx + 0x54], eax
jmp case.0x4b6648.0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.004daa00
cmp eax, dword [ebx + 8]
jne case.0x4b6648.0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.004db724
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov byte [eax + 0x35], 1
mov ecx, ebx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
mov eax, dword [eax + 0x38]
call fcn.004a9a18
jmp case.0x4b6648.0
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x54]
cmp byte [esi + 0x18], 0
je case.0x4b6648.0
mov byte [esi + 0x18], 0
mov eax, esi
call fcn.004daa14
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov byte [eax + 0x18], bl
test bl, bl
jne 0x4b68ce
push 0x581
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call sub.user32.dll_RedrawWindow
jmp 0x4b68ce
mov dword [ebx + 0xc], 1
jmp 0x4b68ce
mov eax, dword [0x570430]
mov eax, dword [eax]
mov dword [ebx + 0xc], eax
jmp 0x4b68ce
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.004daa00
cmp eax, dword [ebx + 8]
jne case.0x4b6648.0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.004db724
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov byte [eax + 0x35], 1
xor edx, edx
call fcn.004daf78
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4b68ce
push 0
push 0
push 0xf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call sub.user32.dll_SendMessageA
jmp 0x4b68ce
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
test eax, eax
je case.0x4b6648.0
movzx eax, byte [eax + 0x18]
mov dword [ebx + 0xc], eax
jmp 0x4b68ce
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.004daa00
cmp eax, dword [ebx + 8]
jne case.0x4b6648.0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 8]
jmp case.0x4b6648.0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
test eax, eax
je case.0x4b6648.0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
xor ecx, ecx
call fcn.004aa94c
jmp case.0x4b6648.0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
cmp dword [eax + 0x38], 0
je case.0x4b6648.0
mov edx, eax
mov eax, ebx
call fcn.004dafd8
jmp 0x4b68ce
xor eax, eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 4]
push eax
lea eax, [ebx + 8]
push eax
mov ecx, dword [ebx]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
call fcn.004b68f4
mov esi, eax
mov dword [ebx + 0xc], esi
test esi, esi
jne 0x4b68ce
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
xor edx, edx
call fcn.004d9908
mov dword [ebx + 0xc], eax
jmp 0x4b68ce
mov eax, dword [ebx + 4]
push eax
lea eax, [ebx + 8]
push eax
mov ecx, dword [ebx]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
call fcn.004b68f4
mov dword [ebx + 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b68eb
lea eax, [ebp - 8]
call fcn.004050cc
ret