Function at 0x40ec50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55869b
mov eax, dword fs:[0]
push eax
sub esp, 0x908
mov eax, dword [0x5adf10]
xor eax, esp
mov dword [esp + 0x900], eax
push ebx
push esi
push edi
mov eax, dword [0x5adf10]
xor eax, esp
push eax
lea eax, [esp + 0x918]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x1ff
lea edx, [esp + 0x711]
push ebx
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
mov byte [esp + 0x718], bl
call fcn.005344b0
add esp, 0xc
push 0x207
lea eax, [esp + 0x401]
push ebx
push eax
mov byte [esp + 0x408], bl
call fcn.005344b0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x68]
push ebx
push ecx
call fcn.005344b0
add esp, 0xc
lea ecx, [esp + 0x64]
call fcn.004178d0
lea eax, [esp + 0x64]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40ecf8
mov edx, dword [0x585730]
mov ecx, dword [0x585734]
mov dword [eax], edx
mov edx, dword [0x585738]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
push 0x103
lea eax, [esp + 0x69]
push ebx
push eax
mov byte [esp + 0x70], bl
call fcn.005344b0
add esp, 0xc
xor eax, eax
mov cl, byte [eax + str.CNSRCB_UsbKey_Setup.exe]
mov byte [esp + eax + 0x64], cl
inc eax
cmp cl, bl
jne 0x40ed33
push 0xff
lea ecx, [esp + 0x301]
push ebx
push ecx
mov byte [esp + 0x308], bl
call fcn.005344b0
add esp, 0xc
push 0x103
lea edx, [esp + 0x609]
push ebx
push edx
mov byte [esp + 0x610], bl
call fcn.005344b0
add esp, 0xc
lea edi, [esp + 0x604]
call fcn.00417b40
lea edi, [esp + 0x20]
call fcn.0041cb20
lea eax, [esp + 0x2fc]
push eax
push str.EnterSafe
lea edx, [esp + 0x60c]
mov ecx, edi
mov dword [esp + 0x928], ebx
call fcn.0041ef00
mov ecx, edi
mov esi, eax
mov dword [esp + 0x920], 0xffffffff
call fcn.0041cca0
cmp esi, 9
je 0x40ede0
mov ecx, dword [esp + 0x14]
push ecx
xor ecx, ecx
call fcn.0040e3b0
test eax, eax
jne 0x40f069
mov ecx, dword [esp + 0x14]
call fcn.0040e8a0
lea eax, [esp + 0x2fc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40edf3
sub eax, edx
cmp eax, 1
jbe 0x40ee25
xor eax, eax
jmp 0x40ee10
mov cl, byte [esp + eax + 0x2fc]
mov byte [esp + eax + 0x3fc], cl
inc eax
cmp cl, bl
jne 0x40ee10
jmp 0x40ee60
lea ecx, [esp + 0x3fc]
call fcn.004178d0
lea eax, [esp + 0x64]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ee37
lea edi, [esp + 0x3fc]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40ee48
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]
push 0x38
lea edx, [esp + 0x30]
push ebx
push edx
mov dword [esp + 0x34], 0x3c
call fcn.005344b0
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x28]
lea eax, [esp + 0x3fc]
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], 0x40
mov dword [esp + 0x40], str.__S
mov dword [esp + 0x48], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40ef18
push 0xb4
lea eax, [esp + 0x300]
push ebx
push eax
mov dword [esp + 0x200], 1
call fcn.005344b0
add esp, 0xc
mov esi, str.IDS_USBKEY_DRV_INST_FAILED
mov ecx, str.CheckRes
call fcn.00419bb0
lea edx, [esp + 0x2fc]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40eee7
xor eax, eax
jmp 0x40ef00
mov cl, byte [esp + eax + 0x2fc]
mov byte [esp + eax + 0x1f8], cl
inc eax
cmp cl, bl
jne 0x40ef00
jmp 0x40f046
mov edx, dword [esp + 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x20], ebx
call esi
mov edi, 0x103
cmp dword [esp + 0x18], edi
jne 0x40ef5d
lea esp, [esp]
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x18]
push eax
push ecx
call esi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x18], edi
je 0x40ef40
lea eax, [esp + 0x3fc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ef67
sub eax, edx
cmp eax, 3
jbe 0x40ef86
push str.EnterSafe
lea ecx, [esp + 0x400]
call fcn.00418030
push 0x100
lea edx, [esp + 0x1fc]
push ebx
push edx
mov dword [esp + 0x200], ebx
mov dword [esp + 0x1fc], 0x1b
call fcn.005344b0
add esp, 0xc
mov esi, str.IDS_USBKEY_DRV_INST_FINISHED
mov ecx, str.CheckRes
call fcn.00419bb0
lea edx, [esp + 0x70c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40efc6
lea eax, [esp + 0x70c]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40efe0
lea edi, [esp + 0x1f8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40eff1
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]
mov edi, dword [esp + 0x1c]
cmp edi, ebx
je 0x40f046
lea eax, [esp + 0x70c]
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40f020
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40f030
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40f05e
lea ecx, [esp + 0x16c]
push ecx
call fcn.00417780
add esp, 4
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x918]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x900]
xor ecx, esp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret 4