Function at 0x452380
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x509530
push eax
mov dword fs:[0], esp
sub esp, 0xa3c
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
cmp eax, 0x110
ja 0x4523ea
je 0x4523c1
cmp eax, 0x10
je 0x45240a
cmp eax, 0x4e
jne 0x452493
jmp 0x452747
mov esi, dword [ebp + 8]
push esi
call fcn.00438fc0
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push esi
call fcn.004527d0
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0x111
je 0x452487
cmp eax, 0x218
jne 0x452493
cmp dword [ebp + 0x10], 4
jne 0x452747
mov eax, dword [ebx + 8]
push 0
push 0
push 0
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x14]
push 0xba
push eax
call fcn.004a51b0
push dword [eax]
lea eax, [ebp - 0x244]
push 0x104
push eax
call fcn.004d1327
mov edx, dword [ebp - 0x14]
add esp, 0x20
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45245a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x248]
push eax
push 0x4b9f50
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebx + 0x28b4]
xor ecx, ecx
push 2
push dword [ebp + 8]
mov word [eax], cx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x452747
mov eax, dword [ebp + 0x10]
movzx eax, ax
dec eax
je 0x4524a7
dec eax
je 0x45246c
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push edi
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xa48], ax
lea eax, [ebp - 0xa46]
push eax
call fcn.004cf600
add esp, 0xc
lea eax, [ebp - 0xa48]
push 0x400
push eax
push 0x4e9
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0xa48]
push eax
lea ecx, [ebp + 0x10]
call fcn.0040c140
push 0x51d6b0
push 0x51d6b0
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0
call fcn.004529c0
mov ecx, eax
call fcn.00452900
push 0x51ab28
push 0x51ab28
lea ecx, [ebp + 0x10]
call fcn.004529c0
mov ecx, eax
call fcn.00452900
or edi, 0xffffffff
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jle 0x4526d0
call fcn.00452760
mov esi, eax
lea ecx, [ebp - 0x3c]
push 0x50daec
mov dword [ebp - 0x20], esi
call fcn.004158d0
mov ecx, dword [esi + 0x40]
mov byte [ebp - 4], 1
mov esi, dword [ecx]
mov dword [ebp + 0xc], esi
cmp esi, ecx
je 0x4525d2
mov edi, edi
mov eax, dword [ebp + 0x10]
mov edi, dword [esi + 0x28]
cmp word [eax], 0
jne 0x452570
xor ecx, ecx
jmp 0x452590
mov ecx, eax
lea edx, [ecx + 2]
mov dword [ebp + 0x14], edx
jmp 0x452580
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x452580
sub ecx, dword [ebp + 0x14]
sar ecx, 1
push ecx
push eax
push dword [edi + 0x14]
lea ecx, [edi + 4]
push 0
call fcn.00433980
test eax, eax
je 0x4525b8
lea ecx, [ebp + 0xc]
call fcn.004179a0
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp + 0xc]
cmp esi, dword [eax + 0x40]
jne 0x452560
jmp 0x4525cf
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x3c]
add eax, 0x1c
cmp ecx, eax
je 0x4525cf
push 0xffffffffffffffff
push 0
push eax
call fcn.0040a2f0
or edi, 0xffffffff
cmp dword [ebp - 0x2c], 0
je 0x45269c
cmp dword [ebx + 0x28c8], 0
je 0x452600
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebx + 0x28b8]
push eax
call fcn.00452250
add esp, 8
test al, al
je 0x45269c
push 0
push dword [ebx + 4]
lea eax, [ebp - 0x24]
push 0
push 0xba
push eax
call fcn.004a51b0
mov esi, eax
push 0
push dword [ebx + 4]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push 0
push 0x4f6
push eax
call fcn.004a51b0
push 0
push dword [esi]
mov byte [ebp - 4], 3
push dword [eax]
push dword [ebx + 8]
call fcn.004a5750
mov edx, dword [ebp - 0x1c]
add esp, 0x38
add edx, 0xfffffff0
mov byte [ebp - 4], 2
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x452665
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x452685
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x4e9
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x4526bd
push dword [ebp + 0x10]
push 0x400
push dword [ebx + 0x28b4]
call fcn.004d1327
add esp, 0xc
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EndDialog]
cmp dword [ebp - 0x28], 8
jb 0x452725
push dword [ebp - 0x3c]
call fcn.004cf489
add esp, 4
jmp 0x452725
push 0
push dword [ebx + 4]
lea eax, [ebp - 0x18]
push 0
push 0xba
push eax
call fcn.004a51b0
mov esi, eax
push 0
push dword [ebx + 4]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push 0
push 0x4f5
push eax
call fcn.004a51b0
push 0
push dword [esi]
mov byte [ebp - 4], 5
push dword [eax]
push dword [ebx + 8]
call fcn.004a5750
add esp, 0x38
lea ecx, [ebp - 0x10]
call fcn.004036f0
lea ecx, [ebp - 0x18]
call fcn.004036f0
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
pop edi
jg 0x452747
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10