Function at 0x405810
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426904
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x431008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
cmp dword [edi + 0x340], 1
je 0x405868
push 0
push 0x42cc20
push 0x42d150
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x405a44
mov eax, dword [edi + 0x348]
cmp eax, 1
je 0x405881
cmp eax, 2
je 0x405881
cmp eax, 3
jne 0x405a44
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x1c]
push eax
push 8
push 0xd
push dword [edi + 0x34]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x24], xmm0
call esi
lea eax, [ebp - 0x24]
push eax
push 8
push 0xd
push dword [edi + 0x38]
call esi
push 0x10
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00412dd9
add esp, 0xc
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push 0x10
push 0
push eax
call fcn.00412dd9
add esp, 0xc
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 8], 0
je 0x40599f
cmp dword [edi + 0x340], 1
je 0x4058fd
push 0
push 0x42cc20
push 0x42d150
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x405919
mov eax, dword [edi + 0x33c]
cmp eax, 0xffffffff
je 0x405919
push eax
call dword [sym.imp.msdk.dll_M_Close]
mov dword [edi + 0x33c], 0xffffffff
push 0x15c
lea eax, [ebp - 0x18c]
push 0
push eax
call fcn.0040eec0
movaps xmm0, xmmword [0x42de80]
add esp, 0xc
mov dword [ebp - method.CUsbHidCtrl.virtual_0], vtable.CUsbHidCtrl.0
mov dword [ebp - method.CUsbHid.virtual_0], vtable.CUsbHid.0
movups xmmword [ebp - 0x80], xmm0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x188]
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
call fcn.0040cf10
cmp eax, 1
jne 0x405a44
mov ecx, dword [ebp + 0x30]
lea eax, [ebp - 0x18c]
mov dword [ebp - 0x190], eax
test ecx, ecx
je 0x405a80
mov eax, dword [ecx]
lea edx, [ebp - 0x190]
push edx
call dword [eax + 8]
lea ecx, [ebp - 0x188]
call fcn.0040d150
jmp 0x405a44
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1cc], edi
mov dword [ebp - 0x1c8], eax
sub esp, 0x28
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x1c4], eax
mov esi, esp
lea eax, [ebp - 0x1bc]
mov dword [ebp - 0x190], esi
mov dword [ebp - 0x194], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x4059f4
mov eax, dword [ecx]
lea edx, [ebp - 0x1bc]
push edx
call dword [eax]
mov dword [ebp - 0x198], eax
mov dword [esi + 0x24], 0
lea ecx, [ebp - 0x1cc]
mov byte [ebp - 4], 5
call fcn.00406760
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x198]
test ecx, ecx
je 0x405a39
mov edx, dword [ecx]
lea eax, [ebp - 0x1bc]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x198], 0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.004055b0
mov dword [ebp - 4], 7
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x405a63
mov edx, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d5cc
mov esp, ebp
pop ebp
ret 0x2c
call fcn.0040e2e3
int3