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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
push edi
lea eax, [esp + 0x88]
call fcn.005c2860
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
cmp byte [eax + 0x650], 0
je 0x5b4945
mov eax, dword [eax + 0x654]
test eax, eax
je 0x5b4939
cmp eax, 1
jne 0x5b4945
lea eax, [esp + 0x88]
call fcn.005c28c0
mov eax, dword [ebx + 4]
cmp dword [eax + 0x54c], 0
jbe 0x5b51a6
mov ecx, dword [eax + 0x548]
mov eax, dword [eax + 0x534]
mov esi, dword [ecx]
test eax, eax
jne 0x5b49dc
call fcn.006441b7
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x5b4978
call fcn.006441b7
add esi, 8
mov ecx, 7
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx + 4]
mov edx, dword [edi + 0x548]
mov eax, dword [edx]
mov ecx, dword [edi + 0x534]
add edi, 0x534
push eax
push ecx
lea ebx, [esp + 0x44]
call fcn.005fc330
mov eax, dword [esp + 0x1c]
cmp eax, 0x100
ja 0x5b4c02
cmp eax, 0x100
je case.0x5b4c21.260
add eax, 0xfffffffd
cmp eax, 0x7b
ja case.default.0x5b503f
movzx eax, byte [eax + 0x5b51d8]
jmp dword [eax*4 + 0x5b51c4]
mov eax, dword [eax]
jmp 0x5b496e
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x5e4]
jne case.default.0x5b503f
cmp byte [0x88b5eb], 0
jne case.default.0x5b503f
cmp byte [eax + 0x39c], 0
jne case.default.0x5b503f
cmp byte [eax + 0x39d], 0
jne case.default.0x5b503f
call fcn.005baa20
mov eax, dword [esi + 4]
cmp byte [eax + 0x632], 0
je 0x5b4a46
cmp byte [eax + 0x39f], 0
jne 0x5b4a46
mov edx, eax
mov ecx, dword [edx + 0x358]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
mov eax, dword [esi + 4]
cmp byte [eax + 0x428], 0
je case.default.0x5b503f
cmp byte [eax + 0x632], 0
jne case.default.0x5b503f
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x8c]
lea edx, [ecx + 0x42c]
push edx
call eax
jmp case.default.0x5b503f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x5e4]
jne case.default.0x5b503f
cmp byte [eax + 0x39f], 0
je case.default.0x5b503f
lea eax, [esp + 0x5c]
push eax
mov ecx, edx
push ecx
mov dword [esp + 0x64], 0x2c
call dword [sym.imp.user32.dll_GetWindowPlacement]
mov eax, dword [esp + 0x64]
cmp eax, 5
je 0x5b4ac6
cmp eax, 1
jne case.default.0x5b503f
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x78]
mov dword [edx + 0xd8], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x7c]
mov dword [edx + 0xdc], eax
jmp case.default.0x5b503f
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x18]
cmp edi, 1
sete cl
movzx ebx, ax
shr eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
cmp edx, dword [eax + 0x5e4]
jne 0x5b4b75
cmp byte [eax + 0x39d], 0
jne 0x5b4b75
cmp cl, byte [eax + 0x633]
je 0x5b4b75
mov byte [eax + 0x633], cl
mov ecx, dword [esi + 4]
cmp byte [ecx + 0x633], 0
je 0x5b4b4e
mov edx, ecx
cmp byte [edx + 0x471], 0
je 0x5b4b75
mov eax, dword [ecx]
mov edx, dword [eax + 0xe4]
push 1
call edx
jmp 0x5b4b75
mov eax, ecx
cmp byte [eax + 0x471], 0
je 0x5b4b65
mov edx, dword [ecx]
mov eax, dword [edx + 0xe8]
push 1
call eax
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 0x358]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
call fcn.005baa20
cmp edi, 2
jne 0x5b4b93
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x104]
push 0
call eax
jmp case.default.0x5b503f
test edi, edi
jne case.default.0x5b503f
mov edx, dword [esp + 0x18]
mov ecx, esi
mov eax, dword [ecx + 4]
cmp edx, dword [eax + 0x5e4]
jne case.default.0x5b503f
cmp byte [eax + 0x39f], 0
je case.default.0x5b503f
mov eax, ecx
mov ecx, dword [eax + 4]
mov dword [ecx + 0xe0], ebx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x10]
mov dword [edx + 0xe4], eax
jmp case.default.0x5b503f
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 0x358]
mov edx, dword [ecx]
mov eax, dword [edx + 0x70]
call eax
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 0x358]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
jmp case.default.0x5b503f
cmp eax, 0x113
ja 0x5b4f22
je 0x5b4d77
add eax, 0xfffffeff
cmp eax, 4
ja case.default.0x5b503f
jmp dword [eax*4 + 0x5b5254]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x44c]
mov edi, dword [esp + 0x20]
mov dword [eax + 0x580], ecx
mov dword [eax + 0x584], 0
cmp edi, 0xd
jne 0x5b4c9f
cmp dword [esp + 0x1c], 0x104
jne 0x5b4ce5
mov eax, dword [esi + 4]
cmp byte [eax + 0x3a2], 0
jne 0x5b4ce5
cmp byte [eax + 0x3a3], 0
jne 0x5b4ce5
cmp byte [eax + 0x6d8], 0
je 0x5b4ce5
cmp byte [eax + 0x39f], 0
mov ecx, eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x104]
sete al
movzx eax, al
push eax
call edx
mov ecx, esi
call fcn.005baae0
jmp 0x5b51a6
cmp edi, 0x44
jne 0x5b4ce5
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x358]
test eax, eax
je 0x5b4ce5
cmp byte [eax + 0x131], 0
je 0x5b4ce5
cmp byte [eax + 0x132], 0
je 0x5b4ce5
push 1
push 0
push str.c:windowsmediaWindows_XP_Menu_Command.wav
call dword [sym.imp.winmm.dll_PlaySound]
mov eax, dword [esi + 4]
cmp byte [eax + 0x6d4], 0
sete cl
mov byte [eax + 0x6d4], cl
mov edx, dword [esi]
mov eax, dword [edx + 0x84]
push edi
mov ecx, esi
call eax
test al, al
jne case.default.0x5b503f
mov ecx, esi
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x358]
mov ecx, edi
call fcn.00580da0
jmp case.default.0x5b503f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x44c]
mov dword [eax + 0x580], edx
mov dword [eax + 0x584], 0
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 0x358]
call fcn.00580de0
jmp case.default.0x5b503f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x44c]
mov dword [eax + 0x580], edx
mov dword [eax + 0x584], 0
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 0x358]
call fcn.00580d50
jmp case.default.0x5b503f
cmp byte [0x88b5eb], 0
jne 0x5b51a6
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x39c], 0
jne 0x5b51a6
cmp byte [eax + 0x631], 0
je 0x5b51a6
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
mov edx, eax
sub edx, dword [ecx + 0x44c]
cmp edx, 0x1f4
jbe 0x5b4dc6
mov dword [ecx + 0x450], eax
mov ecx, dword [ebx + 4]
mov dword [ecx + 0x44c], eax
mov edx, dword [ebx + 4]
cmp byte [edx + 0x428], 0
je 0x5b4e37
mov ecx, edx
mov edx, eax
sub edx, dword [ecx + 0x450]
cmp edx, 0x1388
jbe 0x5b4e37
sub eax, dword [ecx + 0x448]
cmp eax, 0x1f40
jbe 0x5b4e16
cmp byte [ecx + 0x632], 0
jne 0x5b4e16
mov eax, dword [ecx]
mov eax, dword [eax + 0x8c]
lea edx, [ecx + 0x42c]
push edx
call eax
jmp 0x5b4e37
cmp eax, 0x2ee0
jbe 0x5b4e37
cmp byte [ecx + 0x632], 0
je 0x5b4e37
mov edx, dword [ecx]
mov edx, dword [edx + 0x88]
lea eax, [ecx + 0x42c]
push eax
call edx
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x4c]
push eax
push esi
call dword [sym.imp.user32.dll_GetClientRect]
mov edi, dword [sym.imp.user32.dll_ClientToScreen]
lea ecx, [esp + 0x34]
xor eax, eax
push ecx
push esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call edi
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x3c]
push ecx
push esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call edi
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.user32.dll_GetCursorPos]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call dword [sym.imp.user32.dll_WindowFromPoint]
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
cmp eax, esi
mov eax, dword [esp + 0x48]
jne 0x5b4ec0
cmp ecx, dword [esp + 0x34]
jl 0x5b4ec0
cmp eax, edi
jl 0x5b4ec0
cmp ecx, dword [esp + 0x3c]
jge 0x5b4ec0
cmp eax, dword [esp + 0x40]
jge 0x5b4ec0
mov dl, 1
mov byte [esp + 0xf], dl
jmp 0x5b4ec9
mov byte [esp + 0xf], 0
mov dl, byte [esp + 0xf]
mov esi, dword [ebx + 4]
cmp byte [esi + 0x630], dl
je 0x5b51a6
test dl, dl
jne 0x5b4f09
sub ecx, dword [esp + 0x34]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x358]
sub eax, edi
push edx
lea ebx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.0057fea0
mov edi, ecx
call fcn.00580d00
mov dl, byte [esp + 0xf]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov byte [eax + 0x630], dl
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
jmp 0x5b51a4
cmp eax, 0x200
jb case.default.0x5b503f
mov eax, dword [esp + 0x1c]
cmp eax, 0x208
jbe 0x5b4f91
cmp eax, 0x20a
jne case.default.0x5b503f
mov ecx, dword [esp + 0x20]
shr ecx, 0x10
movsx ecx, cx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
cmp byte [ecx + 0x83c], 0
je 0x5b4f7d
movsx edx, al
sub dword [ecx + 0x848], edx
jmp 0x5b51a6
movsx eax, al
push eax
mov eax, dword [ecx + 0x358]
call fcn.00580d30
jmp 0x5b51a6
cmp byte [0x88b5eb], 0
jne case.default.0x5b503f
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0x39c], 0
jne case.default.0x5b503f
mov eax, dword [esp + 0x24]
mov ecx, dword [ecx + 0x358]
movsx edx, ax
shr eax, 0x10
mov dword [esp + 0x10], edx
cwde
lea edx, [esp + 0x10]
push edx
lea ebx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.0057fea0
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x44c]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [eax + 0x580], ecx
mov dword [eax + 0x584], 0
mov edx, dword [edi + 4]
mov edx, dword [edx + 0x358]
mov ecx, esi
mov eax, ebx
call fcn.00580be0
mov eax, dword [edi + 4]
cmp byte [eax + 0x630], 0
jne 0x5b502d
mov byte [eax + 0x630], 1
mov eax, dword [edi]
mov edx, dword [eax + 0x100]
mov ecx, edi
call edx
mov eax, dword [esp + 0x1c]
add eax, 0xfffffdff
cmp eax, 7
ja case.default.0x5b503f
jmp dword [eax*4 + 0x5b5268]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.user32.dll_SetCapture]
mov ecx, edi
mov edx, dword [ecx + 4]
mov ecx, dword [edx + 0x358]
push ebx
mov ebx, 1
mov eax, esi
call fcn.00580ad0
jmp case.default.0x5b503f
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.user32.dll_SetCapture]
mov ecx, edi
mov edx, dword [ecx + 4]
mov ecx, dword [edx + 0x358]
push ebx
or ebx, 0xffffffff
mov eax, esi
call fcn.00580ad0
jmp case.default.0x5b503f
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.user32.dll_SetCapture]
mov ecx, edi
mov edx, dword [ecx + 4]
mov ecx, dword [edx + 0x358]
push ebx
mov ebx, 3
mov eax, esi
call fcn.00580ad0
jmp case.default.0x5b503f
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.user32.dll_SetCapture]
mov ecx, edi
mov edx, dword [ecx + 4]
mov ecx, dword [edx + 0x358]
push ebx
mov ebx, 2
mov eax, esi
call fcn.00580ad0
jmp case.default.0x5b503f
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.user32.dll_SetCapture]
mov ecx, edi
mov edx, dword [ecx + 4]
mov ecx, dword [edx + 0x358]
push ebx
mov ebx, 0xfffffffe
mov eax, esi
call fcn.00580ad0
jmp case.default.0x5b503f
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x358]
test dword [ecx + 0x114], 0xfffffffe
jne 0x5b5124
call dword [sym.imp.user32.dll_ReleaseCapture]
push 1
jmp 0x5b5164
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x358]
test dword [ecx + 0x114], 0xfffffffd
jne 0x5b5143
call dword [sym.imp.user32.dll_ReleaseCapture]
push 0xffffffffffffffff
jmp 0x5b5164
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x358]
test dword [ecx + 0x114], 0xfffffffb
jne 0x5b5162
call dword [sym.imp.user32.dll_ReleaseCapture]
push 3
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x358]
push ebx
mov ebx, esi
call fcn.00580a20
cmp dword [esp + 0x1c], 0x10
jne 0x5b51a6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x5e4]
je 0x5b5196
cmp ecx, dword [eax + 0x5e8]
jne 0x5b51a6
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x98]
call eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
xor eax, eax
cmp eax, dword [edx + 0x54c]
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret 4