Function at 0x401c80
Capabilities:
Create process on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406e5b
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x40c1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc110.dll_Ordinal_316]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc110.dll_Ordinal_316]
cmp byte [esi + 0x154], 0
push dword [esi + 0x138]
mov ebx, dword [ebp + 8]
push dword [esi + 0x110]
lea edi, [esi + 0x12c]
push dword [esi + 0x134]
mov byte [ebp - 4], 1
push dword [esi + 0x130]
lea eax, [ebp - 0x10]
push ebx
push dword [esi + 0x118]
push dword [edi]
jne 0x401d04
push str.___Mode_s____mem_s____Queue_d____SerialNumber_s____SNDaxPath_s____NumDS_d____BA_s_
jmp 0x401d09
push str.___Mode_s____mem_s____Queue_d____SerialNumber_s____SNDaxPath_s____NumDS_d____BA_s____QuietMode_
push eax
call dword [sym.imp.mfc110.dll_Ordinal_4746]
add esp, 0x24
lea eax, [ebp - 0x6c]
push 0x44
push 0
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 8
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x6c], 0x44
call dword [sym.imp.mfc110.dll_Ordinal_1652]
push eax
lea ecx, [esi + 0x114]
call dword [sym.imp.mfc110.dll_Ordinal_1652]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401d82
xor bl, bl
jmp 0x401e73
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x140]
mov eax, dword [ebp - 0x28]
mov dword [ecx + ebx*4], eax
mov ecx, dword [esi + 0x148]
mov eax, dword [ebp - 0x20]
mov dword [ecx + ebx*4], eax
mov eax, dword [esi + 0x144]
mov dword [esi + 0x14c], ebx
mov dword [eax + ebx*4], 0
mov ecx, dword [esi + 0x14c]
mov eax, dword [esi + 0x144]
cmp dword [eax + ecx*4], 0
jne 0x401ded
mov ebx, dword [sym.imp.USER32.dll_EnumWindows]
mov edi, edi
push esi
push 0x4020c0
call ebx
mov ecx, dword [esi + 0x14c]
mov eax, dword [esi + 0x144]
cmp dword [eax + ecx*4], 0
je 0x401dd0
mov ebx, dword [ebp + 8]
push str.FTS4BT_Datasource
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc110.dll_Ordinal_310]
mov ecx, edi
mov byte [ebp - 4], 2
call dword [sym.imp.mfc110.dll_Ordinal_8525]
push str.mixedpiconet
mov ecx, edi
call dword [sym.imp.mfc110.dll_Ordinal_2931]
test eax, eax
je 0x401e3a
push str.scatternet
mov ecx, edi
call dword [sym.imp.mfc110.dll_Ordinal_2931]
test eax, eax
je 0x401e3a
push str.multiple_connections
mov ecx, edi
call dword [sym.imp.mfc110.dll_Ordinal_2931]
test eax, eax
jne 0x401e50
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x14]
push str.FTS4BT_Datasource____d
push eax
call dword [sym.imp.mfc110.dll_Ordinal_4746]
add esp, 0xc
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc110.dll_Ordinal_1652]
push eax
push 0
call esi
test eax, eax
je 0x401e56
lea ecx, [ebp - 0x14]
mov bl, 1
call dword [sym.imp.mfc110.dll_Ordinal_1038]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4