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

Disassembly:
push 0xffffffffffffffff
push 0x6fcc08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x48]
push edi
mov ecx, dword [esi + 0xb4]
push eax
push ecx
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x4c]
sub eax, ebx
xor edi, edi
cdq
sub eax, edx
mov edx, dword [esi + 0xb4]
sar eax, 1
push edi
push eax
push 0x195
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esi + 0x8c]
add esi, 0x98
xor ebp, ebp
mov dword [esp + 0x18], esi
push edi
mov edx, 0x10000000
mov ecx, ebp
call fcn.00636ab0
test al, al
je 0x5263f3
mov edx, ebp
lea ecx, [esp + 0x3c]
call fcn.00636b10
mov esi, dword [eax + 4]
mov dword [esp + 0x80], edi
cmp esi, edi
jne 0x5262de
mov esi, 0x71eb04
mov al, byte [esp + 0x13]
mov dword [esp + 0x20], edi
mov byte [esp + 0x1c], al
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x20]
push ebx
call fcn.00402d20
test al, al
je 0x52632e
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.00408980
mov eax, dword [esp + 0x14]
push ebp
lea edx, [esp + 0x20]
mov byte [esp + 0x84], 1
lea esi, [eax + 0x98]
mov ecx, esi
call fcn.005fa1a0
mov edi, eax
mov eax, dword [esp + 0x20]
xor ebx, ebx
cmp eax, ebx
je 0x526375
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x52636c
cmp al, 0xff
je 0x52636c
dec al
mov byte [ecx], al
jmp 0x526375
push ecx
call fcn.00652870
add esp, 4
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], ebx
cmp eax, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x80], 0xffffffff
je 0x5263b1
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x5263a8
cmp al, 0xff
je 0x5263a8
dec al
mov byte [ecx], al
jmp 0x5263b1
push ecx
call fcn.00652870
add esp, 4
cmp ebp, 0xbc
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
jae 0x526413
mov ecx, ebp
mov edx, 1
and ecx, 0x1f
mov eax, ebp
shl edx, cl
mov ecx, dword [esp + 0x18]
shr eax, 5
mov ebx, dword [ecx + eax*4]
mov ecx, esi
test ebx, edx
setne dl
and edx, 0xff
push edx
push edi
call fcn.006d4f75
xor edi, edi
inc ebp
cmp ebp, 0xbc
jl 0x5262ab
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], al
call fcn.00407e50
mov edi, str.invalid_bitset_N__position
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x30]
push ebx
call fcn.00402d20
test al, al
je 0x526469
mov edi, dword [esp + 0x30]
mov ecx, ebx
mov edx, ecx
mov esi, str.invalid_bitset_N__position
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
call fcn.00408980
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x5c]
push eax
mov dword [esp + 0x84], 2
call fcn.004539f0
lea ecx, [esp + 0x5c]
push 0x78e738
push ecx
mov dword [esp + 0x64], vtable.std::out_of_range.0
call fcn.006609b5
nop
nop
nop
nop
nop
nop
nop
mov eax, 0x739108
ret