Function at 0x407810
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x452120
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 0x2e0]
test eax, eax
je 0x407869
mov eax, dword [esi + 0x308]
test eax, eax
jne 0x407869
call fcn.00406840
test eax, eax
jne 0x407869
mov ecx, esi
mov dword [esi + 0x308], 1
call fcn.00407780
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov ecx, dword [esi + 0xa8]
push ebp
push edi
push 0
call fcn.00408c90
call fcn.00444b67
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x2f0]
push eax
mov eax, dword [0x46f490]
push eax
lea ecx, [esp + 0x18]
push str._s_s
push ecx
mov dword [esp + 0x40], 0
call fcn.00402400
add esp, 0x10
call fcn.00444b67
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0xc]
push ebp
push eax
mov byte [esp + 0x38], 1
call fcn.00411960
add esp, 8
lea ecx, [esi + 0x2d0]
call fcn.00401240
lea ecx, [esp + 0xc]
push 0x455f10
push ecx
mov edi, eax
call fcn.00411960
add esp, 8
test edi, edi
je 0x407963
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x407963
call fcn.00444b67
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov edi, dword [edi]
push edi
lea eax, [esp + 0x18]
push str.adsid_s
push eax
mov byte [esp + 0x3c], 2
call fcn.00402400
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.00411960
lea eax, [edi - 0x10]
add esp, 0x14
mov byte [esp + 0x30], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407963
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.00444b67
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xa8]
test eax, eax
mov byte [esp + 0x30], 3
je 0x407988
mov eax, dword [eax + 0x1c]
push eax
lea eax, [esp + 0x18]
push str.updatehd_d
push eax
call fcn.00402400
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.00411960
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push edx
push 1
push eax
push ebp
call fcn.0040af20
add esp, 0x24
test edx, edx
jne 0x4079f5
lea ecx, [esp + 0x18]
push ecx
push 0x406710
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esi + 0xa8]
call fcn.00409700
mov ecx, dword [esi + 0xa8]
push 0
call fcn.00448d97
mov ecx, dword [esi + 0xa8]
call fcn.00409260
jmp 0x407a5d
cmp edx, 1
jne 0x407a28
cmp eax, 2
jne 0x407a28
mov eax, dword [esi + 0x2f0]
push 0
push 0x454cd8
push eax
push 0x455edc
call fcn.00403330
mov ecx, dword [esi + 0xa8]
add esp, 8
push eax
call fcn.00446519
jmp 0x407a5d
push 0
push 0x454cd8
push eax
push edx
push 0x455eb8
call fcn.00403330
mov ecx, dword [esi + 0xa8]
add esp, 0xc
push eax
call fcn.00446519
mov ecx, esi
call fcn.00406840
mov ecx, dword [esi + 0xa8]
push eax
call fcn.00408c90
lea eax, [edi - 0x10]
mov byte [esp + 0x30], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407a7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407a9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop ebp
jg 0x407ac3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret