Function at 0x408400
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x44978e
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x45e680]
xor eax, esp
mov dword [esp + 0x2e4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e680]
xor eax, esp
push eax
lea eax, [esp + 0x2fc]
mov dword fs:[0], eax
push str.CCheckNDISPortDlg::OpenUnifiedUi___enter
lea ecx, [esp + 0x18]
call fcn.00404a10
xor edi, edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x304], edi
call fcn.00409a70
or ebp, 0xffffffff
mov dword [esp + 0x304], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408484
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.CheckNDISPort::Open_UnifiedUi
lea ecx, [esp + 0x18]
call fcn.00404a10
lea ecx, [esp + 0x14]
mov dword [esp + 0x304], 1
call fcn.00409a70
mov dword [esp + 0x304], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
mov ebx, 7
push 0xb
mov eax, str.Service.ini
lea esi, [esp + 0x3c]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], edi
mov word [esp + 0x40], cx
call fcn.00405070
push 1
lea edx, [esp + 0xd0]
push edx
mov ecx, esi
mov dword [esp + 0x30c], 2
call fcn.0040df50
mov byte [esp + 0x304], 4
cmp dword [esp + 0x50], 8
jb 0x408528
mov eax, dword [esp + 0x3c]
push eax
call fcn.00413858
add esp, 4
xor ecx, ecx
xor edx, edx
push 0xe
mov eax, str.UnifiedUi.exe
lea esi, [esp + 0x74]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], edi
mov word [esp + 0x40], cx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], edi
mov word [esp + 0x78], dx
call fcn.00405070
mov byte [esp + 0x304], 5
xor eax, eax
mov word [esp + 0x20], ax
push 8
mov eax, str.APP_NAME
lea esi, [esp + 0x20]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], edi
call fcn.00405070
mov byte [esp + 0x304], 6
xor ecx, ecx
push 6
mov eax, str.CONFIG
lea esi, [esp + 0x58]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], edi
mov word [esp + 0x5c], cx
call fcn.00405070
mov edx, esi
push edx
lea eax, [esp + 0xd0]
mov byte [esp + 0x308], bl
push eax
lea ecx, [esp + 0x78]
lea edx, [esp + 0x24]
lea ebx, [esp + 0x94]
call fcn.0040e1e0
xor ecx, ecx
mov ebx, 8
mov byte [esp + 0x304], bl
push ebp
mov word [esp + 0xb4], cx
mov esi, 7
push edi
lea ecx, [esp + 0xb4]
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], edi
call fcn.00405120
mov ebp, vtable.CStlStringW.0
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xc8], 0x400
cmp dword [esp + 0xa4], ebx
jb 0x408637
mov edx, dword [esp + 0x90]
push edx
call fcn.00413858
add esp, 4
xor eax, eax
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], edi
mov word [esp + 0x90], ax
cmp dword [esp + 0x6c], ebx
jb 0x408662
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00413858
add esp, 4
xor edx, edx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], edi
mov word [esp + 0x58], dx
cmp dword [esp + 0x34], ebx
jb 0x408684
mov eax, dword [esp + 0x20]
push eax
call fcn.00413858
add esp, 4
xor ecx, ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
mov word [esp + 0x20], cx
mov byte [esp + 0x304], 0xd
cmp dword [esp + 0x88], ebx
jb 0x4086b1
mov edx, dword [esp + 0x74]
push edx
call fcn.00413858
add esp, 4
push 0x206
lea edx, [esp + 0xf6]
xor eax, eax
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], edi
mov word [esp + 0x80], ax
mov word [esp + 0xfc], cx
call fcn.00432320
add esp, 0xc
push 0x104
lea eax, [esp + 0xf4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0xf0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esp + 0xb0]
cmp dword [esp + 0xc4], ebx
jae 0x408722
lea eax, [esp + 0xb0]
push eax
lea edx, [esp + 0xf4]
push 0x104
push edx
call fcn.00430453
add esp, 0xc
lea eax, [esp + 0xf0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0xf0]
test eax, eax
jne 0x4087ff
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404a10
lea ecx, [esp + 0x18]
mov byte [esp + 0x304], 0xe
call fcn.00409a70
mov byte [esp + 0x304], 0xd
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408798
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xc8], edi
cmp dword [esp + 0xc4], ebx
jb 0x4087bf
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.00413858
add esp, 4
xor edx, edx
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], edi
mov word [esp + 0xb0], dx
mov dword [esp + 0xcc], vtable.CCommonConfig.0
cmp dword [esp + 0xe8], ebx
jb 0x4087fb
mov eax, dword [esp + 0xd4]
push eax
call fcn.00413858
add esp, 4
xor al, al
jmp 0x408875
push 1
push edi
push edi
push ecx
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xc8], edi
cmp dword [esp + 0xc4], ebx
jb 0x408837
mov edx, dword [esp + 0xb0]
push edx
call fcn.00413858
add esp, 4
xor eax, eax
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], edi
mov word [esp + 0xb0], ax
mov dword [esp + 0xcc], vtable.CCommonConfig.0
cmp dword [esp + 0xe8], ebx
jb 0x408873
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.00413858
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x2fc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2e4]
xor ecx, esp
call fcn.0042f892
add esp, 0x2f4
ret