Function at 0x406a50
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x435d51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2ac
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 4]
push ebx
push ebx
push 0x1004
push eax
call esi
lea ecx, [esp + 0x16]
lea edx, [esp + 0x13]
push ecx
push ebx
push edx
lea ecx, [esp + 0x54]
call fcn.00409da0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x15]
push eax
push ebx
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x2cc], ebx
call fcn.00409da0
lea edx, [esp + 0x17]
lea eax, [esp + 0x12]
push edx
push ebx
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2cc], 1
call fcn.00409da0
mov ecx, dword [ebp + 4]
push ebx
push ebx
push 0x1004
push ecx
mov byte [esp + 0x2d0], 2
mov dword [esp + 0x1c], ebx
call esi
cmp eax, ebx
jle 0x406c7d
push edi
jmp 0x406afa
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x10]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x84]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x80]
push eax
push ebx
push 0x104b
push ecx
mov dword [esp + 0x94], edx
mov dword [esp + 0x90], 4
call esi
mov ecx, dword [esp + 0xa0]
neg eax
sbb eax, eax
and eax, ecx
mov esi, eax
je 0x406c61
cmp dword [esi + 0x4c], ebx
je 0x406c55
mov eax, dword [esi + 0x44]
mov dword [esi + 0x4c], ebx
cmp eax, 0x28
jb 0x406b7d
cmp eax, 0x32
jae 0x406b7d
mov edx, dword [esi + 0x40]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x70]
push eax
push ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x54]
jmp 0x406bc8
cmp eax, 0x46
jb 0x406ba2
cmp eax, 0x50
jae 0x406ba2
mov edx, dword [esi + 0x40]
lea eax, [esp + 0x60]
lea ecx, [esp + 0x78]
push eax
push ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], ebx
lea ecx, [esp + 0x40]
jmp 0x406bc8
cmp eax, 0x32
jb 0x406bd2
cmp eax, 0x46
jae 0x406bd2
mov edx, dword [esi + 0x40]
lea eax, [esp + 0x68]
lea ecx, [esp + 0xa8]
push eax
push ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ebx
lea ecx, [esp + 0x2c]
call fcn.00409cb0
mov eax, dword [eax]
mov dword [eax + 0x10], ebx
cmp dword [esi + 0x3c], ebx
jne 0x406c2f
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0xb2]
mov word [esp + 0xb0], bx
rep stosd dword es:[edi], eax
mov edx, dword [esi + 0x40]
stosw word es:[edi], ax
mov eax, dword [esi]
mov dword [esp + 0x2b8], edx
push eax
lea eax, [esp + 0xb4]
push 0x104
push eax
call fcn.004097a0
mov ecx, dword [esp + 0x2d8]
mov dword [esi + 0x3c], 1
lea edx, [esp + 0xb0]
mov eax, dword [ecx + 8]
push edx
push eax
call fcn.00409800
cmp dword [esi + 0x24], ebx
jne 0x406c4f
mov ecx, dword [esp + 0x2dc]
mov dword [esi + 0x24], 1
add esi, 0x10
mov eax, dword [ecx + 8]
push esi
push eax
call fcn.00409ed0
inc dword [esp + 0x10]
jmp 0x406c61
mov eax, dword [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00405be0
mov ecx, dword [ebp + 4]
push ebx
push ebx
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 0x10], eax
jl 0x406af4
pop edi
mov eax, dword [esp + 0x2c8]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x2c0], 1
mov dword [eax], edx
mov edx, dword [esp + 0x2cc]
mov eax, dword [esp + 0x30]
mov dword [edx], ecx
mov ecx, dword [esp + 0x2d0]
mov edx, dword [esp + 0x24]
mov dword [ecx], eax
lea eax, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.00409e10
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.00409e20
mov eax, dword [esp + 0x24]
push eax
call fcn.0042329e
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], ebx
push ecx
mov dword [esp + 0x38], ebx
call fcn.0042329e
mov edx, dword [esp + 0x40]
add esp, 8
lea eax, [esp + 0x18]
lea ecx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x30], ebx
mov byte [esp + 0x2c8], bl
call fcn.00409e10
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.00409e20
mov eax, dword [esp + 0x38]
push eax
call fcn.0042329e
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x3c], ebx
push ecx
mov dword [esp + 0x4c], ebx
call fcn.0042329e
mov eax, dword [esp + 0x54]
add esp, 8
lea edx, [esp + 0x18]
lea ecx, [esp + 0x48]
push eax
push edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x2c8], 0xffffffff
call fcn.00409e10
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.00409e20
mov edx, dword [esp + 0x4c]
push edx
call fcn.0042329e
mov eax, dword [esp + 0x54]
mov dword [esp + 0x50], ebx
push eax
mov dword [esp + 0x60], ebx
call fcn.0042329e
add esp, 8
mov eax, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2ac]
mov dword fs:[0], ecx
add esp, 0x2b8
ret 0x14