Function at 0x40d360
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x458
mov eax, dword [0x449e30]
xor eax, esp
mov dword [esp + 0x454], eax
push ebx
push ebp
mov ebp, dword [esp + 0x464]
push esi
push edi
push 0x400
lea eax, [esp + 0x68]
push 0
push eax
mov ebx, ecx
call fcn.0041fd10
lea edx, [esp + 0x70]
add esp, 0xc
mov eax, ebp
sub edx, ebp
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40c890
lea eax, [esp + 0x64]
add eax, 0xfffffffe
cmp dword [esp + 0x470], 0
je 0x40c8f5
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40c8b0
mov ecx, dword [str.afuwinx64]
mov edx, dword [0x43b148]
mov dword [eax], ecx
mov ecx, dword [0x43b14c]
mov dword [eax + 4], edx
mov edx, dword [0x43b150]
mov dword [eax + 8], ecx
mov ecx, dword [0x43b154]
mov dword [eax + 0xc], edx
mov dx, word [0x43b158]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
jmp 0x40c924
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40c8f5
mov ecx, dword [str.afuwin]
mov edx, dword [0x43b138]
mov dword [eax], ecx
mov ecx, dword [0x43b13c]
mov dword [eax + 4], edx
mov edx, dword [0x43b140]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [ebx + 0xc8]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c930
lea edi, [esp + 0x64]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40c944
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
movzx eax, byte [ebx + 0x4d9]
and ecx, 3
add eax, 0xfffffffd
rep movsb byte es:[edi], byte [esi]
cmp eax, 0xa
ja case.0x40c976.4
movzx eax, byte [eax + 0x40ca7c]
jmp dword [eax*4 + 0x40ca70]
lea edi, [esp + 0x64]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40c984
mov ecx, 8
mov esi, str.__p__b__n__r__x
rep movsd dword es:[edi], dword [esi]
jmp case.0x40c976.4
lea edi, [esp + 0x64]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40c9a5
mov ecx, 9
mov esi, str.__p__b__n__e__r__x
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ecx, [esp + 0x64]
push ecx
push str.Bios_command_:__s
call fcn.004084b0
push 0x44
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.0041fd10
xor eax, eax
add esp, 0x14
test dword [0x44bca0], 0x200000
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebp
mov dword [esp + 0x2c], 0x44
lea edx, [esp + 0x70]
push 0
je 0x40ca1d
push 0xc000000
jmp 0x40ca22
push 0x4000000
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov ecx, dword [esp + 0x464]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0041fd8a
add esp, 0x458
ret 8
sub esp, 0x460
mov eax, dword [0x449e30]
xor eax, esp
mov dword [esp + 0x45c], eax
push ebx
push esi
mov esi, dword [esp + 0x46c]
push edi
push 0x400
lea eax, [esp + 0x6c]
push 0
push eax
mov ebx, ecx
mov dword [esp + 0x2c], esi
call fcn.0041fd10
lea edx, [esp + 0x74]
add esp, 0xc
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40cdc0
fld qword [0x43b2e0]
fcomp qword [ebx + 0x9b0]
fnstsw ax
test ah, 1
lea eax, [esp + 0x68]
jne 0x40ceb1
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40cdf0
mov ecx, dword [str.WinFlash]
mov edx, dword [0x43b2cc]
mov dword [eax], ecx
mov ecx, dword [0x43b2d0]
mov dword [eax + 4], edx
mov edx, dword [0x43b2d4]
mov dword [eax + 8], ecx
mov ecx, dword [0x43b2d8]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
lea eax, [ebx + 0xc8]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ce30
lea edi, [esp + 0x68]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40ce44
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x68]
add edi, 0xfffffffe
test dword [0x44bca0], 0x200000
je 0x40ce92
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40ce73
mov ecx, 0xc
mov esi, str.__remote2__bbl__cvar__sa
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x40cfc2
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40ce92
mov ecx, 0xc
mov esi, str.__console__bbl__cvar__sa
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x40cfc2
add eax, 0xfffffffe
cmp dword [esp + 0x474], 0
je 0x40cf00
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40cec0
mov edx, dword [str.WinFlash64]
mov ecx, dword [0x43b24c]
mov dword [eax], edx
mov edx, dword [0x43b250]
mov dword [eax + 4], ecx
mov ecx, dword [0x43b254]
mov dword [eax + 8], edx
mov edx, dword [0x43b258]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x43b25c]
jmp 0x40cf3b
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40cf00
mov edx, dword [str.WinFlash32]
mov ecx, dword [0x43b234]
mov dword [eax], edx
mov edx, dword [0x43b238]
mov dword [eax + 4], ecx
mov ecx, dword [0x43b23c]
mov dword [eax + 8], edx
mov edx, dword [0x43b240]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x43b244]
lea edi, [esp + 0x68]
add edi, 0xfffffffe
test dword [0x44bca0], 0x200000
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
je 0x40cf70
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40cf54
mov ecx, 0x12
mov esi, str.__p__bbl__cvar__sd__sn__exit__file
rep movsd dword es:[edi], dword [esi]
jmp 0x40cf8a
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40cf70
mov ecx, 0x10
mov esi, str.__bbl__cvar__sd__sn__exit__file
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebx + 0xc8]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cf92
lea edi, [esp + 0x68]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40cfa6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [esp + 0x68]
push edx
push str.Bios_command_:__s
call fcn.004084b0
push 0x44
lea eax, [esp + 0x30]
push 0
push eax
call fcn.0041fd10
xor eax, eax
add esp, 0x14
test dword [0x44bca0], 0x200000
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
je 0x40d020
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
push 0
push 0xc000000
jmp 0x40d033
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0x4000000
push 0
push 0
push 0
lea ecx, [esp + 0x88]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40d08a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Vendor_update_process_fail__x
mov dword [esp + 0x14], eax
call fcn.004084b0
add esp, 8
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x468]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0041fd8a
add esp, 0x460
ret 8
movzx edx, byte [ecx + 0x4da]
xor eax, eax
sub edx, 2
je 0x40d378
sub edx, 2
jne 0x40d37d
jmp 0x40c850
jmp 0x40cd80
ret 8