Function at 0x40b327
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x6622e8], eax
je 0x40b34d
mov eax, 0x10dd
jmp 0x40b592
mov eax, dword [0x6622e4]
test eax, eax
jne 0x40b592
mov ecx, dword [0x653fd4]
test ecx, ecx
jne 0x40b371
push 6
pop eax
mov dword [0x6622e4], eax
jmp 0x40b588
mov ebx, edi
mov esi, edi
call fcn.0040aea9
mov ecx, sym.yuntun.exe_public_virtual:_int___thiscall_DuiLib::CListUI::CheckColumComboBoxable_int_
mov dword [esp + 0x10], eax
call fcn.0040aea9
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x10]
jne 0x40b3a3
cmp dword [0x651eb0], ebx
jne 0x40b586
jmp 0x40b567
push 0x18
call fcn.0056e9a6
pop ecx
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 0x1c], esi
call fcn.0040ad21
mov ebx, eax
push 8
test ebx, ebx
jne 0x40b3c8
pop edi
jmp 0x40b567
lea eax, [ebx + 0x38]
push edi
push eax
call fcn.00586790
mov esi, dword [esp + 0x1c]
mov eax, ebx
add esp, 0xc
mov dword [esp + 0x18], eax
mov ecx, esi
mov dword [esp + 0x20], edi
jmp 0x40b3eb
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x24]
mov dword [esp + 0x28], ecx
push edx
push ecx
push ecx
mov ecx, eax
mov dword [esp + 0x30], edi
call fcn.0040b6b2
mov edx, dword [esp + 0x18]
mov ecx, eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x28]
add eax, ecx
mov dword [esp + 0x2c], ecx
add edx, eax
sub ecx, esi
mov dword [esp + 0x18], edx
mov al, cl
sub dl, bl
mov dword [esp + 0x14], ecx
and al, 7
shl dl, 3
or dl, al
mov eax, dword [esp + 0x20]
mov byte [ebx + eax + 0x38], dl
inc eax
mov dword [esp + 0x20], eax
cmp eax, 8
jae 0x40b458
mov ecx, dword [esp + 0x28]
call fcn.0040a90d
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x40b458
mov eax, dword [esp + 0x18]
cmp ecx, 5
jb 0x40b3e7
mov esi, dword [esp + 0x1c]
cmp ecx, 5
jae 0x40b499
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
mov ecx, edi
call fcn.0040a966
test eax, eax
je 0x40b485
add edi, eax
mov ecx, edi
sub ecx, esi
mov dword [esp + 0x14], ecx
cmp ecx, 5
jb 0x40b469
jmp 0x40b489
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
push 0
pop edi
cmp ecx, 5
jb 0x40b55b
cmp dword [esp + 0x20], 8
ja 0x40b55b
mov eax, dword [esp + 0x18]
lea edx, [ebx + 0x1e]
cmp eax, edx
jbe 0x40b4b0
int3
sub al, bl
mov byte [ebx + 0x36], cl
push ecx
push dword [esp + 0x14]
mov byte [edx], al
lea eax, [ebx + 0x20]
push eax
call fcn.005868f0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, 0x19
jbe 0x40b4d8
push 6
jmp 0x40b3c2
mov esi, dword [esp + 0x10]
lea edx, [ebx + 0x1e]
movzx ecx, byte [edx]
add esi, eax
mov eax, dword [esp + 0x34]
add ecx, ebx
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x40], esi
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub esi, eax
mov dword [ecx + 1], esi
add ecx, 5
call fcn.0040a86d
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
push 0x40
push dword [esp + 0x1c]
mov dword [esp + 0x3c], edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40b52f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x1c]
mov edi, eax
jmp 0x40b567
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 4], edi
mov dword [ecx + 8], 0x653fd4
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0xc], esi
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x14], eax
mov eax, dword [0x6622fc]
mov dword [ecx], eax
xor eax, eax
mov dword [0x6622fc], ecx
jmp 0x40b592
cmp dword [0x651eb0], 0
push 9
pop edi
jne 0x40b56d
mov dword [0x6622e4], edi
test ebx, ebx
je 0x40b578
mov ecx, ebx
call fcn.0040ae0a
test esi, esi
je 0x40b586
push 0x18
push esi
call fcn.0056e998
pop ecx
pop ecx
mov eax, edi
mov dword [0x6622f0], 0x653fd4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc