Function at 0x421140
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
push ebx
push esi
push edi
mov edi, ecx
push 0x101
push eax
mov dword [ebp - 4], edi
mov dword [edi + 0x178], eax
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x1c0], eax
mov dword [edi + 0x1c4], eax
mov dword [edi + 0x1c8], eax
mov dword [edi + 0x1cc], eax
mov dword [edi + 0x1d0], eax
mov dword [edi + 0x1d4], eax
mov dword [edi + 0x1d8], eax
mov dword [edi + 0x1dc], eax
mov dword [edi + 0x1e0], eax
mov dword [edi + 0x1e4], eax
mov dword [edi + 0x1e8], eax
mov dword [edi + 0x1ec], eax
mov dword [edi + 0x1f0], eax
mov dword [edi + 0x1f4], eax
mov dword [edi + 0x1f8], eax
mov dword [edi + 0x1fc], eax
mov dword [edi + 0x200], eax
mov dword [edi + 0x204], eax
mov dword [edi + 0x208], eax
mov dword [edi + 0x20c], eax
mov dword [edi + 0x210], eax
mov dword [edi + 0x214], eax
mov dword [edi + 0x218], eax
mov dword [edi + 0x21c], eax
mov dword [edi + 0x220], eax
mov dword [edi + 0x224], eax
mov dword [edi + 0x228], eax
mov dword [edi + method.CMSBTStack.virtual_0], vtable.CMSBTStack.0
mov word [edi + 0x158], ax
mov dword [edi + 0x15c], eax
mov dword [edi + 0x160], eax
mov dword [edi + 0x16c], eax
mov dword [edi + 0x170], eax
mov dword [edi + 0x174], eax
mov dword [edi + 0x188], eax
mov dword [edi + 0x22c], eax
mov dword [edi + 0x854], eax
mov dword [edi + 0x858], eax
mov dword [edi + 0x85c], eax
mov dword [edi + 0x860], eax
mov byte [edi + 0x864], al
lea eax, [edi + 0x4c]
push eax
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x164], 0xffffffff
mov dword [edi + 0x168], 1
mov dword [edi + 0x17c], 1
mov dword [edi + 0x180], 1
mov dword [edi + 0x1b8], 0xffffffff
mov dword [edi + 0x850], 0xffffffff
call fcn.00423950
xorps xmm0, xmm0
movq qword [edi + 0x150], xmm0
mov dword [edi + 0x184], 0
push 0x2c
lea eax, [edi + 0x18c]
push 0
push eax
call fcn.00423950
push 0x5bc
lea esi, [edi + 0x230]
push 0
push esi
call fcn.00423950
mov eax, dword [ebp - 4]
lea ebx, [edi + 0x7f0]
mov dword [edi + 0x7ec], 0
xorps xmm0, xmm0
add edi, 0x808
add eax, 0x824
movups xmmword [ebx], xmm0
push 0x2c
movq qword [ebx + 0x10], xmm0
movups xmmword [edi], xmm0
push 0
movq qword [edi + 0x10], xmm0
push eax
mov dword [edi + 0x18], 0
call fcn.00423950
add esp, 0x30
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call esi
push ebx
call esi
push edi
call esi
mov ebx, dword [ebp - 4]
push 0x473da8
mov dword [ebx + 0x248], 5
mov dword [ebx + 0x178], 5
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 0xc], eax
test eax, eax
je 0x4214fe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.__0CWBtAPI__QAE_XZ
push eax
call esi
push str.__1CWBtAPI__QAE_XZ
push dword [ebx + 0xc]
mov dword [ebx + 0x10], eax
call esi
push str._ClearDeviceStatusCallback_CWBtAPI__QAE_AW4WBtRc__XZ
push dword [ebx + 0xc]
mov dword [ebx + 0x14], eax
call esi
push str._ClearDeviceFoundCallback_CWBtAPI__QAE_AW4WBtRc__XZ
push dword [ebx + 0xc]
mov dword [ebx + 0x18], eax
call esi
push str._ClearInquiryCompleteCallback_CWBtAPI__QAE_AW4WBtRc__XZ
push dword [ebx + 0xc]
mov dword [ebx + 0x1c], eax
call esi
push str._GapStopInquiry_CWBtAPI__QAE_AW4WBtRc__XZ
push dword [ebx + 0xc]
mov dword [ebx + 0x20], eax
call esi
push str._BtmDeviceIsReady_CWBtAPI__QAEHXZ
push dword [ebx + 0xc]
mov dword [ebx + 0x24], eax
call esi
push str._ConnectToServer_CWBtAPI__QAE_AW4WBtRc___NI00_Z
push dword [ebx + 0xc]
mov dword [ebx + 0x28], eax
call esi
push str._SetOnDeviceStatusCallback_CWBtAPI__QAE_AW4WBtRc__P6AXPAXJJ_Z0_Z
push dword [ebx + 0xc]
mov dword [ebx + 0x2c], eax
call esi
push str._GapBond_CWBtAPI__QAE_AW4WBtRc__QAEJ0J_Z
push dword [ebx + 0xc]
mov dword [ebx + 0x30], eax
call esi
push str._SetOnDeviceFoundCallback_CWBtAPI__QAE_AW4WBtRc__P6AXPAXQAE11H_Z0_Z
push dword [ebx + 0xc]
mov dword [ebx + 0x34], eax
call esi
push str._SetOnInquiryCompleteCallback_CWBtAPI__QAE_AW4WBtRc__P6AXPAXJF_Z0_Z
push dword [ebx + 0xc]
mov dword [ebx + 0x38], eax
call esi
push str._GapStartInquiry_CWBtAPI__QAE_AW4WBtRc__XZ
push dword [ebx + 0xc]
mov dword [ebx + 0x3c], eax
call esi
push 0
push 1
push 0
push 0
mov dword [ebx + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [ebx + 0xc], 0
mov dword [ebx + 8], eax
je 0x4214fe
cmp dword [ebx + 0x10], 0
je 0x4214fe
cmp dword [ebx + 0x14], 0
je 0x4214fe
cmp dword [ebx + 0x18], 0
je 0x4214fe
cmp dword [ebx + 0x1c], 0
je 0x4214fe
cmp dword [ebx + 0x20], 0
je 0x4214fe
cmp dword [ebx + 0x24], 0
je 0x4214fe
cmp dword [ebx + 0x28], 0
je 0x4214fe
cmp dword [ebx + 0x2c], 0
je 0x4214fe
cmp dword [ebx + 0x30], 0
je 0x4214fe
cmp dword [ebx + 0x34], 0
je 0x4214fe
cmp dword [ebx + 0x38], 0
je 0x4214fe
cmp dword [ebx + 0x3c], 0
je 0x4214fe
cmp dword [ebx + 0x40], 0
je 0x4214fe
test eax, eax
je 0x4214fe
mov al, 1
pop edi
mov byte [ebx + 0x864], al
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov dword [ebx + 0x10], fcn.00421110
pop edi
mov dword [ebx + 0x14], fcn.00408290
mov dword [ebx + 0x18], fcn.00408290
mov dword [ebx + 0x1c], fcn.00408290
mov dword [ebx + 0x20], fcn.00408290
mov dword [ebx + 0x24], method.DeviceDiscovery_ProgressDlg.virtual_316
mov dword [ebx + 0x28], fcn.00421110
mov dword [ebx + 0x2c], 0x421120
mov dword [ebx + 0x30], 0x421130
mov dword [ebx + 0x34], 0x421120
mov dword [ebx + 0x38], 0x421130
mov dword [ebx + 0x3c], 0x421130
mov dword [ebx + 0x40], method.DeviceDiscovery_ProgressDlg.virtual_316
mov byte [ebx + 0x864], al
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret