Function at 0x5414f0
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 0x541d85
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
test esi, esi
je 0x541d67
mov byte [ebp - 5], 1
mov edx, 7
mov eax, esi
call fcn.00568028
test al, al
jne 0x541d67
mov eax, dword [0x6a73e0]
mov byte [eax], 1
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.005413c8
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 4]
call fcn.00413b2c
push 0xfffffffffffffff0
push esi
call sub.user32.dll_GetWindowLongW
mov dword [ebp - 0xc], eax
xor ebx, ebx
mov eax, dword [ebp - 4]
mov edx, 0x541da4
call fcn.004079d0
jne 0x541646
mov eax, dword [ebp - 0xc]
and eax, 0x1f
mov edx, dword [ebp - 0xc]
and edx, 3
cmp edx, 3
je 0x541590
mov edx, dword [ebp - 0xc]
and edx, 0xe
cmp edx, 0xe
jne 0x5415f8
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
and eax, 0x20000
cmp eax, 0x20000
jne 0x5415ce
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541dc0
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bb140]
call fcn.005cf334
mov ebx, eax
jmp 0x541d37
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541dd8
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bb274]
call fcn.005d3134
mov ebx, eax
jmp 0x541d37
mov edx, dword [ebp - 0xc]
and edx, 0xd
cmp edx, 0xd
je 0x541d37
add eax, 0xfffffffb
sub eax, 2
jb 0x541d37
sub eax, 4
je 0x541d37
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541dd8
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bafd8]
call fcn.005cf334
mov ebx, eax
jmp 0x541d37
mov eax, dword [ebp - 4]
mov edx, 0x541df8
call fcn.004079d0
jne 0x54167f
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541dd8
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bd03c]
call fcn.005cf334
mov ebx, eax
jmp 0x541d37
mov eax, dword [ebp - 4]
mov edx, 0x541e14
call fcn.004079d0
jne 0x5417bb
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541dd8
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bd5f0]
call fcn.005d5b20
mov ebx, eax
mov eax, esi
call fcn.004ac3c8
mov edx, dword [ebx + 0x5c]
mov dword [edx + 0x3c], eax
mov eax, dword [ebx + 0x5c]
mov esi, dword [eax + 0x3c]
test esi, esi
je 0x541d37
mov eax, esi
mov edx, dword [0x4a798c]
call fcn.004052f8
test al, al
je 0x541d37
mov eax, esi
call fcn.004b4948
dec eax
test eax, eax
jl 0x541799
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.004b490c
mov edx, dword [0x46bb94]
call fcn.004052f8
test al, al
je 0x541758
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax + 0x3c]
mov edx, esi
call fcn.004b490c
mov eax, dword [eax + 0x64]
push eax
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
call fcn.00575518
mov edx, eax
pop eax
call fcn.00457cf0
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax + 0x3c]
mov edx, esi
call fcn.004b490c
mov dl, 1
call fcn.0047311c
jmp 0x54178f
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax + 0x3c]
mov edx, esi
call fcn.004b490c
mov edx, dword [0x4a798c]
call fcn.004052f8
test al, al
je 0x54178f
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax + 0x3c]
mov edx, esi
call fcn.004b490c
call fcn.004b8e10
mov edx, eax
mov eax, edi
call fcn.005414f0
inc esi
dec dword [ebp - 0x10]
jne 0x5416fd
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
call fcn.005754c4
mov edx, eax
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax + 0x3c]
call fcn.004b0080
jmp 0x541d37
mov eax, dword [ebp - 4]
mov edx, 0x541e30
call fcn.004079d0
jne 0x54181e
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541e60
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bd5f0]
call fcn.005d5b20
mov ebx, eax
mov eax, esi
call fcn.004ac3c8
mov edx, dword [ebx + 0x5c]
mov dword [edx + 0x3c], eax
mov eax, dword [ebx + 0x5c]
cmp dword [eax + 0x3c], 0
je 0x541812
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax + 0x3c]
xor edx, edx
call fcn.004aff00
mov eax, dword [ebx + 0x5c]
mov byte [eax + 0x39], 1
jmp 0x541d37
mov eax, dword [ebp - 4]
mov edx, 0x541e80
call fcn.004079d0
jne 0x541886
mov eax, dword [edi + 0x44]
test eax, eax
je 0x54183b
mov byte [eax + 0xa9], 0
push esi
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x541d37
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541dc0
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 [0x5bdd04]
call fcn.005c7828
mov ebx, eax
mov byte [ebx + 4], 1
jmp 0x541d37
mov eax, dword [ebp - 4]
mov edx, 0x541e98
call fcn.004079d0
jne 0x541983
mov eax, dword [ebp - 0xc]
and eax, 7
cmp eax, 7
jne 0x5418ce
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541e60
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bd178]
call fcn.005d20b4
mov ebx, eax
jmp 0x541d37
mov eax, dword [ebp - 0xc]
and eax, 3
cmp eax, 3
je 0x5418ef
mov eax, dword [ebp - 0xc]
and eax, 2
cmp eax, 2
je 0x5418ef
mov eax, dword [ebp - 0xc]
and eax, 5
cmp eax, 5
jne 0x541919
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541dd8
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bc874]
call fcn.005d2d74
mov ebx, eax
jmp 0x541d37
mov eax, dword [ebp - 0xc]
and eax, 9
cmp eax, 9
je 0x54192f
mov eax, dword [ebp - 0xc]
and eax, 4
cmp eax, 4
jne 0x541959
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541dd8
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bc874]
call fcn.005d2d74
mov ebx, eax
jmp 0x541d37
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541eb4
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bb560]
call fcn.005d055c
mov ebx, eax
jmp 0x541d37
mov eax, dword [ebp - 4]
mov edx, 0x541ed0
call fcn.004079d0
jne 0x5419dd
mov eax, dword [edi + 0x44]
test eax, eax
je 0x5419a0
mov byte [eax + 0xa9], 0
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541ef0
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 [0x5bed60]
call fcn.005cb610
mov ebx, eax
mov byte [ebx + 4], 1
jmp 0x541d37
mov eax, dword [ebp - 4]
mov edx, 0x541f10
call fcn.004079d0
jne 0x541a24
mov eax, dword [edi + 0x44]
test eax, eax
je 0x5419fa
mov byte [eax + 0xa9], 0
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541ef0
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bdd04]
call fcn.005c7828
mov ebx, eax
jmp 0x541d37
mov eax, dword [ebp - 4]
mov edx, 0x541f30
call fcn.004079d0
jne 0x541a6b
mov eax, dword [edi + 0x44]
test eax, eax
je 0x541a41
mov byte [eax + 0xa9], 0
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541ef0
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bed60]
call fcn.005cb610
mov ebx, eax
jmp 0x541d37
mov eax, dword [ebp - 4]
mov edx, 0x541f58
call fcn.004079d0
jne 0x541abe
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 0x541d37
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541dd8
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bbf08]
call fcn.005cf334
mov ebx, eax
jmp 0x541d37
mov eax, dword [ebp - 4]
mov edx, 0x541f78
call fcn.004079d0
jne 0x541b0a
mov eax, dword [ebp - 0xc]
and eax, 0x2000
cmp eax, 0x2000
je 0x541d37
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541fa4
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bf6dc]
call fcn.005d8068
mov ebx, eax
jmp 0x541d37
mov eax, dword [ebp - 4]
mov edx, 0x541fc8
call fcn.004079d0
jne 0x541b47
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541dc0
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5be25c]
call fcn.005c88b4
mov ebx, eax
mov byte [ebx + 4], 1
jmp 0x541d37
mov eax, dword [ebp - 4]
mov edx, 0x541ff0
call fcn.004079d0
jne 0x541b87
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x54201c
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bc038]
call fcn.005d3ebc
mov ebx, eax
mov dword [ebx + 0x78], 2
jmp 0x541d37
mov eax, dword [ebp - 4]
mov edx, 0x54204c
call fcn.004079d0
jne 0x541bc0
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x54207c
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bc2ec]
call fcn.005dbcd4
mov ebx, eax
jmp 0x541d37
mov eax, dword [ebp - 4]
mov edx, 0x54209c
call fcn.004079d0
jne 0x541c0d
cmp dword [edi + 0x44], 0
je 0x541bdf
mov eax, dword [edi + 0x44]
mov byte [eax + 0xa9], 0
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541dc0
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bdd04]
call fcn.005c7828
mov ebx, eax
mov byte [ebx + 4], 1
jmp 0x541d37
mov eax, dword [ebp - 4]
mov edx, 0x5420b8
call fcn.004079d0
je 0x541c2b
mov eax, dword [ebp - 4]
mov edx, 0x5420dc
call fcn.004079d0
jne 0x541c55
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541dd8
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bb43c]
call fcn.005cf334
mov ebx, eax
jmp 0x541d37
mov eax, dword [ebp - 4]
mov edx, 0x5420f8
call fcn.004079d0
jne 0x541cc9
push 0xfffffffffffffff0
push esi
call sub.user32.dll_GetWindowLongW
and eax, 0x200
cmp eax, 0x200
jne 0x541ca2
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x542124
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bcca8]
call fcn.005cf334
mov ebx, eax
jmp 0x541d37
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541dd8
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bcca8]
call fcn.005cf334
mov ebx, eax
jmp 0x541d37
mov eax, dword [ebp - 4]
mov edx, 0x542138
call fcn.004079d0
jne 0x541d03
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541dc0
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bebd0]
call fcn.005c7828
mov ebx, eax
mov byte [ebx + 4], 1
jmp 0x541d37
mov eax, dword [ebp - 4]
mov edx, 0x542160
call fcn.004079d0
jne 0x541d37
push 0
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x5c]
call fcn.005847c8
push eax
push 0x541dd8
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x5bd03c]
call fcn.005cf334
mov ebx, eax
test ebx, ebx
je 0x541d5f
mov eax, dword [edi + 0x48]
mov edx, ebx
call fcn.00436ea0
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.005c0bf4
mov eax, dword [0x6a73e0]
mov byte [eax], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x541d8c
lea eax, [ebp - 0x14]
call fcn.004072d8
lea eax, [ebp - 4]
call fcn.004072d8
ret