Function at 0x405d30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x407972
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x40c018]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push esi
push edi
mov eax, dword [0x40c018]
xor eax, esp
push eax
lea eax, [esp + 0x2b0]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0xa0]
push eax
push 0xffffffffffffffff
push str.DesktopOverlayHost
xor edi, edi
push edi
push edi
call dword [0x408040]
lea ecx, [esp + 0x14]
push ecx
push 0x4085fc
push 1
push edi
push 0x40860c
mov dword [esp + 0x28], edi
call dword [0x4085a4]
cmp eax, edi
jge 0x405db6
lea eax, [edi - 3]
jmp 0x406103
mov esi, dword [0x40815c]
lea edx, [esp + 0x2c]
push edx
call esi
mov dword [esp + 0x2b8], edi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
call esi
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
call esi
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
call esi
mov byte [esp + 0x2b8], 3
mov esi, dword [esp + 0x94]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
mov esi, dword [esp + 0xa8]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x4c]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x60]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x64]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x68]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x80]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x84]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x88]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0xac]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0xc0]
mov dword [eax + 4], esi
mov esi, dword [esp + 0xc4]
mov dword [eax + 8], esi
mov esi, dword [esp + 0xc8]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x28]
push ecx
call eax
mov esi, dword [0x408158]
lea ecx, [esp + 0x7c]
push ecx
mov edi, eax
call esi
lea edx, [esp + 0x6c]
push edx
call esi
lea eax, [esp + 0x5c]
push eax
call esi
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x2bc], 0xffffffff
call esi
test edi, edi
jge 0x405f2d
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 0xfffffffc
jmp 0x406103
lea ecx, [esp + 0x20]
push ecx
mov edi, 0x409610
mov dword [esp + 0x20], 0
call fcn.004061d0
mov dword [esp + 0x2b8], 4
mov eax, dword [eax]
test eax, eax
je 0x405f59
mov ecx, dword [eax]
jmp 0x405f5b
xor ecx, ecx
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea edi, [esp + 0x1c]
push edi
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
lea edi, [esp + 0x20]
mov ebx, eax
mov dword [esp + 0x2b8], 0xffffffff
call fcn.00406180
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test ebx, ebx
jge 0x405f9d
mov eax, 0xfffffffb
jmp 0x406103
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], 0
mov ecx, dword [eax]
push 0
push eax
mov eax, dword [ecx + 0x38]
call eax
mov edi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor ebx, ebx
cmp edi, ebx
jge 0x405fd4
lea eax, [ebx - 0x17]
jmp 0x406103
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
jne 0x406007
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
jmp 0x406103
xor eax, eax
cmp ecx, ebx
jle 0x4060f2
mov ecx, 0x16
mov word [esp + 0x2c], cx
lea ecx, [eax + 1]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2b8], 5
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov edi, dword [edx]
lea eax, [esp + 0x18]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x44]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [edi + 0x20]
mov dword [eax + 0xc], ecx
call edx
mov edi, eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x2bc], 0xffffffff
call esi
xor ebx, ebx
cmp edi, ebx
jl 0x4060e4
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x4060d8
mov edi, dword [esp + 0x28]
mov ecx, edi
lea eax, [esp + 0x9c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4060c8
cmp dx, bx
je 0x4060c4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4060c8
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4060a2
xor eax, eax
jmp 0x4060cd
sbb eax, eax
sbb eax, 0xffffffff
push edi
cmp eax, ebx
je 0x406127
call dword [0x408150]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x24]
jl 0x406011
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 2
mov ecx, dword [esp + 0x2b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.0040697a
mov esp, ebp
pop ebp
ret
call dword [0x408150]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
jmp 0x406103