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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x510791
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
test esi, esi
je 0x510773
mov byte [ebp - 5], 1
mov edx, 7
mov eax, esi
call fcn.00554354
test al, al
jne 0x510773
mov eax, dword [0x62f318]
mov byte [eax], 1
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.0050fdd4
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 4]
call fcn.00413480
push 0xfffffffffffffff0
push esi
call sub.user32.dll_GetWindowLongW
mov dword [ebp - 0xc], eax
xor ebx, ebx
mov eax, dword [ebp - 4]
mov edx, 0x5107b0
call fcn.004074f8
jne 0x510052
mov eax, dword [ebp - 0xc]
and eax, 0x1f
mov edx, dword [ebp - 0xc]
and edx, 3
cmp edx, 3
je 0x50ff9c
mov edx, dword [ebp - 0xc]
and edx, 0xe
cmp edx, 0xe
jne 0x510004
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
and eax, 0x20000
cmp eax, 0x20000
jne 0x50ffda
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5107cc
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x519f24]
call fcn.0052f968
mov ebx, eax
jmp 0x510743
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5107e4
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51a058]
call fcn.005336dc
mov ebx, eax
jmp 0x510743
mov edx, dword [ebp - 0xc]
and edx, 0xd
cmp edx, 0xd
je 0x510743
add eax, 0xfffffffb
sub eax, 2
jb 0x510743
sub eax, 4
je 0x510743
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5107e4
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x519dbc]
call fcn.0052f968
mov ebx, eax
jmp 0x510743
mov eax, dword [ebp - 4]
mov edx, 0x510804
call fcn.004074f8
jne 0x51008b
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5107e4
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51be20]
call fcn.0052f968
mov ebx, eax
jmp 0x510743
mov eax, dword [ebp - 4]
mov edx, 0x510820
call fcn.004074f8
jne 0x5101c7
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5107e4
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51c3d4]
call fcn.0053619c
mov ebx, eax
mov eax, esi
call fcn.004ae694
mov edx, dword [ebx + 0x5c]
mov dword [edx + 0x3c], eax
mov eax, dword [ebx + 0x5c]
mov esi, dword [eax + 0x3c]
test esi, esi
je 0x510743
mov eax, esi
mov edx, dword [0x4a9c58]
call fcn.00405320
test al, al
je 0x510743
mov eax, esi
call fcn.004b6c18
dec eax
test eax, eax
jl 0x5101a5
inc eax
mov dword [ebp - 0x10], eax
xor esi, esi
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax + 0x3c]
mov edx, esi
call fcn.004b6bdc
mov edx, dword [0x46c2b4]
call fcn.00405320
test al, al
je 0x510164
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax + 0x3c]
mov edx, esi
call fcn.004b6bdc
mov eax, dword [eax + 0x64]
push eax
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
call fcn.0059bb28
mov edx, eax
pop eax
call fcn.004582e8
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax + 0x3c]
mov edx, esi
call fcn.004b6bdc
mov dl, 1
call fcn.00474544
jmp 0x51019b
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax + 0x3c]
mov edx, esi
call fcn.004b6bdc
mov edx, dword [0x4a9c58]
call fcn.00405320
test al, al
je 0x51019b
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax + 0x3c]
mov edx, esi
call fcn.004b6bdc
call fcn.004bb0e0
mov edx, eax
mov eax, edi
call fcn.0050fefc
inc esi
dec dword [ebp - 0x10]
jne 0x510109
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
call fcn.0059bb20
mov edx, eax
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax + 0x3c]
call fcn.004b234c
jmp 0x510743
mov eax, dword [ebp - 4]
mov edx, 0x51083c
call fcn.004074f8
jne 0x51022a
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x51086c
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51c3d4]
call fcn.0053619c
mov ebx, eax
mov eax, esi
call fcn.004ae694
mov edx, dword [ebx + 0x5c]
mov dword [edx + 0x3c], eax
mov eax, dword [ebx + 0x5c]
cmp dword [eax + 0x3c], 0
je 0x51021e
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax + 0x3c]
xor edx, edx
call fcn.004b21cc
mov eax, dword [ebx + 0x5c]
mov byte [eax + 0x39], 1
jmp 0x510743
mov eax, dword [ebp - 4]
mov edx, 0x51088c
call fcn.004074f8
jne 0x510292
mov eax, dword [edi + 0x44]
test eax, eax
je 0x510247
mov byte [eax + 0xa9], 0
push esi
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x510743
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5107cc
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x20]
xor al, 1
push eax
mov ecx, esi
mov dl, 1
mov eax, dword [0x51cae8]
call fcn.00527000
mov ebx, eax
mov byte [ebx + 4], 1
jmp 0x510743
mov eax, dword [ebp - 4]
mov edx, 0x5108a4
call fcn.004074f8
jne 0x51038f
mov eax, dword [ebp - 0xc]
and eax, 7
cmp eax, 7
jne 0x5102da
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x51086c
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51bf5c]
call fcn.00532674
mov ebx, eax
jmp 0x510743
mov eax, dword [ebp - 0xc]
and eax, 3
cmp eax, 3
je 0x5102fb
mov eax, dword [ebp - 0xc]
and eax, 2
cmp eax, 2
je 0x5102fb
mov eax, dword [ebp - 0xc]
and eax, 5
cmp eax, 5
jne 0x510325
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5107e4
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51b658]
call fcn.00533318
mov ebx, eax
jmp 0x510743
mov eax, dword [ebp - 0xc]
and eax, 9
cmp eax, 9
je 0x51033b
mov eax, dword [ebp - 0xc]
and eax, 4
cmp eax, 4
jne 0x510365
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5107e4
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51b658]
call fcn.00533318
mov ebx, eax
jmp 0x510743
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5108c0
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51a344]
call fcn.00530bb8
mov ebx, eax
jmp 0x510743
mov eax, dword [ebp - 4]
mov edx, 0x5108dc
call fcn.004074f8
jne 0x5103e9
mov eax, dword [edi + 0x44]
test eax, eax
je 0x5103ac
mov byte [eax + 0xa9], 0
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5108fc
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x20]
xor al, 1
push eax
mov ecx, esi
mov dl, 1
mov eax, dword [0x51de44]
call fcn.0052aec0
mov ebx, eax
mov byte [ebx + 4], 1
jmp 0x510743
mov eax, dword [ebp - 4]
mov edx, 0x51091c
call fcn.004074f8
jne 0x510430
mov eax, dword [edi + 0x44]
test eax, eax
je 0x510406
mov byte [eax + 0xa9], 0
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5108fc
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51cae8]
call fcn.00527000
mov ebx, eax
jmp 0x510743
mov eax, dword [ebp - 4]
mov edx, 0x51093c
call fcn.004074f8
jne 0x510477
mov eax, dword [edi + 0x44]
test eax, eax
je 0x51044d
mov byte [eax + 0xa9], 0
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5108fc
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51de44]
call fcn.0052aec0
mov ebx, eax
jmp 0x510743
mov eax, dword [ebp - 4]
mov edx, 0x510964
call fcn.004074f8
jne 0x5104ca
push 0xfffffffffffffff0
push esi
call sub.user32.dll_GetWindowLongW
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and eax, 0x10
cmp eax, 0x10
jne 0x510743
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5107e4
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51acec]
call fcn.0052f968
mov ebx, eax
jmp 0x510743
mov eax, dword [ebp - 4]
mov edx, 0x510984
call fcn.004074f8
jne 0x510516
mov eax, dword [ebp - 0xc]
and eax, 0x2000
cmp eax, 0x2000
je 0x510743
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5109b0
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51e7c0]
call fcn.005386d4
mov ebx, eax
jmp 0x510743
mov eax, dword [ebp - 4]
mov edx, 0x5109d4
call fcn.004074f8
jne 0x510553
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5107cc
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51d21c]
call fcn.0052814c
mov ebx, eax
mov byte [ebx + 4], 1
jmp 0x510743
mov eax, dword [ebp - 4]
mov edx, 0x5109fc
call fcn.004074f8
jne 0x510593
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x510a28
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51ae1c]
call fcn.005344a4
mov ebx, eax
mov dword [ebx + 0x78], 2
jmp 0x510743
mov eax, dword [ebp - 4]
mov edx, 0x510a58
call fcn.004074f8
jne 0x5105cc
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x510a88
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51b0d0]
call fcn.0053c474
mov ebx, eax
jmp 0x510743
mov eax, dword [ebp - 4]
mov edx, 0x510aa8
call fcn.004074f8
jne 0x510619
cmp dword [edi + 0x44], 0
je 0x5105eb
mov eax, dword [edi + 0x44]
mov byte [eax + 0xa9], 0
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5107cc
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51cae8]
call fcn.00527000
mov ebx, eax
mov byte [ebx + 4], 1
jmp 0x510743
mov eax, dword [ebp - 4]
mov edx, 0x510ac4
call fcn.004074f8
je 0x510637
mov eax, dword [ebp - 4]
mov edx, 0x510ae8
call fcn.004074f8
jne 0x510661
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5107e4
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51a220]
call fcn.0052f968
mov ebx, eax
jmp 0x510743
mov eax, dword [ebp - 4]
mov edx, 0x510b04
call fcn.004074f8
jne 0x5106d5
push 0xfffffffffffffff0
push esi
call sub.user32.dll_GetWindowLongW
and eax, 0x200
cmp eax, 0x200
jne 0x5106ae
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x510b30
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51ba8c]
call fcn.0052f968
mov ebx, eax
jmp 0x510743
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5107e4
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51ba8c]
call fcn.0052f968
mov ebx, eax
jmp 0x510743
mov eax, dword [ebp - 4]
mov edx, 0x510b44
call fcn.004074f8
jne 0x51070f
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5107cc
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51dcb4]
call fcn.00527000
mov ebx, eax
mov byte [ebx + 4], 1
jmp 0x510743
mov eax, dword [ebp - 4]
mov edx, 0x510b6c
call fcn.004074f8
jne 0x510743
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.0055f79c
push eax
push 0x5107e4
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x51be20]
call fcn.0052f968
mov ebx, eax
test ebx, ebx
je 0x51076b
mov eax, dword [edi + 0x48]
mov edx, ebx
call fcn.00436dec
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 + 0x3c]
call fcn.0051fdac
mov eax, dword [0x62f318]
mov byte [eax], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510798
lea eax, [ebp - 0x14]
call fcn.00406e00
lea eax, [ebp - 4]
call fcn.00406e00
ret