Function at 0x1004d494
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1020276f
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x10293044]
xor eax, esp
mov dword [esp + 0x378], eax
push ebx
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x390]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0x50]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], edi
je 0x1004c9bb
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
mov dword [esp + 0x398], ebx
cmp edi, ebx
jne 0x1004c9db
mov dword [esp + 0x398], 0xffffffff
mov eax, 1
jmp 0x1004d56c
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x398], 1
cmp byte [ebp + 8], 0
je 0x1004ca40
push esi
lea eax, [esp + 0x2c]
call fcn.1004f8f0
test al, al
jne 0x1004ca4e
mov byte [esp + 0x398], al
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x1004ca1b
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x398], 0xffffffff
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
jmp 0x1004d56a
lea ebx, [ebp + 0xc]
lea esi, [esp + 0x28]
call fcn.10029280
xor ebx, ebx
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x1004ca61
mov ecx, dword [esp + 0x30]
sub ecx, eax
sar ecx, 2
jne 0x1004ca9a
mov byte [esp + 0x398], 0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x1004ca7a
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x398], 0xffffffff
mov edx, dword [edi]
mov ecx, edi
jmp 0x1004d565
lea ecx, [esp + 0x10c]
push ecx
mov dword [esp + 0x28], 0xffffffff
mov byte [esp + 0x17], 0
call fcn.10003180
mov byte [esp + 0x398], 2
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x1004cb00
mov eax, dword [esp + 0x30]
sub eax, ecx
sar eax, 2
cmp eax, 1
jne 0x1004cb00
cmp eax, ebx
mov byte [esp + 0x13], al
ja 0x1004cae4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx]
mov edx, dword [edi]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x10c]
push eax
mov dword [esp + 0x28], ecx
push ecx
mov ecx, edi
call edx
test al, al
je 0x1004cb3b
lea ecx, [esp + 0x3c]
push ecx
xor ecx, ecx
call fcn.101aa7f0
mov byte [esp + 0x398], 3
mov edx, dword [0x102a95d4]
push 0x37e
push edx
call dword [sym.imp.USER32.dll_LoadMenuW]
cmp eax, ebx
mov dword [esp + 0x3c], eax
jne 0x1004cb7f
mov byte [esp + 0x398], 2
call fcn.101aa830
mov byte [esp + 0x398], 1
lea eax, [esp + 0x10c]
push eax
call fcn.100052d0
mov byte [esp + 0x398], 0
lea esi, [esp + 0x28]
call fcn.100a0ee0
mov dword [esp + 0x398], 0xffffffff
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov eax, 1
jmp 0x1004d56c
push ebx
lea esi, [esp + 0x20]
lea ecx, [esp + 0x40]
call fcn.10050290
mov byte [esp + 0x398], 4
mov eax, dword [eax]
lea ecx, [esp + 0x48]
push ecx
mov ecx, eax
call fcn.101aa7f0
mov byte [esp + 0x398], 6
mov esi, dword [esp + 0x48]
cmp esi, ebx
jne 0x1004cc11
mov byte [esp + 0x398], 3
call fcn.101aa830
mov byte [esp + 0x398], 2
call fcn.101aa830
mov byte [esp + 0x398], 1
lea edx, [esp + 0x10c]
push edx
call fcn.100052d0
mov byte [esp + 0x398], 0
lea esi, [esp + 0x28]
call fcn.100a0ee0
mov dword [esp + 0x398], 0xffffffff
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov eax, 1
jmp 0x1004d56c
cmp byte [esp + 0x13], 0
je 0x1004cd69
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
mov byte [esp + 0x398], 7
push 0x30
lea eax, [esp + 0x9c]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x9c], 0x30
mov dword [esp + 0xa0], 0x40
mov dword [esp + 0xa4], ebx
call fcn.10045a60
mov byte [esp + 0x398], 8
mov eax, dword [esp + 0x1a0]
cmp eax, 2
je 0x1004ccb7
cmp eax, 1
je 0x1004ccb7
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x1004ccfe
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push 0xa088
lea eax, [esp + 0xd8]
push eax
call edx
mov byte [esp + 0x398], 0xa
jmp 0x1004ccdb
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x1004ccfe
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push 0xa089
lea edx, [esp + 0xd8]
push edx
call eax
mov byte [esp + 0x398], 9
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x84]
call fcn.10007880
mov byte [esp + 0x398], 8
lea ecx, [esp + 0xd4]
call fcn.10001dd0
cmp dword [esp + 0x90], ebx
je 0x1004cd41
cmp dword [esp + 0x94], 8
jb 0x1004cd21
mov ecx, dword [esp + 0x80]
mov dword [esp + 0xbc], ecx
jmp 0x1004cd2f
lea edx, [esp + 0x80]
mov dword [esp + 0xbc], edx
lea eax, [esp + 0x98]
push eax
push 1
push ebx
push esi
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov byte [esp + 0x398], 7
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x1004cd58
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x398], 6
lea ecx, [esp + 0x7c]
call fcn.10001dd0
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x398], 0xb
push 1
lea ecx, [esp + 0x50]
push ecx
push esi
call fcn.101a9fd0
add esp, 0xc
cmp byte [esp + 0x13], 0
push 1
jne 0x1004ce00
push 0x9d66
push esi
call fcn.100ec280
add esp, 0xc
push 1
push 0x9c45
push esi
call fcn.100ec280
add esp, 0xc
push 1
push 0x9d67
push esi
call fcn.100ec280
add esp, 0xc
push 1
push 0x9d6a
push esi
call fcn.100ec280
add esp, 0xc
push 1
push 0x9d6b
push esi
call fcn.100ec280
add esp, 0xc
push 1
push 0x9d6c
push esi
call fcn.100ec280
add esp, 0xc
push 1
push 0x9d6d
jmp 0x1004cea3
mov eax, dword [esp + 0x1a4]
cmp eax, 5
jne 0x1004ce2c
push 0x9d66
push esi
call fcn.100ec280
add esp, 0xc
lea ecx, [esp + 0x148]
call fcn.1019f980
test al, al
jne 0x1004ce5f
jmp 0x1004ce4f
cmp eax, 4
push 0x9c45
push esi
je 0x1004ce47
call fcn.100ec280
add esp, 0xc
push 1
push 0x9d6a
push esi
call fcn.100ec280
add esp, 0xc
push 1
push 0x9d6d
push esi
call fcn.100ec280
add esp, 0xc
lea edx, [esp + 0x148]
push edx
call fcn.1019b780
add esp, 4
test al, al
jne 0x1004ce93
push 1
push 0x9c45
push esi
call fcn.100ec280
add esp, 0xc
push 1
push 0x9d67
push esi
call fcn.100ec280
add esp, 0xc
cmp dword [esp + 0x140], ebx
jne 0x1004ceac
push 1
push 0x9d6b
push esi
call fcn.100ec280
add esp, 0xc
call fcn.101a7380
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x1004cec7
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
mov ebx, eax
test ebx, ebx
jne 0x1004cf46
lea esi, [esp + 0x3c]
call fcn.10050270
lea esi, [esp + 0x4c]
call fcn.100ec840
mov byte [esp + 0x398], 6
call fcn.100a0ee0
mov byte [esp + 0x398], 3
call fcn.101aa830
mov byte [esp + 0x398], 2
call fcn.101aa830
mov byte [esp + 0x398], 1
lea eax, [esp + 0x10c]
push eax
call fcn.100052d0
mov byte [esp + 0x398], 0
lea esi, [esp + 0x28]
call fcn.100a0ee0
mov dword [esp + 0x398], 0xffffffff
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x1004d56c
mov edx, dword [ebx]
mov eax, dword [edx]
push esi
mov ecx, ebx
call eax
test al, al
jne 0x1004cfab
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push ebx
mov ecx, edi
call eax
lea esi, [esp + 0x3c]
call fcn.10050270
lea esi, [esp + 0x4c]
call fcn.100ec840
mov byte [esp + 0x398], 6
call fcn.100a0ee0
mov byte [esp + 0x398], 3
call fcn.101aa830
mov byte [esp + 0x398], 2
call fcn.101aa830
mov byte [esp + 0x398], 1
lea ecx, [esp + 0x10c]
push ecx
jmp 0x1004cf10
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
jl 0x1004cfc9
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
jmp 0x1004cfd4
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
push 0
push 5
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [ecx + 4]
push edx
mov ecx, ebx
call eax
mov edx, dword [edi]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x14]
push ebx
mov ecx, edi
call eax
lea esi, [esp + 0x3c]
call fcn.10050270
lea esi, [esp + 0x4c]
call fcn.100ec840
cmp dword [esp + 0x1c], 0
je case.default.0x1004d132
mov bl, byte [esp + 0x13]
xor cl, cl
test bl, bl
mov byte [esp + 0x1b], cl
je 0x1004d08b
lea ecx, [esp + 0x284]
push ecx
call fcn.10003180
mov byte [esp + 0x398], 0xc
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov esi, dword [esp + 0x24]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x284]
push eax
push esi
call edx
test al, al
je 0x1004d070
mov eax, dword [esp + 0x318]
cmp eax, dword [esp + 0x1a0]
setne byte [esp + 0x1b]
mov byte [esp + 0x398], 0xb
lea ecx, [esp + 0x284]
push ecx
call fcn.100052d0
mov cl, byte [esp + 0x1b]
jmp 0x1004d08f
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
cmp eax, 0x9d66
ja 0x1004d124
je 0x1004d0c2
cmp eax, 0x9c45
jne case.default.0x1004d132
test bl, bl
je case.default.0x1004d132
mov edi, dword [esp + 0x14]
push esi
call fcn.1004ed20
jmp case.default.0x1004d132
test bl, bl
je case.default.0x1004d132
test cl, cl
jne case.default.0x1004d132
mov eax, dword [esp + 0x1a0]
cmp eax, 2
je 0x1004d115
cmp eax, 1
je 0x1004d115
cmp eax, 3
je 0x1004d105
test eax, eax
je 0x1004d105
cmp eax, 4
jne case.default.0x1004d132
mov edx, dword [esp + 0x14]
push esi
push edx
call fcn.1004d970
jmp case.default.0x1004d132
mov eax, dword [esp + 0x14]
push esi
push eax
call fcn.1004d970
jmp case.default.0x1004d132
mov edi, dword [esp + 0x14]
push esi
call fcn.1004d9f0
jmp case.default.0x1004d132
add eax, 0xffff6299
cmp eax, 6
ja case.default.0x1004d132
jmp dword [eax*4 + 0x1004d594]
test bl, bl
je case.default.0x1004d132
mov ecx, dword [esp + 0x14]
push esi
push ecx
call fcn.1004eee0
jmp case.default.0x1004d132
lea esi, [esp + 0x74]
lea edi, [esp + 0x28]
call fcn.100b6850
mov edx, dword [eax]
mov eax, dword [eax + 4]
lea esi, [esp + 0x5c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call fcn.10050d50
mov esi, eax
lea edi, [esp + 0x1c]
call fcn.100a1010
test al, al
je 0x1004d1da
mov ecx, dword [esp + 0x14]
add ecx, 0xf8
mov dword [esp + 0x24], ecx
lea esi, [esp + 0x1c]
call fcn.10104a70
mov edx, dword [eax]
mov esi, dword [esp + 0x24]
lea ebx, [esp + 0x7c]
mov dword [esp + 0x7c], edx
mov byte [esp + 0x80], 0
call fcn.100503f0
lea esi, [esp + 0x1c]
call fcn.10050550
lea esi, [esp + 0x5c]
lea edi, [esp + 0x28]
call fcn.10050d50
mov esi, eax
lea edi, [esp + 0x1c]
call fcn.100a1010
test al, al
jne 0x1004d191
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
push 0
push 0
push 0x50d
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp case.default.0x1004d132
lea esi, [esp + 0x6c]
lea edi, [esp + 0x28]
call fcn.100b6850
mov edx, dword [eax]
mov eax, dword [eax + 4]
lea esi, [esp + 0x64]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call fcn.10050d50
mov esi, eax
lea edi, [esp + 0x1c]
call fcn.100a1010
test al, al
je 0x1004d1da
mov ecx, dword [esp + 0x14]
add ecx, 0xf8
mov dword [esp + 0x24], ecx
lea esi, [esp + 0x1c]
call fcn.10104a70
mov edx, dword [eax]
mov esi, dword [esp + 0x24]
lea ebx, [esp + 0x7c]
mov dword [esp + 0x7c], edx
mov byte [esp + 0x80], 1
call fcn.100503f0
lea esi, [esp + 0x1c]
call fcn.10050550
lea esi, [esp + 0x64]
lea edi, [esp + 0x28]
call fcn.10050d50
mov esi, eax
lea edi, [esp + 0x1c]
call fcn.100a1010
test al, al
jne 0x1004d236
jmp 0x1004d1da
test bl, bl
je case.default.0x1004d132
test cl, cl
jne case.default.0x1004d132
mov edi, dword [esp + 0x14]
push esi
call fcn.1004de30
jmp case.default.0x1004d132
test bl, bl
je case.default.0x1004d132
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp dword [edi + 0x54], ebx
je case.default.0x1004d132
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov byte [esp + 0x398], 0xd
lea edx, [esp + 0x20c]
push edx
call fcn.10045020
mov byte [esp + 0x398], 0xe
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x134]
lea ecx, [esp + 0x214]
call fcn.10007880
lea eax, [esp + 0x20c]
push eax
lea esi, [esp + 0x80]
mov byte [esp + 0x280], bl
mov byte [esp + 0x281], bl
mov dword [esp + 0x284], ebx
call fcn.10050590
mov ecx, dword [edi + 0x54]
mov edx, dword [ecx]
mov edx, dword [edx + 0x70]
mov eax, esi
push eax
call edx
test al, al
jne 0x1004d448
call fcn.101ca190
lea eax, [esp + 0x98]
push eax
call fcn.101ca560
mov byte [esp + 0x398], 0xf
mov edx, 0x10234648
lea eax, [esp + 0xf0]
call fcn.10007690
mov byte [esp + 0x398], 0x10
push ebx
lea ecx, [esp + 0x130]
push ecx
or eax, 0xffffffff
lea esi, [esp + 0xf8]
call fcn.1000c700
mov edx, esi
push edx
mov edx, 0x10234648
call fcn.1000bb30
lea edx, [esp + 0x98]
lea ecx, [esp + 0xd4]
call fcn.101c8780
mov byte [esp + 0x398], 0x11
mov edx, dword [esp + 0xd8]
mov eax, 8
cmp dword [esp + 0xec], eax
jae 0x1004d3cf
lea edx, [esp + 0xd8]
cmp dword [esp + 0x108], eax
mov ecx, dword [esp + 0xf4]
jae 0x1004d3e6
lea ecx, [esp + 0xf4]
cmp dword [esp + 0xb0], eax
mov eax, dword [esp + 0x9c]
jae 0x1004d3fd
lea eax, [esp + 0x9c]
mov esi, dword [edi + 4]
push edx
push ecx
push eax
push ebx
call fcn.101c8020
add esp, 0x10
mov byte [esp + 0x398], 0x10
lea ecx, [esp + 0xd4]
call fcn.10001dd0
mov byte [esp + 0x398], 0xf
lea ecx, [esp + 0xf0]
call fcn.10001dd0
mov byte [esp + 0x398], 0xe
lea ecx, [esp + 0x98]
call fcn.10001dd0
mov byte [esp + 0x398], 0xd
lea eax, [esp + 0x20c]
push eax
call fcn.1004d5b0
mov byte [esp + 0x398], 0xb
lea ebx, [esp + 0x7c]
call fcn.10050910
jmp case.default.0x1004d132
test bl, bl
je case.default.0x1004d132
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
push edx
lea ecx, [esp + 0x114]
call fcn.101cbd20
add esp, 4
jmp case.default.0x1004d132
test bl, bl
je case.default.0x1004d132
push 0x3c
lea eax, [esp + 0x9c]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [esp + 0x160], 8
mov dword [esp + 0x98], 0x3c
jb 0x1004d4d1
mov ecx, dword [esp + 0x14c]
mov dword [esp + 0xa8], ecx
jmp 0x1004d4df
lea edx, [esp + 0x14c]
mov dword [esp + 0xa8], edx
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0xa8], 0x1023464c
mov dword [esp + 0xa0], 0xc
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov byte [esp + 0x398], 6
lea esi, [esp + 0x4c]
call fcn.100a0ee0
mov byte [esp + 0x398], 3
call fcn.101aa830
mov byte [esp + 0x398], 2
call fcn.101aa830
mov byte [esp + 0x398], 1
lea ecx, [esp + 0x10c]
push ecx
call fcn.100052d0
mov byte [esp + 0x398], 0
lea esi, [esp + 0x28]
call fcn.100a0ee0
mov dword [esp + 0x398], 0xffffffff
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x390]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x378]
xor ecx, esp
call fcn.101d19cc
mov esp, ebp
pop ebp
ret 0x10