Function at 0x436570
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44f73b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x469090]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
mov edx, dword [ebp + 8]
mov ebx, dword [ecx + 0x18]
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], ebx
cmp ebx, dword [ecx + 0x1c]
je 0x43679e
add eax, 0xffffffaa
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
push 0x18
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
call fcn.004372a1
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov dword [esp + 0x40], 0
test edi, edi
je 0x4366ad
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4365f6
sub eax, edx
sar eax, 1
xor ecx, ecx
test eax, eax
jle 0x436628
xor edx, edx
test eax, eax
jle 0x436628
movzx esi, word [esi + edx*2]
mov ebx, ecx
shl ebx, 5
sub ebx, ecx
inc edx
lea ecx, [ebx + esi]
mov esi, dword [esp + 0x28]
cmp edx, eax
jl 0x436611
mov eax, dword [0x46dbc0]
add eax, 0x264
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
call fcn.0040d2b0
mov edx, dword [eax]
test edx, edx
jne 0x436647
mov edx, esi
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x18]
mov esi, dword [0x46dbc0]
push 0
push 0
push 0
push ecx
push 0x19
push 0x50
add eax, 0xffffffe1
push eax
push ebx
push 0x50000000
push edx
push str.Button
add esi, 8
push 0
mov dword [edi + 4], esi
mov dword [edi + 8], 0x50
mov dword [edi + 0xc], 0x19
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 1
mov dword [edi], eax
mov esi, dword [esi]
push esi
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esp + 0x10]
jmp 0x4366af
xor edi, edi
mov esi, dword [esp + 0x1c]
add esi, 8
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], edi
cmp edx, eax
jae 0x436734
mov edx, dword [esi]
lea ecx, [esp + 0x14]
cmp edx, ecx
ja 0x436734
mov edi, ecx
mov ecx, dword [esi + 8]
sub edi, edx
sar edi, 2
cmp eax, ecx
jne 0x436724
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x4367b3
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x436724
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x436712
xor ecx, ecx
jmp 0x436714
add ecx, edx
cmp ecx, eax
jae 0x43671a
mov ecx, eax
push ecx
call fcn.00436120
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 4]
test eax, eax
je 0x436781
mov edx, dword [esi]
mov ecx, dword [edx + edi*4]
mov dword [eax], ecx
jmp 0x436781
mov ecx, dword [esi + 8]
cmp eax, ecx
jne 0x436778
mov edx, dword [esi]
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x4367b3
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x436778
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x436766
xor ecx, ecx
jmp 0x436768
add ecx, edx
cmp ecx, eax
jae 0x43676e
mov ecx, eax
push ecx
call fcn.00436120
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 4]
test eax, eax
je 0x436781
mov dword [eax], edi
mov edx, dword [esp + 0x1c]
add dword [esi + 4], 4
sub dword [esp + 0x18], 0x56
add ebx, 8
mov dword [esp + 0x10], ebx
cmp ebx, dword [edx + 0x1c]
jne 0x4365c4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.vector_T__too_long
call fcn.0044b6d0
int3