Function at 0x420d06
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
lea ecx, [ebp + 0x10]
call fcn.0040e58b
xor ebx, ebx
push ebx
call fcn.00458759
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], ebx
call fcn.0042460b
push str.PeExe
push 0xffffffffffffffff
push 0x48aec0
call fcn.0042d52d
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.0042460b
push ebx
lea eax, [ebp - 0x40]
push eax
push str.SCRIPTINIT
push 0x64
push dword [0x48add0]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call fcn.0040e9a5
lea eax, [ebp - 0x40]
push 1
push eax
call fcn.00433ac4
mov edx, dword [ebp - 0x40]
add esp, 0x1c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], edx
call fcn.0040e58b
cmp dword [ebp - 0x3c], 4
mov eax, dword [ebp - 0x28]
jg 0x420d92
mov word [edx], bx
mov word [eax], bx
cmp word [eax], bx
mov edi, 0x48aec0
je 0x420e26
push 0x40
push str.init
mov ecx, edi
call fcn.00412131
mov al, byte [0x4892a8]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x40], ebx
mov byte [ebp - 3], al
mov byte [0x4892a8], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042a183
push 0x4758e0
push dword [ebp - 0x28]
mov ecx, edi
push esi
call fcn.004573f2
mov al, byte [ebp - 3]
push 0xffffffffffffffff
push ebx
push str.__Autoapp
mov ecx, edi
mov byte [0x4892a8], al
call fcn.0040a6dc
cmp eax, ebx
je 0x420e1e
add eax, 4
cmp eax, ebx
je 0x420e1e
mov eax, dword [eax]
xor ecx, ecx
mov cx, word [eax]
cmp cx, bx
je 0x420e15
inc eax
mov dword [ebp - 0x18], ecx
inc eax
push eax
lea ecx, [ebp - 0x14]
call fcn.00424710
lea ecx, [ebp - 0x28]
call fcn.00424686
lea ecx, [ebp - 0x40]
call fcn.00424686
push str.PeExe
push 1
push 0x48aec0
call fcn.0042d52d
add esp, 0xc
lea ecx, [ebp - 0x4c]
call fcn.0042460b
cmp word [ebp - 0x18], 0x2a
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x1c], ebx
je 0x420eb6
cmp word [ebp - 0x18], 0x24
je 0x420eb6
mov eax, dword [ebp - 0x14]
cmp word [eax], bx
jne 0x420eb6
push ebx
lea eax, [ebp - 0x4c]
push eax
push 0x478630
push 0x65
push dword [0x48add0]
call fcn.0040e9a5
lea eax, [ebp - 0x4c]
push 1
push eax
call fcn.00433ac4
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
call fcn.0040e58b
mov eax, ecx
push ebx
push eax
call fcn.00412d8a
mov eax, dword [ebp - 0x1c]
add esp, 0x24
cmp word [eax], bx
je 0x420eb3
cmp dword [ebp - 0x48], 4
jg 0x420eb6
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebp + 0x10]
push 4
push esi
push str.MAIN
call fcn.004257a3
add esp, 0xc
test al, al
je 0x420ed3
mov byte [0x48ab86], bl
cmp word [ebp - 0x18], 0x2d
mov byte [ebp - 1], bl
jne 0x420ee1
mov byte [ebp - 1], 2
cmp word [ebp - 0x18], 0x2a
jne 0x420f09
lea eax, [ebp - 0x2c]
push eax
mov byte [0x4892a8], 1
call fcn.00429aff
mov eax, dword [ebp - 0x14]
pop ecx
add eax, 8
push eax
mov ecx, edi
call fcn.004209ca
jmp 0x420f6e
cmp word [ebp - 0x18], 0x24
jne 0x420f26
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
mov ecx, edi
mov byte [0x4892a8], 1
call fcn.0041e84e
jmp 0x420f6e
mov eax, dword [ebp - 0x14]
cmp word [eax], bx
je 0x420f57
push 0x476010
lea ecx, [ebp - 0x14]
mov byte [0x4892a8], 1
call fcn.004246c0
push esi
lea ecx, [ebp - 0x14]
call fcn.004246c0
push dword [ebp - 0x14]
mov ecx, edi
call fcn.00418c8f
jmp 0x420f6e
cmp word [esi], bx
jne 0x420f76
cmp dword [ebp - 0x1c], ebx
jne 0x420f76
push ebx
push 0x4758e0
mov ecx, edi
call fcn.0041e3cd
mov dword [ebp - 0x20], eax
jmp 0x42138a
lea ecx, [ebp - 0x10]
call fcn.0042460b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, ebx
lea ecx, [ebp - 0x10]
jne 0x420f98
call fcn.00424686
or esi, 0xffffffff
jmp 0x4213c3
push ecx
push eax
call fcn.00412dde
mov esi, dword [ebp - 0x10]
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], esi
call fcn.004124b4
add esp, 0x14
lea ecx, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.0040e58b
mov ecx, dword [ebp - 8]
mov eax, ecx
sub eax, esi
sar eax, 1
cmp word [ebp - 0x18], 0x23
mov dword [ebp - 0x28], eax
je 0x420fff
push 0xb
lea eax, [ebp - 8]
push eax
push str.pecmd_cmd
call fcn.0042c9b5
add esp, 0xc
test al, al
je 0x420ff0
or byte [ebp - 1], 1
lea eax, [ebp - 8]
push ebx
push eax
call fcn.00412d8a
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x1c], ebx
je 0x42100d
cmp byte [ebp - 1], bl
mov byte [ebp - 2], 1
je 0x421010
mov byte [ebp - 2], bl
cmp byte [ebp - 2], bl
mov byte [ebp - 0x24], 0x10
mov dword [ebp - 0xc], ebx
mov byte [ebp - 3], 1
je 0x421032
lea esi, [ebp - 0x4c]
mov byte [0x4892a8], 1
mov byte [ebp - 3], bl
jmp 0x421201
cmp word [ecx], 0x2f
mov byte [ebp - 1], bl
jne 0x42105c
mov ax, word [ecx + 2]
or ax, 0x20
cmp ax, 0x6c
jne 0x42105c
mov ax, word [ecx + 4]
call fcn.004213da
test al, al
je 0x42105c
mov al, byte [ecx + 2]
mov byte [ebp - 1], al
cmp byte [ebp - 1], bl
mov dword [ebp - 0x18], ebx
je 0x421083
mov word [ecx + 2], 0x20
mov eax, dword [ebp - 8]
mov word [eax], 0x20
add dword [ebp - 8], 4
lea ecx, [ebp - 8]
call fcn.0040e58b
jmp 0x42112a
cmp word [ecx], 0x22
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
sete byte [ebp - 4]
mov dword [ebp - 0x20], ecx
call fcn.004124b4
sub eax, dword [ebp - 0x20]
add esp, 0xc
sar eax, 1
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x30]
call fcn.00424629
push dword [ebp - 0x30]
call fcn.004614b5
cmp byte [ebp - 4], bl
pop ecx
mov esi, eax
je 0x4210de
cmp esi, ebx
mov ecx, dword [ebp - 8]
je 0x4210d4
mov ax, word [ecx + 2]
call fcn.004213da
test al, al
je 0x4210de
push ecx
call fcn.00412d51
pop ecx
mov dword [ebp - 8], eax
cmp esi, ebx
je 0x421122
push dword [ebp - 8]
call fcn.0046176a
mov esi, eax
pop ecx
inc esi
lea eax, [esi + 0xa]
push eax
lea ecx, [ebp - 0x18]
call fcn.00424699
push 0xc
push str.LOAD
push dword [ebp - 0x18]
call fcn.00461a50
mov eax, dword [ebp - 0x18]
push esi
push dword [ebp - 8]
add eax, 0xa
push eax
call fcn.0040391f
mov eax, dword [ebp - 0x18]
add esp, 0x18
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x30]
call fcn.00424686
push dword [ebp - 8]
call fcn.0046176a
mov esi, eax
pop ecx
lea eax, [esi + 3]
push eax
lea ecx, [ebp - 0xc]
call fcn.00424699
lea eax, [esi + 1]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0040391f
mov eax, dword [ebp - 0xc]
add esp, 0xc
cmp byte [ebp - 1], bl
mov word [eax + esi*2 + 2], bx
je 0x4211f2
push dword [ebp - 0xc]
mov byte [ebp - 0x24], bl
call fcn.004267f5
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
pop ecx
lea eax, [ebp - 0x20]
call fcn.0040e4de
mov esi, dword [ebp - 0x20]
sub esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
sar esi, 1
add eax, esi
mov dword [ebp - 0x30], eax
inc eax
push eax
lea ecx, [ebp - 0x10]
call fcn.00424699
cmp esi, ebx
jle 0x4211f2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
push esi
push dword [ebp - 0xc]
lea eax, [eax + ecx*2]
push eax
call fcn.0040391f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
add esp, 0xc
cmp byte [ebp - 1], 0x4c
mov word [eax + ecx*2], bx
jne 0x4211f2
push dword [ebp - 0x20]
call fcn.0046176a
inc eax
add eax, eax
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
push dword [ebp - 0xc]
call fcn.00461d90
mov ecx, dword [ebp - 0x30]
lea eax, [esi + esi]
push eax
mov eax, dword [ebp - 0xc]
add ecx, eax
push ebx
push ecx
call fcn.00461780
add esp, 0x1c
or byte [ebp - 0x24], 1
lea ecx, [ebp - 0x18]
lea esi, [ebp - 0xc]
call fcn.00424686
mov eax, dword [esi]
push dword [ebp - 0x10]
mov ecx, 0x48aec0
mov dword [ebp - 0x20], eax
call fcn.0042da2a
cmp byte [ebp - 2], bl
je 0x421221
push 0x40
push str.101
jmp 0x421257
lea ecx, [ebp - 0x20]
call fcn.0040e58b
push dword [ebp - 0x20]
call fcn.0046176a
mov edx, dword [ebp - 0x20]
pop ecx
lea ecx, [edx + eax*2 - 2]
jmp 0x42124c
mov ax, word [ecx]
call fcn.004213da
test al, al
je 0x421250
mov word [ecx], bx
dec ecx
dec ecx
cmp ecx, edx
jae 0x42123b
push 0x40
push str.cmdline
mov ecx, edi
call fcn.00412131
mov eax, dword [esi]
mov ecx, dword [ebp - 0x20]
sub ecx, eax
test ecx, 0xfffffffe
mov dword [ebp - 0x30], eax
jle 0x42128b
push dword [ebp - 0x20]
call fcn.0046176a
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x30]
call fcn.00461d90
add esp, 0x10
mov eax, dword [esi]
push ebx
call fcn.004122c8
lea ecx, [ebp - 0x30]
mov dword [esp], 0x478f44
call fcn.0042a183
mov eax, dword [esi]
push 0x48aec0
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.0046176a
pop ecx
push eax
push esi
xor ecx, ecx
call fcn.0041e23b
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.00424686
movsx eax, byte [ebp - 3]
push str.PeExe
push eax
push 0x48aec0
call fcn.0042d52d
mov eax, dword [esi]
add esp, 0xc
push ebx
push dword [ebp - 0x24]
mov ecx, edi
push ebx
push dword [ebp - 0x10]
mov dword [esi], ebx
push eax
call fcn.004574bd
cmp dword [0x48b144], ebx
mov dword [ebp - 0x20], eax
jle 0x421305
mov byte [0x4892b4], 0xff
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, 0x14
mov dword [ebp - 0x30], eax
call esi
jmp 0x421372
call esi
mov dword [ebp - 0x28], eax
sub eax, dword [ebp - 0x30]
cmp eax, 1
jb 0x421331
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
push 0x4bf
push 0xa
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x42136a
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x421372
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [0x48b144], ebx
jg 0x421343
cmp dword [0x48b144], ebx
jg 0x421317
lea ecx, [ebp - 0xc]
call fcn.00424686
lea ecx, [ebp - 0x10]
call fcn.00424686
mov ecx, 0x48b5f0
call fcn.00424c1e
mov ecx, 0x48b200
call fcn.00424c4c
cmp dword [ebp - 0x2c], ebx
je 0x4213ad
lea eax, [ebp - 0x2c]
push eax
call fcn.00429aff
pop ecx
call fcn.0040bb5e
mov eax, 0x4758e0
push eax
push eax
mov ecx, edi
call fcn.0041b7ec
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x4c]
call fcn.00424686
lea ecx, [ebp - 0x14]
call fcn.00424686
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret