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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d5d4d
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x64e0a0]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x64e0a0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
cmp byte [0x650ca1], 0
je 0x575f90
xor eax, eax
jmp 0x5764d7
mov byte [0x650ca1], 1
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
call fcn.0042c367
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x50]
push eax
push dword [ebx + 0x20]
call edi
sub esp, 8
lea ecx, [ebx + 0x12ac]
push 0x2bc
push 0xe
call fcn.005940a0
add esp, 0x10
mov esi, ebx
push 0xf7f7f7
push 1
push 0x11
push dword [ebx + 0x12ac]
lea eax, [esi + 0x96]
push 0
push eax
lea ecx, [ebx + 0x14a8]
call fcn.0056bbc0
push 0x419
mov ecx, esi
call fcn.004283e2
lea ecx, [esp + 0x70]
push ecx
push dword [eax + 0x20]
mov dword [esp + 0x28], eax
call edi
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call fcn.0042a377
push 0x415
mov ecx, esi
call fcn.004283e2
lea ecx, [esp + 0x40]
push ecx
push dword [eax + 0x20]
mov dword [esp + 0x1c], eax
call edi
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.0042a377
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x18]
push dword [eax + 0x20]
call edi
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.0042a377
push dword [ebx + 0x14c8]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00429fbe
mov esi, eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x1c]
mov edx, dword [esi]
mov ecx, dword [ebx + 0x2528]
or ecx, 0x400
push ecx
lea eax, [esp + 0x34]
push eax
push 0xffffffffffffffff
lea eax, [ebx + 0x151c]
push eax
mov ecx, esi
call dword [edx + 0x68]
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x20]
push dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebx + 0x14c8]
call edi
mov eax, dword [esp + 0x38]
mov edx, dword [ebx + 0x1298]
add eax, 0x20
add edx, eax
mov eax, dword [esp + 0x3c]
add eax, 0x10
add eax, dword [ebx + 0x129c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
cmp edx, 0xfa
jge 0x57615a
mov dword [esp + 0x38], 0x12c
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
call fcn.00429fbe
mov esi, eax
test esi, esi
je 0x576236
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
call dword [sym.imp.USER32.dll_SetRectEmpty]
lea eax, [ebx + 0x1096]
push eax
lea ecx, [esp + 0x20]
call fcn.00405090
mov dword [esp + 0x90], 0
mov eax, dword [esp + 0x1c]
mov edx, dword [esi]
push 0x400
lea ecx, [esp + 0x64]
push ecx
push dword [eax - 0xc]
mov ecx, esi
push eax
call dword [edx + 0x68]
mov dword [esp + 0x90], 0xffffffff
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5761fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi + 4]
push dword [ebx + 0x20]
call edi
call dword [0x649030]
mov edx, dword [esp + 0x68]
test eax, eax
je 0x576218
add edx, 0x20
mov dword [esp + 0x68], edx
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x38]
mov eax, edx
sub eax, esi
cmp eax, ecx
jle 0x57623a
mov ecx, dword [esp + 0x30]
sub ecx, esi
add ecx, edx
mov dword [esp + 0x38], ecx
jmp 0x57623a
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x4c]
sub esi, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
sub edi, dword [esp + 0x40]
sub esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x5c]
add esi, dword [esp + 0x34]
sub edi, ecx
add edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x58]
sub eax, esi
sub ecx, edi
push 2
mov dword [esp + 0x60], eax
sub eax, dword [esp + 0x58]
mov dword [esp + 0x5c], ecx
sub ecx, dword [esp + 0x54]
push eax
push ecx
push 0
push 0
push 0
mov ecx, ebx
call fcn.00428c97
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
sub eax, edx
push 0
sub eax, esi
push eax
mov eax, dword [esp + 0x50]
sub eax, ecx
sub eax, edi
push eax
lea eax, [edx + 2]
push eax
push ecx
mov ecx, dword [esp + 0x28]
push 0
call fcn.00428c97
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x70]
sub eax, edx
push 0
sub eax, esi
push eax
mov eax, dword [esp + 0x80]
sub eax, ecx
sub eax, edi
push eax
push edx
push ecx
mov ecx, dword [esp + 0x34]
push 0
call fcn.00428c97
sub dword [ebx + 0x254c], edi
sub dword [ebx + 0x2550], esi
mov ecx, ebx
call fcn.00594000
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
push 0x1c
push 0x415
mov ecx, ebx
call fcn.004283e2
mov edx, eax
mov ecx, ebx
call fcn.00590dc0
mov dword [ebx + 0x12a0], 0
mov ecx, dword [0x65bd7c]
add esp, 0xc
call fcn.00595300
mov byte [ebx + 0x2620], al
mov ecx, dword [0x65bd84]
call fcn.00595300
mov byte [ebx + 0x2621], al
mov ecx, dword [0x65bd88]
call fcn.00595300
mov byte [ebx + 0x2622], al
mov ecx, dword [0x65bd80]
call fcn.00595300
mov byte [ebx + 0x2623], al
mov ecx, dword [0x65bd8c]
call fcn.00595300
mov byte [ebx + 0x2624], al
movzx eax, byte [ebx + 0x94]
lea ecx, [ebx + 0x12b0]
lea esi, [ebx + 0x1358]
lea edi, [ebx + 0x1400]
mov word [esp + 0x14], 0
mov byte [esp + 0x16], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
cmp eax, 5
ja case.default.0x5763ad
jmp dword [eax*4 + 0x5764f8]
push dword [0x65bd7c]
call fcn.00428cd3
mov byte [esp + 0x14], 1
jmp case.default.0x5763ad
mov dword [ebx + 0x12a0], 1
mov byte [ebx + 0x94], 1
push dword [0x65bd84]
call fcn.00428cd3
push dword [0x65bd88]
jmp 0x57642e
push dword [0x65bd84]
call fcn.00428cd3
push dword [0x65bd88]
mov ecx, esi
mov word [esp + 0x18], 0x101
call fcn.00428cd3
push dword [0x65bd80]
mov ecx, edi
call fcn.00428cd3
mov byte [esp + 0x16], 1
jmp case.default.0x5763ad
push dword [0x65bd8c]
call fcn.00428cd3
push dword [0x65bd80]
mov ecx, esi
mov word [esp + 0x18], 0x101
call fcn.00428cd3
xor esi, esi
mov edi, edi
mov bl, byte [esp + esi + 0x14]
mov edi, dword [esp + esi*4 + 0x24]
movzx eax, bl
neg eax
sbb eax, eax
and eax, 5
push eax
mov ecx, edi
call fcn.00428d17
test bl, bl
je 0x57646a
sub esp, 8
mov ecx, edi
call fcn.005b52b0
jmp 0x576472
mov dword [esp + esi*4 + 0x24], 0
inc esi
cmp esi, 3
jb 0x576440
mov ebx, dword [esp + 0x18]
push 3
lea edx, [esp + 0x28]
mov ecx, ebx
call fcn.005b47e0
lea eax, [ebx + 0x1096]
add esp, 4
cmp word [eax], 0
je 0x5764a0
push eax
mov ecx, ebx
call fcn.00428cd3
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebx + 0x20]
mov dword [ebx + 0x12a4], 0
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [ebx + 0x20]
call esi
mov eax, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00541b41
mov esp, ebp
pop ebp
ret