Function at 0x42f590
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x4e6f4d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x5c]
push eax
call fcn.00418770
xor ebx, ebx
lea ecx, [edi + 0x1fe]
push ebx
mov dword [esp + 0x58], ebx
mov dword [edi], vtable.Clunet::CCluComplaintThread.0
mov dword [edi + 0x1f6], ebx
mov dword [edi + 0x1fa], ebx
call fcn.00411700
mov dword [edi + 0x208], ebx
mov dword [edi + 0x20c], ebx
call fcn.004b978a
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42f611
push 0x80004005
call fcn.004069a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x210], eax
push ebx
push 0x42f470
mov byte [esp + 0x5c], 1
mov byte [edi + 0x214], bl
mov dword [edi + 0x216], ebx
mov dword [edi + 0xc], 0xa
mov dword [0x6736f0], edi
mov dword [edi + 0x1ec], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [edi + 0x1ec], ebx
jne 0x42f672
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CCluComplaintThread:_main_window_not_found._Last_error__d
push edi
call fcn.00418e60
add esp, 0xc
jmp 0x42f680
push str.CCluComplaintThread:_main_window_found
push edi
call fcn.00418e60
add esp, 8
mov eax, dword [edi + 0x1ec]
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x14], ebx
je 0x42f6d5
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 1
push 0x7f
push eax
call esi
mov ebp, eax
cmp ebp, 1
je 0x42f6af
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42f6b1
xor ebp, ebp
mov ecx, dword [edi + 0x1ec]
push ebx
push ebx
push 0x7f
push ecx
call esi
cmp eax, 1
mov dword [esp + 0x14], eax
je 0x42f6d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42f6d5
mov dword [esp + 0x14], ebx
call fcn.004b978a
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42f6ef
push 0x80004005
call fcn.004069a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x5c], eax
mov byte [esp + 0x54], 2
xor esi, esi
push esi
lea ecx, [esp + 0x60]
push str.CluComplWindow_d
push ecx
call fcn.00406da0
mov eax, dword [esp + 0x68]
add esp, 0xc
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x20], 0xb
mov dword [esp + 0x24], 0x42f2e0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x40], ebx
cmp dword [eax - 4], 1
jle 0x42f76c
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x60]
call fcn.00406b50
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x4c], eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
movzx eax, ax
add esi, 1
cmp ax, bx
je 0x42f706
mov eax, dword [esp + 0x5c]
cmp dword [eax - 4], 1
jle 0x42f7ad
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x60]
call fcn.00406b50
mov eax, dword [esp + 0x5c]
push ebx
mov ebp, dword [sym.imp.USER32.dll_CreateWindowExW]
push ebx
push ebx
push ebx
push 0x1f4
push 0x320
push 0xc8
push 0xc8
push 0x2cf0000
push 0x4f960c
push eax
push ebx
call ebp
push 0x74
mov dword [0x6736bc], eax
call fcn.004aef0e
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x54], 3
je 0x42f7fe
mov ecx, eax
call fcn.004b174a
jmp 0x42f800
xor eax, eax
mov ecx, dword [0x6736bc]
push ecx
mov ecx, eax
mov byte [esp + 0x58], 2
mov dword [0x6736c0], eax
call fcn.004b4742
push 8
call fcn.004aef0e
add esp, 4
cmp eax, ebx
je 0x42f831
mov dword [eax + 4], ebx
mov dword [eax], vtable.CFont.0
jmp 0x42f833
xor eax, eax
push ebx
push 0x4f9668
push 0x64
mov ecx, eax
mov dword [0x6736e4], eax
call fcn.004b9dc0
push 8
call fcn.004aef0e
add esp, 4
cmp eax, ebx
je 0x42f860
mov dword [eax + 4], ebx
mov dword [eax], vtable.CFont.0
jmp 0x42f862
xor eax, eax
push ebx
push 0x4f9674
push 0x55
mov ecx, eax
mov dword [0x6736e8], eax
call fcn.004b9dc0
push 8
call fcn.004aef0e
add esp, 4
cmp eax, ebx
je 0x42f88f
mov dword [eax + 4], ebx
mov dword [eax], vtable.CFont.0
jmp 0x42f891
xor eax, eax
push ebx
push 0x4f9680
push 0x96
mov ecx, eax
mov dword [0x6736ec], eax
call fcn.004b9dc0
push 0x13
lea esi, [edi + 0x210]
push 0x4f968c
mov ecx, esi
call fcn.00406c90
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x42f8d2
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00406b50
mov eax, dword [0x6736bc]
mov esi, dword [esi]
push ebx
push ebx
push ebx
push eax
push 0x64
push 0x320
push 0x3c
push ebx
push 0x50211044
push esi
push 0x4f96b4
push 0x200
call ebp
push 0x54
mov dword [0x6736dc], eax
call fcn.004aef0e
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov byte [esp + 0x54], 4
je 0x42f926
mov ecx, esi
call fcn.004b33c7
mov dword [esi], vtable.CEdit.0
jmp 0x42f928
xor esi, esi
mov ecx, dword [0x6736dc]
push ecx
mov ecx, esi
mov byte [esp + 0x58], 2
mov dword [0x6736e0], esi
call fcn.004b4742
mov eax, dword [0x6736e4]
cmp eax, ebx
jne 0x42f94e
xor eax, eax
jmp 0x42f951
mov eax, dword [eax + 4]
mov edx, dword [0x6736e0]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
mov eax, dword [edx + 0x20]
push 0x30
push eax
call ebp
mov ecx, dword [0x6736e0]
push 0x64
call fcn.004b91a2
mov ecx, dword [0x6736bc]
push ebx
push ebx
push ebx
push ecx
push 0x1e
push 0x1e
push 0x1e
push ebx
push 0x50010000
push 0x4f96c0
push 0x4f96c8
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x54
mov dword [0x6736c4], eax
call fcn.004aef0e
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov byte [esp + 0x54], 5
je 0x42f9c9
mov ecx, esi
call fcn.004b33c7
mov dword [esi], vtable.CButton.0
jmp 0x42f9cb
xor esi, esi
mov edx, dword [0x6736c4]
push edx
mov ecx, esi
mov byte [esp + 0x58], 2
mov dword [0x6736c8], esi
call fcn.004b4742
mov eax, dword [0x6736e4]
cmp eax, ebx
jne 0x42f9f1
xor eax, eax
jmp 0x42f9f4
mov eax, dword [eax + 4]
push 1
push eax
mov eax, dword [0x6736c8]
mov ecx, dword [eax + 0x20]
push 0x30
push ecx
call ebp
mov ecx, dword [0x6736c8]
push 0x65
call fcn.004b91a2
mov edx, dword [0x6736bc]
push ebx
push ebx
push ebx
push edx
push 0x1e
push 0x320
push ebx
push ebx
push 0x50000000
push ebx
push 0x4f96d8
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x54
mov dword [0x6736cc], eax
call fcn.004aef0e
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov byte [esp + 0x54], 6
je 0x42fa63
mov ecx, esi
call fcn.004b33c7
mov dword [esi], vtable.CStatic.0
jmp 0x42fa65
xor esi, esi
mov eax, dword [0x6736cc]
push eax
mov ecx, esi
mov byte [esp + 0x58], 2
mov dword [0x6736d0], esi
call fcn.004b4742
mov ecx, dword [0x6736d0]
push 0x4f96e8
call fcn.004b9146
mov eax, dword [0x6736e8]
cmp eax, ebx
jne 0x42fa9a
xor eax, eax
jmp 0x42fa9d
mov eax, dword [eax + 4]
mov ecx, dword [0x6736d0]
mov edx, dword [ecx + 0x20]
push 1
push eax
push 0x30
push edx
call ebp
mov ecx, dword [0x6736d0]
push 0x66
call fcn.004b91a2
mov eax, dword [0x6736bc]
push ebx
push ebx
push ebx
push eax
push 0x1e
push 0x320
push ebx
push ebx
push 0x50000001
push ebx
push 0x4f9bac
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x54
mov dword [0x6736d4], eax
call fcn.004aef0e
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov byte [esp + 0x54], 7
je 0x42fb0c
mov ecx, esi
call fcn.004b33c7
mov dword [esi], vtable.CStatic.0
jmp 0x42fb0e
xor esi, esi
mov ecx, dword [0x6736d4]
push ecx
mov ecx, esi
mov byte [esp + 0x58], 2
mov dword [0x6736d8], esi
call fcn.004b4742
mov ecx, dword [0x6736d8]
push 0x4f9bc0
call fcn.004b9146
mov eax, dword [0x6736ec]
cmp eax, ebx
jne 0x42fb44
xor eax, eax
jmp 0x42fb47
mov eax, dword [eax + 4]
mov edx, dword [0x6736d8]
push 1
push eax
mov eax, dword [edx + 0x20]
push 0x30
push eax
call ebp
mov ecx, dword [0x6736d8]
push 0x67
call fcn.004b91a2
mov ecx, dword [0x6736bc]
push 0x1f40320
push ebx
push 5
push ecx
call ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi + 0x1f0], eax
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov byte [edi + 0x1f4], bl
mov byte [esp + 0x54], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42fbad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4