Function at 0x41c300
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x535df0]
xor eax, esp
mov dword [esp + 0x70], eax
test byte [ebp + 0xc], 1
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov edi, edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
jne 0x41c339
call fcn.0041bb40
push 1
mov ebx, esi
call fcn.0041bba0
lea eax, [esp + 0x2c]
add esp, 4
push eax
call fcn.0041c100
add esp, 4
test eax, eax
mov dword [esp + 0x20], eax
je 0x41c9a2
add edi, 0xfffffffc
mov dword [esp + 0x14], edi
jmp 0x41c374
mov eax, dword [esp + 0x20]
cmp byte [eax], 0x25
jne 0x41c908
mov edi, 0x5103a4
mov esi, eax
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41c40b
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 4]
add eax, 4
test ebx, ebx
mov dword [esp + 0x14], eax
jne 0x41c3a6
mov ebx, 0x5118be
mov eax, ebx
lea edx, [eax + 1]
jmp 0x41c3b0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41c3b0
sub eax, edx
lea edi, [eax + 1]
push edi
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x41c9b4
push edi
push ebx
push esi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov eax, esi
call fcn.0041bc90
add esp, 4
push 1
push ebx
push esi
call fcn.0041bcf0
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
jmp 0x41c96c
mov edi, 0x51351c
mov esi, eax
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41c5b2
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 4]
add eax, 4
test esi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
je 0x41c565
lea eax, [esp + 0x24]
push eax
push 0x46000087
push edx
push 0x10
push esi
mov edx, str.SCRIPT_ARGV
lea ecx, [esp + 0x44]
call fcn.0042c910
add esp, 0x14
test eax, eax
mov dword [esp + 0x2c], eax
je 0x41c4f7
xor edi, edi
test eax, eax
mov dword [esp + 0x1c], edi
jle 0x41c542
mov ebx, dword [esp + edi*4 + 0x30]
test ebx, ebx
je 0x41c4b4
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41c481
sub eax, edx
lea edi, [eax + 1]
push edi
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x41c9b4
push edi
push ebx
push esi
call sub.MSVCR80.dll_memcpy
mov edi, dword [esp + 0x28]
add esp, 0xc
jmp 0x41c4b6
xor esi, esi
mov eax, dword [esp + 0x10]
push esi
call fcn.0041bc90
add edi, 1
add esp, 4
cmp edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], edi
jl 0x41c474
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push 0
push esi
push edx
call fcn.0041bcf0
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
jmp 0x41c96c
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41c500
sub eax, edx
lea edi, [eax + 1]
push edi
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x41c9b4
mov ecx, dword [esp + 0x18]
push edi
push ecx
push esi
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
push esi
call fcn.0041bc90
mov esi, dword [esp + 0x1c]
add esp, 4
mov edx, dword [esp + 0x10]
push 0
push esi
push edx
call fcn.0041bcf0
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
jmp 0x41c96c
push 1
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
je 0x41c9b4
mov cl, byte [0x5118be]
mov esi, dword [esp + 0x10]
mov byte [eax], cl
push eax
mov eax, esi
call fcn.0041bc90
add esp, 4
push 0
push str.echo
push esi
call fcn.0041bcf0
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
jmp 0x41c96c
mov edi, 0x51608c
mov esi, eax
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41c5fb
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [eax]
push eax
push 0x51608c
mov esi, 0x40
lea edi, [esp + 0x38]
call fcn.00403080
mov eax, edi
add esp, 8
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41c5f0
jmp 0x41c649
mov edi, 0x516090
mov esi, eax
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41c6a3
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [eax]
push eax
push 0x516090
mov esi, 0x40
lea edi, [esp + 0x38]
call fcn.00403080
mov eax, edi
add esp, 8
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41c640
sub eax, edx
lea edi, [eax + 1]
push edi
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x41c9b4
push edi
lea ecx, [esp + 0x34]
push ecx
push esi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov eax, esi
call fcn.0041bc90
add esp, 4
push 0
lea edx, [esp + 0x34]
push edx
push esi
call fcn.0041bcf0
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
jmp 0x41c96c
mov edi, 0x516454
mov esi, eax
mov ecx, 6
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41c7c6
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 4]
add eax, 4
test ebx, ebx
mov dword [esp + 0x1c], ebx
jne 0x41c6d4
mov ebx, 0x5118be
mov dword [esp + 0x1c], ebx
add eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [eax]
push eax
push 0x51608c
mov esi, 0x40
lea edi, [esp + 0x38]
call fcn.00403080
mov eax, ebx
add esp, 8
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41c700
sub eax, edx
mov edx, eax
lea eax, [esp + 0x30]
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41c714
sub eax, esi
lea ecx, [eax + edx + 2]
push ecx
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41c9b4
mov eax, dword [esp + 0x1c]
mov edx, ebx
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x41c740
mov edi, ebx
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x41c751
mov dx, word [0x51645c]
lea eax, [esp + 0x30]
mov word [edi], dx
mov esi, eax
jmp 0x41c770
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41c770
mov edi, ebx
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x41c780
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 esi, dword [esp + 0x10]
push ebx
mov eax, esi
call fcn.0041bc90
add esp, 4
push 0
push ebx
push esi
call fcn.0041bcf0
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
jmp 0x41c96c
mov esi, eax
mov edi, str._s_sc
mov ecx, 6
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x41c8d1
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 4]
add eax, 4
mov esi, dword [eax + 4]
add eax, 4
test edi, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
jne 0x41c7fd
mov edi, 0x5118be
test esi, esi
jne 0x41c80d
mov dword [esp + 0x18], 0x5118be
mov esi, dword [esp + 0x18]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41c812
sub eax, edx
mov edx, eax
mov eax, esi
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41c824
sub eax, esi
lea ecx, [eax + edx + 1]
push ecx
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41c9b4
mov edx, ebx
mov eax, edi
sub edx, edi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x41c850
mov eax, dword [esp + 0x18]
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41c862
mov edi, ebx
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x41c872
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.0041bc90
add esp, 4
mov eax, ebx
call fcn.0041be10
mov esi, eax
test esi, esi
je 0x41c8f8
mov edx, dword [esp + 0x10]
push 0
push esi
push edx
call fcn.0041bcf0
add esp, 0xc
push esi
call dword [sym.imp.MSVCR80.dll_free]
mov eax, dword [esp + 0x24]
add esp, 4
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
jmp 0x41c96c
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x41c8f8
push 0x84e
push str..misc.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
jmp 0x41c96c
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
lea edi, [eax + 2]
cmp edi, eax
ja 0x41c93d
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x41c93d
push 0x71e
push str..misc.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
call fcn.0041baf0
mov ebx, dword [esp + 0x10]
push eax
call fcn.0041bba0
mov eax, dword [esp + 0x24]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
add esp, 4
push 0
push eax
mov dword [ecx + edx*4], eax
add dword [ebx + 4], 1
push ebx
call fcn.0041bcf0
add esp, 0xc
lea edx, [esp + 0x28]
push edx
call fcn.0041c100
add esp, 4
test eax, eax
mov dword [esp + 0x20], eax
jne 0x41c370
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41c9a2
lea ecx, [ecx]
mov esi, dword [eax]
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
test esi, esi
mov eax, esi
jne 0x41c990
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004dcaae
mov esp, ebp
pop ebp
ret
jmp fcn.00408a80