Function at 0x40d370
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x14]
push eax
push 0
call fcn.00410b72
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40d403
push str.Initialization_error__exiting._n
push 0x4d2be0
call fcn.004aefac
add esp, 8
push 0x4d2be0
call fcn.004af5bb
add esp, 4
push 0
call fcn.004afc62
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
push 0x5c
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ecx
call fcn.004af7a0
add esp, 8
mov dword [0x4dc6f4], eax
cmp dword [0x4dc6f4], 0
je 0x40d43e
mov edx, dword [0x4dc6f4]
add edx, 1
mov dword [0x4dc6f4], edx
jmp 0x40d449
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov dword [0x4dc6f4], ecx
push 0x2e
mov edx, dword [0x4dc6f4]
push edx
call fcn.004af7a0
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x40d469
mov eax, dword [ebp - 0x5c]
mov byte [eax], 0
push 0x36
mov ecx, dword [0x4dc6f4]
push ecx
call fcn.004af7a0
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x40d489
mov edx, dword [ebp - 0x5c]
mov byte [edx], 0
mov eax, dword [0x4dc6f4]
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0x1c], 0
jmp 0x40d4a6
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x4dc6f4]
add edx, dword [ebp - 0x1c]
movsx eax, byte [edx]
test eax, eax
je 0x40d4d8
mov ecx, dword [0x4dc6f4]
add ecx, dword [ebp - 0x1c]
movsx edx, byte [ecx]
push edx
call fcn.004af01f
add esp, 4
mov ecx, dword [0x4dc6f4]
add ecx, dword [ebp - 0x1c]
mov byte [ecx], al
jmp 0x40d49d
mov dword [0x4dc70c], 0x4d2bc0
push 0x4d4ddc
push 0x4c6b70
push 0x4c6e80
push 0
call fcn.00449936
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40d52a
mov edx, dword [0x4d4ddc]
push edx
call fcn.0041a960
add esp, 4
push eax
push str.lmutil:_cant_initialize:__s_n
call fcn.0043f190
add esp, 8
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004afc62
mov ecx, dword [0x4d4ddc]
mov edx, dword [ecx + 0x134]
or dh, 0x80
mov eax, dword [0x4d4ddc]
mov dword [eax + 0x134], edx
mov ecx, dword [0x4d4ddc]
mov edx, dword [ecx + 0x198]
add edx, 0xd34
push 0
push edx
call fcn.004af724
add esp, 8
test eax, eax
je 0x40d588
push str.Out_of_memory__exiting_n
push 0x4d2bc0
call fcn.004aefac
add esp, 8
mov eax, dword [0x4d4ddc]
mov ecx, dword [eax + 0x80]
push ecx
call fcn.004afc62
call fcn.0044af10
push 6
push 0x4c6ec0
mov edx, dword [0x4dc6f4]
push edx
call fcn.004af7d0
add esp, 0xc
test eax, eax
jne 0x40d849
cmp dword [ebp + 8], 1
jle 0x40d849
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x18]
add ecx, 4
mov dword [ebp - 0x18], ecx
push 0x4c6ec8
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
push eax
call fcn.004aee90
add esp, 8
test eax, eax
jne 0x40d610
mov ecx, dword [0x4d4ddc]
add ecx, 0x14
push ecx
mov edx, dword [0x4dc6f4]
push edx
mov eax, dword [str.Copyright__c__1989_2005_Macrovision_Europe_Ltd._and_or_Macrovision_Corporation._All_Rights_Reserved._n]
push eax
push str._s_s__s_n
mov ecx, dword [0x4dc70c]
push ecx
call fcn.004aefac
add esp, 0x14
push 0
call fcn.004afc62
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [0x4dc6f4], eax
push 0x36
mov ecx, dword [0x4dc6f4]
push ecx
call fcn.004af7a0
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x40d63a
mov edx, dword [ebp - 0x5c]
mov byte [edx], 0
push 0x4c6ed8
mov eax, dword [0x4dc6f4]
push eax
call fcn.004aee90
add esp, 8
test eax, eax
jne 0x40d660
mov dword [0x4dc6f4], 0x4c6ee0
jmp 0x40d849
push str.cksum
mov ecx, dword [0x4dc6f4]
push ecx
call fcn.004aee90
add esp, 8
test eax, eax
jne 0x40d687
mov dword [0x4dc6f4], 0x4c6ef4
jmp 0x40d849
push str.diag
mov edx, dword [0x4dc6f4]
push edx
call fcn.004aee90
add esp, 8
test eax, eax
jne 0x40d6ae
mov dword [0x4dc6f4], 0x4c6f04
jmp 0x40d849
push str.down
mov eax, dword [0x4dc6f4]
push eax
call fcn.004aee90
add esp, 8
test eax, eax
jne 0x40d6d4
mov dword [0x4dc6f4], 0x4c6f14
jmp 0x40d849
push str.hostid
mov ecx, dword [0x4dc6f4]
push ecx
call fcn.004aee90
add esp, 8
test eax, eax
jne 0x40d6fb
mov dword [0x4dc6f4], 0x4c6f24
jmp 0x40d849
push str.path
mov edx, dword [0x4dc6f4]
push edx
call fcn.004aee90
add esp, 8
test eax, eax
jne 0x40d722
mov dword [0x4dc6f4], 0x4c6f38
jmp 0x40d849
push str.reread
mov eax, dword [0x4dc6f4]
push eax
call fcn.004aee90
add esp, 8
test eax, eax
jne 0x40d748
mov dword [0x4dc6f4], 0x4c6f48
jmp 0x40d849
push str.stat
mov ecx, dword [0x4dc6f4]
push ecx
call fcn.004aee90
add esp, 8
test eax, eax
jne 0x40d76f
mov dword [0x4dc6f4], 0x4c6f5c
jmp 0x40d849
push str.switchr
mov edx, dword [0x4dc6f4]
push edx
call fcn.004aee90
add esp, 8
test eax, eax
jne 0x40d796
mov dword [0x4dc6f4], 0x4c6f6c
jmp 0x40d849
push str.switch
mov eax, dword [0x4dc6f4]
push eax
call fcn.004aee90
add esp, 8
test eax, eax
jne 0x40d7bc
mov dword [0x4dc6f4], 0x4c6f80
jmp 0x40d849
push str.newlog
mov ecx, dword [0x4dc6f4]
push ecx
call fcn.004aee90
add esp, 8
test eax, eax
jne 0x40d7e0
mov dword [0x4dc6f4], 0x4c6f94
jmp 0x40d849
push str.install
mov edx, dword [0x4dc6f4]
push edx
call fcn.004aee90
add esp, 8
test eax, eax
jne 0x40d804
mov dword [0x4dc6f4], 0x4c6fa8
jmp 0x40d849
push 0x4c6fb4
mov eax, dword [0x4dc6f4]
push eax
call fcn.004aee90
add esp, 8
test eax, eax
jne 0x40d827
mov dword [0x4dc6f4], 0x4c6fb8
jmp 0x40d849
push 0x4c6fc0
mov ecx, dword [0x4dc6f4]
push ecx
call fcn.004aee90
add esp, 8
test eax, eax
jne 0x40d849
mov dword [0x4dc6f4], 0x4c6fc4
mov edx, dword [0x4d4ddc]
push edx
call fcn.0043cd4b
add esp, 4
mov eax, dword [0x4d4ddc]
push eax
call fcn.00412133
add esp, 4
mov ecx, dword [0x4dc6f4]
push ecx
call fcn.0040eb58
add esp, 4
mov dword [ebp - 0xf8], eax
mov edx, dword [ebp - 0xf8]
push edx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0040ddec
add esp, 0x14
mov dword [0x4d4df0], eax
cmp dword [0x4d4df0], 0
je 0x40d8ad
jmp 0x40dd5b
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 8], ecx
lea edx, [ebp - 0x58]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x470], eax
cmp dword [ebp - 0x470], 2
je 0x40d8d9
cmp dword [ebp - 0x470], 5
je 0x40d8d9
jmp 0x40d8f6
mov ecx, dword [0x4d4ddc]
mov edx, dword [ecx + 0x134]
or edx, 0x2000000
mov eax, dword [0x4d4ddc]
mov dword [eax + 0x134], edx
cmp dword [ebp - 0xf8], 3
jne 0x40d908
cmp dword [0x4c6dec], 0
je 0x40d932
cmp dword [ebp - 0xf8], 0xd
je 0x40d932
mov ecx, dword [str.Copyright__c__1989_2005_Macrovision_Europe_Ltd._and_or_Macrovision_Corporation._All_Rights_Reserved._n]
push ecx
mov edx, dword [ebp - 0xf4]
push edx
push 0x4c6fcc
mov eax, dword [0x4dc70c]
push eax
call fcn.004aefac
add esp, 0x10
mov ecx, dword [0x4d4ddc]
mov edx, dword [ecx + 0xd0]
cmp dword [edx + 4], 0
jne case.0x40da89.1
push 0x4c6fd4
mov eax, dword [0x4d4ddc]
push eax
call fcn.00431804
add esp, 8
test eax, eax
jne case.0x40da89.1
cmp dword [ebp - 0xf8], 0xb
je case.0x40da89.1
mov byte [ebp - 0x404], 0
mov ecx, 0x80
xor eax, eax
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x1fc], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x1fb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x200], 1
mov ecx, dword [0x4d4ddc]
movsx edx, byte [ecx + 0xff]
test edx, edx
je 0x40da4e
mov eax, dword [0x4d4ddc]
add eax, 0xff
push eax
push 0x4c6fe4
lea ecx, [ebp - 0x468]
push ecx
call fcn.004af408
add esp, 0xc
push 0x104
lea edx, [ebp - 0x1fc]
push edx
lea eax, [ebp - 0x468]
push eax
mov ecx, dword [0x4d4ddc]
push ecx
call fcn.00431364
add esp, 0x10
test eax, eax
je 0x40da0f
mov dword [ebp - 0x200], 0
jmp 0x40da4e
lea edx, [ebp - 0x468]
push edx
call fcn.0044ae90
add esp, 4
push 0x104
lea eax, [ebp - 0x1fc]
push eax
lea ecx, [ebp - 0x468]
push ecx
mov edx, dword [0x4d4ddc]
push edx
call fcn.00431364
add esp, 0x10
test eax, eax
je 0x40da4e
mov dword [ebp - 0x200], 0
cmp dword [ebp - 0x200], 0
je case.0x40da89.1
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x474], eax
mov ecx, dword [ebp - 0x474]
sub ecx, 2
mov dword [ebp - 0x474], ecx
cmp dword [ebp - 0x474], 0xa
ja case.0x40da89.1
mov eax, dword [ebp - 0x474]
xor edx, edx
mov dl, byte [eax + 0x40dda9]
jmp dword [edx*4 + 0x40dda1]
push 0x3b
push 0x4c6ff4
push str._s_c.
lea ecx, [ebp - 0x404]
push ecx
call fcn.004af408
add esp, 0x10
lea edx, [ebp - 0x404]
push edx
push 0x38
mov eax, dword [0x4d4ddc]
push eax
call fcn.0041dd70
add esp, 0xc
mov ecx, dword [0x4d4ddc]
mov edx, dword [ecx + 0xd0]
mov word [edx + 2], 0
cmp dword [0x4d4dd4], 0
je 0x40db08
mov eax, dword [0x4d4ddc]
add eax, 0x14
push eax
mov ecx, dword [0x4dc6f4]
push ecx
push 0x4c7014
mov edx, dword [0x4dc70c]
push edx
call fcn.004aefac
add esp, 0x10
push 0
call fcn.004afc62
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x478], eax
mov ecx, dword [ebp - 0x478]
sub ecx, 1
mov dword [ebp - 0x478], ecx
cmp dword [ebp - 0x478], 0xd
ja case.default.0x40db36
mov edx, dword [ebp - 0x478]
jmp dword [edx*4 + 0x40ddb4]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040b2d2
add esp, 8
push eax
call fcn.004afc62
mov dword [ebp - 0x46c], 0x4d4df4
cmp dword [ebp - 0xc], 1
jle 0x40db6e
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x46c], edx
jmp 0x40db98
cmp dword [ebp - 0xc], 2
jle 0x40db98
mov eax, dword [ebp - 0x50]
push eax
push 0x4c701c
mov ecx, dword [0x4dc70c]
push ecx
call fcn.004aefac
add esp, 0xc
call fcn.0040e382
push 1
call fcn.004afc62
mov edx, dword [ebp - 0x46c]
push edx
call section..text
add esp, 4
mov dword [0x4d4df0], eax
jmp 0x40dd5b
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004018e0
add esp, 8
mov dword [0x4d4df0], eax
jmp 0x40dd5b
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004075c0
add esp, 8
mov dword [0x4d4df0], eax
jmp 0x40dd5b
mov dword [0x4d4de4], 1
cmp dword [0x4d4dd0], 0
jne 0x40dc02
mov dword [0x4d4de8], 1
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040ef88
add esp, 8
call fcn.0040a880
mov dword [0x4d4df0], eax
jmp 0x40dd5b
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405b90
add esp, 8
mov dword [0x4d4df0], eax
jmp 0x40dd5b
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040cb20
add esp, 8
mov dword [0x4d4df0], eax
jmp 0x40dd5b
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040ab20
add esp, 8
mov dword [0x4d4df0], eax
jmp 0x40dd5b
mov eax, dword [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040af30
add esp, 0xc
jmp 0x40dd5b
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040f010
add esp, 8
jmp 0x40dd5b
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040ef88
add esp, 8
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040acc0
add esp, 8
jmp 0x40dd5b
cmp dword [ebp + 8], 2
jge 0x40dcea
push str.No_binary_specified__exiting_n
mov eax, dword [0x4dc70c]
push eax
call fcn.004aefac
add esp, 8
call fcn.0040e382
push 1
call fcn.004afc62
cmp dword [ebp + 8], 2
jle 0x40dd16
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
push edx
push str.Unknown_arguments__s_..._n
mov eax, dword [0x4dc70c]
push eax
call fcn.004aefac
add esp, 0xc
call fcn.0040e382
push 1
call fcn.004afc62
cmp dword [ebp + 8], 2
jne 0x40dd40
push 0x4c7074
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
call fcn.004aee90
add esp, 8
test eax, eax
jne 0x40dd40
call fcn.0040e382
push 1
call fcn.004afc62
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.0040a310
add esp, 4
mov dword [0x4d4df0], eax
jmp 0x40dd5b
call fcn.0040e382
cmp dword [ebp - 0x10], 0
je 0x40dd7e
cmp dword [ebp - 0x14], 0
je 0x40dd7e
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00410f6b
add esp, 8
mov dword [ebp - 0x10], 0
mov ecx, dword [0x4d4ddc]
push ecx
call fcn.00412372
add esp, 4
mov dword [0x4d4ddc], 0
mov eax, dword [0x4d4df0]
pop edi
mov esp, ebp
pop ebp
ret
add dword [ecx + 0x4d8b0845], ecx
or al, 0x83
rol dword [ecx + ecx*4], 0x4d
or al, 0xe9
invalid