Function at 0x407393
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 1
jle 0x407805
push 0x4c9900
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.004b47b0
add esp, 8
test eax, eax
jne 0x4073ca
mov dword [0x4cc03c], 0
jmp 0x4077ee
push 0x4c990c
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
call fcn.004b47b0
add esp, 8
test eax, eax
jne 0x407412
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 8]
sub edx, 1
mov dword [ebp + 8], edx
push 0x4e2eec
push 0x4c9920
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.004b4dfd
add esp, 0xc
jmp 0x4077ee
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
movsx ecx, byte [eax]
cmp ecx, 0x2d
jne 0x4077ee
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
sub eax, 0x32
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x48
ja case.0x407457.13
mov edx, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [edx + 0x407955]
jmp dword [ecx*4 + 0x40791d]
mov dword [0x4d8c70], 0
jmp 0x4077ee
jmp 0x4077ee
mov dword [0x4d8c70], 1
jmp 0x4077ee
cmp dword [ebp + 8], 2
jle 0x4074c2
push 1
push 2
mov eax, dword [0x4e7604]
push eax
call fcn.0042f2f0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
push edx
push 3
mov eax, dword [0x4e7604]
push eax
call fcn.0042f2f0
add esp, 0xc
mov ecx, dword [ebp + 8]
sub ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 4
mov dword [ebp + 0xc], edx
jmp 0x4077ee
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [0x4d8c78], ecx
mov edx, dword [ebp + 8]
sub edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
jmp 0x4077ee
call fcn.004079f7
jmp 0x4077ee
push str.local
mov ecx, dword [ebp - 4]
push ecx
call fcn.004b47b0
add esp, 8
test eax, eax
jne 0x407518
mov dword [0x4e2ef0], 1
jmp 0x4075f2
cmp dword [ebp + 8], 2
jle 0x4075f2
mov dword [ebp - 8], 0x4c992c
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
movsx ecx, byte [eax]
cmp ecx, 0x2b
jne 0x40754f
mov dword [ebp - 8], 0x4c9930
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
add eax, 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
jmp 0x407565
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [0x4e7604]
push ecx
call fcn.0042ef88
add esp, 8
call fcn.004b5799
mov dword [eax], 0
push 0x4d7fa0
push 0x4c9934
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [0x4e7604]
push ecx
call fcn.0042e6aa
add esp, 0x10
test eax, eax
jne 0x4075d5
push 0x4d7fa0
call fcn.004b8a4d
add esp, 4
push eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
push str.Cannot_open___s__as_log_file___d__n
push 0x4d7fc0
call fcn.004b558a
add esp, 0x10
push str.freopen
call fcn.004b54ff
add esp, 4
call fcn.004b5799
mov ecx, dword [eax]
push ecx
call fcn.004b4c8d
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [0x4d8c84], eax
mov ecx, dword [ebp + 8]
sub ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 4
mov dword [ebp + 0xc], edx
jmp 0x4077ee
mov dword [0x4c83b0], 0
jmp 0x4077ee
cmp dword [ebp + 8], 2
jle 0x407635
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
push ecx
call fcn.004b4a56
add esp, 4
imul eax, eax, 0x3c
mov dword [0x4e2ee0], eax
mov edx, dword [ebp + 8]
sub edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
jmp 0x4077ee
cmp dword [ebp + 8], 2
jle 0x407670
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
push edx
call fcn.004b4a56
add esp, 4
mov ecx, dword [0x4e7604]
mov edx, dword [ecx + 0xd0]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp + 8]
sub eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp + 0xc], ecx
jmp 0x4077ee
push 0
call fcn.0042d202
add esp, 4
push eax
push str.lmgrd__s___Copyright__c__1988_2005_Macrovision_Europe_Ltd._and_or_Macrovision_Corporation._All_Rights_Reserved._n
push 0x4d7fa0
call fcn.004b558a
add esp, 0xc
push 0
call fcn.004b4c8d
cmp dword [ebp + 8], 2
jle 0x407736
push str.lmdown
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
call fcn.004b47b0
add esp, 8
test eax, eax
jne 0x4076e0
mov dword [0x4c8ba8], 0
push 0
push 1
call fcn.0040f302
add esp, 8
push str.lmdown_requests_disabled_n
call fcn.0040f492
add esp, 4
jmp 0x407722
push 0x4c99fc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
push edx
call fcn.004b47b0
add esp, 8
test eax, eax
jne 0x407704
mov dword [0x4c8bac], 0
jmp 0x407722
push 0
push 1
call fcn.0040f302
add esp, 8
push 0x4c9a08
call fcn.0040f492
add esp, 4
call fcn.004079f7
mov eax, dword [ebp + 8]
sub eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp + 0xc], ecx
jmp 0x407754
push 0
push 1
call fcn.0040f302
add esp, 8
push str._x_option_missing_arg_lmdown_or_lmremove
call fcn.0040f492
add esp, 4
call fcn.004079f7
jmp 0x4077ee
mov dword [0x4d8c8c], 1
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 1]
cmp eax, 0x32
jne 0x407779
mov dword [0x4d8c8c], 2
call sub.KERNEL32.dll_GetCurrentProcessId
and eax, 0xffff0000
test eax, eax
je 0x4077a8
push 0
push 1
call fcn.0040f302
add esp, 8
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str.pid__X_n
call fcn.0040f492
add esp, 8
jmp 0x4077c7
push 0
push 1
call fcn.0040f302
add esp, 8
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str.pid__d_n
call fcn.0040f492
add esp, 8
jmp 0x4077ee
push 0
push 1
call fcn.0040f302
add esp, 8
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
push edx
push str.Unrecognized_command_line_switch___c__n
call fcn.0040f492
add esp, 8
call fcn.004079f7
mov eax, dword [ebp + 8]
sub eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp + 0xc], ecx
jmp 0x407399
cmp dword [0x4d8c70], 0
je 0x407919
cmp dword [0x4c83b0], 0
jne 0x407919
push 0
push 1
call fcn.0040f302
add esp, 8
push 0x4c9a98
call fcn.0040f492
add esp, 4
push 0
push 1
call fcn.0040f302
add esp, 8
push str.WARNING:__p_ineffective_with_the_V1_n
call fcn.0040f492
add esp, 4
push 0
push 1
call fcn.0040f302
add esp, 8
push str.vendor_daemon_startup_protocol._n
call fcn.0040f492
add esp, 4
push 0
push 1
call fcn.0040f302
add esp, 8
push str.The_license_server_manager__lmgrd__will_still_require__n
call fcn.0040f492
add esp, 4
push 0
push 1
call fcn.0040f302
add esp, 8
push str.a_license_administrator_for_the_use_of__lmdown__and__lmreread__n
call fcn.0040f492
add esp, 4
push 0
push 1
call fcn.0040f302
add esp, 8
push str.but_the_vendor_daemons_will_not_enforce_n
call fcn.0040f492
add esp, 4
push 0
push 1
call fcn.0040f302
add esp, 8
push str.this_restriction_for__lmremove__n
call fcn.0040f492
add esp, 4
push 0
push 1
call fcn.0040f302
add esp, 8
push str.If_you_do_not_have_any_pre_V2_vendor_daemons_n
call fcn.0040f492
add esp, 4
push 0
push 1
call fcn.0040f302
add esp, 8
push str.use_the___2__switch_in_addition_to___p__n
call fcn.0040f492
add esp, 4
push 0
push 1
call fcn.0040f302
add esp, 8
push 0x4c9c0c
call fcn.0040f492
add esp, 4
mov esp, ebp
pop ebp
ret