Function at 0x405680
Capabilities:
Create process on windows
Hide graphical window
Terminate process

Disassembly:
sub esp, 0x180
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov cl, byte [esi + eax + 0x10]
test cl, cl
lea eax, [esi + eax + 0x10]
je 0x404837
mov ecx, dword [esi + 8]
inc ecx
mov dword [esi + 8], ecx
mov dl, byte [esi + ecx + 0x10]
test dl, dl
jne 0x404828
inc dword [esi + 8]
lea edx, [esp + 4]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404840
mov edx, dword [esi + 8]
mov cl, byte [edx + esi + 0x10]
test cl, cl
lea eax, [edx + esi + 0x10]
je 0x40486f
lea esp, [esp]
mov ecx, dword [esi + 8]
inc ecx
mov dword [esi + 8], ecx
mov dl, byte [ecx + esi + 0x10]
test dl, dl
jne 0x404860
inc dword [esi + 8]
lea edx, [esp + 0x44]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404878
mov edx, dword [esi + 8]
mov cl, byte [edx + esi + 0x10]
test cl, cl
lea eax, [edx + esi + 0x10]
je 0x4048a0
mov ecx, dword [esi + 8]
inc ecx
mov dword [esi + 8], ecx
mov dl, byte [ecx + esi + 0x10]
test dl, dl
jne 0x404891
inc dword [esi + 8]
lea edx, [esp + 0x104]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4048b0
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x8c]
push str._s__s
push ecx
call fcn.0041cca5
add esp, 0x10
mov ecx, esi
call fcn.00403e80
mov ecx, dword [0x456130]
call fcn.00413960
test eax, eax
mov ecx, dword [0x455ef0]
jne 0x4048f8
push eax
jmp 0x4048fa
push 1
push str.FullScreen
push str.General
call fcn.004130a0
mov ecx, dword [0x455ef0]
call fcn.00412c50
mov ecx, dword [0x456130]
call fcn.00413960
test eax, eax
je 0x40492e
mov ecx, dword [0x456130]
call fcn.00414230
mov ecx, dword [0x456130]
test ecx, ecx
mov esi, ecx
je 0x404948
call fcn.00408d20
push esi
call fcn.0041c3de
add esp, 4
mov edx, dword [0x432c80]
mov eax, dword [edx + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x110]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call fcn.0041ce84
pop esi
mov eax, dword [ecx + 8]
push esi
lea esi, [eax + ecx + 0x10]
cmp byte [esi], 0
push edi
je 0x40499f
mov edi, edi
mov edx, dword [ecx + 8]
inc edx
mov dword [ecx + 8], edx
mov al, byte [edx + ecx + 0x10]
test al, al
jne 0x404990
mov edx, dword [ecx + 8]
inc edx
mov eax, edx
mov dword [ecx + 8], edx
lea edx, [eax + ecx + 0x10]
cmp byte [edx], 0
je 0x4049c2
push ebx
mov eax, dword [ecx + 8]
inc eax
mov dword [ecx + 8], eax
mov bl, byte [eax + ecx + 0x10]
test bl, bl
jne 0x4049b2
pop ebx
mov eax, dword [ecx + 8]
inc eax
mov dword [ecx + 8], eax
movzx edi, word [ecx + 0xc]
cmp eax, edi
jl 0x4049ea
mov eax, 0xff
movsx ecx, ax
push ecx
mov ecx, dword [0x432c80]
push edx
push esi
call fcn.004029d0
pop edi
pop esi
ret
lea edi, [eax + 2]
mov dword [ecx + 8], edi
mov ax, word [eax + ecx + 0x10]
movsx ecx, ax
push ecx
mov ecx, dword [0x432c80]
push edx
push esi
call fcn.004029d0
pop edi
pop esi
ret
push 0xffffffffffffffff
push 0x4289c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
mov ecx, edi
call fcn.004157f0
test eax, eax
je 0x4058ad
mov ecx, edi
call fcn.004156b0
test eax, eax
jne case.0x405755.8
push 0x78
call fcn.0041c3e3
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x4056e3
push 0
push 0
push str.PACKET_FAILED_VALIDATION_
mov ecx, eax
call fcn.0040d790
jmp 0x4056e5
xor eax, eax
mov ecx, dword [0x434d30]
push eax
mov dword [esp + 0x18], 0xffffffff
call fcn.00407d20
mov eax, dword [0x432c80]
pop edi
mov dword [eax + 0x21c], 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
movzx ecx, word [edi + 4]
mov eax, dword [edi]
cmp eax, ecx
jge 0x4058ad
movzx edx, word [edi + 4]
cmp eax, edx
jl 0x40573b
or cl, 0xff
jmp 0x405742
mov cl, byte [eax + edi + 8]
inc eax
mov dword [edi], eax
movzx eax, cl
cmp eax, 0x1f
ja case.0x405755.1
movzx eax, byte [eax + 0x405920]
jmp dword [eax*4 + 0x4058d8]
mov ecx, esi
call fcn.00404ad0
jmp case.0x405755.8
mov ecx, esi
call fcn.00405460
jmp case.0x405755.8
mov ecx, esi
call fcn.00404320
jmp case.0x405755.8
mov ecx, esi
call fcn.00404470
jmp case.0x405755.8
mov ecx, esi
call fcn.00404680
jmp case.0x405755.8
mov ecx, esi
call fcn.00405570
jmp case.0x405755.8
mov ecx, esi
call fcn.004040c0
jmp case.0x405755.8
mov ecx, esi
call 0x404980
jmp case.0x405755.8
mov ecx, esi
call fcn.00404a10
jmp case.0x405755.8
mov ecx, esi
call fcn.00404b10
jmp case.0x405755.8
mov ecx, esi
call fcn.00404fc0
jmp case.0x405755.8
mov ecx, esi
call fcn.00405060
jmp case.0x405755.8
movzx ecx, word [edi + 4]
mov eax, dword [edi]
cmp eax, ecx
jl 0x4057f2
or cl, 0xff
movzx edx, cl
mov dword [esi + 0x406c], edx
jmp case.0x405755.8
mov cl, byte [eax + edi + 8]
movzx edx, cl
inc eax
mov dword [edi], eax
mov dword [esi + 0x406c], edx
jmp case.0x405755.8
mov ecx, dword [0x455e60]
test ecx, ecx
je case.0x405755.8
call fcn.00411330
jmp case.0x405755.8
mov ecx, esi
jmp 0x404810
mov ecx, esi
call fcn.00404470
mov eax, dword [0x432c80]
pop edi
mov dword [eax + 0x21c], 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x78
call fcn.0041c3e3
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov esi, 1
mov dword [esp + 0x14], esi
je 0x40587a
push 0
push 0
push str.INVALID_DATA_IN_PACKET_
mov ecx, eax
call fcn.0040d790
jmp 0x40587c
xor eax, eax
mov ecx, dword [0x434d30]
push eax
mov dword [esp + 0x18], 0xffffffff
call fcn.00407d20
mov ecx, dword [0x432c80]
pop edi
mov dword [ecx + 0x21c], esi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [esi + 0x4018]
test eax, eax
jne 0x4058c7
mov edx, dword [0x432c80]
mov dword [edx + 0x21c], 1
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret