Function at 0x4ad670
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x6717f8
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x68], edx
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x40], ecx
mov edi, dword [ebp + 0xc]
lea ebx, [esi + edi]
mov dword [ebp - 0x3c], ebx
cmp eax, ecx
je 0x4ad6db
mov dword [eax], ecx
cmp edx, ecx
je 0x4ad6e1
mov dword [edx], ecx
movzx edx, byte [esi]
push edx
call fcn.005e3ae6
add esp, 4
cmp eax, 0x4d
je 0x4ad708
movzx eax, byte [esi + 1]
push eax
call fcn.005e3ae6
add esp, 4
cmp eax, 0x5a
jne 0x4ad87b
mov edi, dword [esi + 0x3c]
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffffc
cmp edi, ecx
ja 0x4ad87b
cmp dword [edi + esi], 0x4550
jne 0x4ad87b
lea ecx, [edi + esi + 0x18]
xor edx, edx
mov dword [ebp - 0x5c], edx
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x48], eax
movzx eax, word [edi + esi + 0x14]
add eax, ecx
mov dword [ebp - 0x64], eax
cmp eax, ebx
ja 0x4ad87b
mov dword [ebp - 0x54], edx
jmp 0x4ad760
movzx ecx, word [edi + esi + 6]
cmp dword [ebp - 0x54], ecx
jge 0x4ad7f8
cmp eax, dword [ebp - 0x3c]
ja 0x4ad87b
test edx, edx
je 0x4ad786
mov ecx, dword [eax + 0x14]
test ecx, ecx
jbe 0x4ad78c
cmp ecx, edx
jae 0x4ad78c
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x5c], edx
mov ecx, dword [eax + 0x24]
test cl, 0x20
jne 0x4ad79c
test ecx, 0x20000000
je 0x4ad7bb
cmp dword [ebp - 0x48], 0
jne 0x4ad7bb
mov dword [ebp - 0x48], eax
cmp dword [eax + 0x10], 0x6600
jne 0x4ad7bb
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x4ad7bb
mov dword [ecx], 1
mov ecx, dword [eax + 0xc]
cmp dword [ebp - 0x44], ecx
jb 0x4ad7d6
mov ebx, dword [eax + 8]
add ebx, ecx
cmp dword [ebp - 0x44], ebx
jae 0x4ad7d6
cmp dword [ebp - 0x4c], 0
jne 0x4ad7d6
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x40], ecx
add ecx, edx
cmp dword [ebp - 0x38], ecx
jb 0x4ad87b
inc dword [ebp - 0x54]
add eax, 0x28
mov dword [ebp - 0x64], eax
jmp 0x4ad760
mov esi, dword [ebp - 0x40]
add esi, edx
mov dword [ebp - 0x40], esi
je 0x4ad87b
mov ebx, dword [ebp - 0x38]
cmp ebx, esi
jb 0x4ad87b
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x4ad826
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4ad81f
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x44], edx
jmp 0x4ad822
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4ad87b
mov dword [ebp - 0x50], 0
mov eax, dword [eax + 0x10]
cmp eax, 0x400
jbe 0x4ad87b
push 1
push 0
push 0
mov edi, dword [ebp - 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x3c], eax
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebx
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x4ad889
push eax
push eax
mov eax, dword [ebp - 0x3c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x4adc4d
push ebx
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x4ad8d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.004dca10
push 0
push 0
mov edx, dword [ebp - 0x3c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x4adc4d
mov eax, dword [ebp - 0x44]
push eax
mov edi, dword [ebp - 0x38]
push edi
call fcn.004a8bf0
add esp, 8
add eax, edi
mov edi, ebx
sub edi, esi
cmp ebx, esi
jbe 0x4adb9d
mov ecx, dword [ebp - 0x38]
add esi, ecx
cmp edi, 0xf
jbe 0x4ad94b
cmp byte [esi + 0xc], 6
jne 0x4ad923
cmp byte [esi + 0xd], 9
jne 0x4ad923
cmp byte [esi + 0xe], 0x2a
jne 0x4ad923
cmp byte [esi + 0xf], 0x86
jne 0x4ad923
cmp byte [esi + 9], 0x82
jne 0x4ad923
cmp byte [esi + 8], 0x30
je 0x4adc04
cmp byte [esi + 0xd], 6
jne 0x4ad94b
cmp byte [esi + 0xe], 9
jne 0x4ad94b
cmp byte [esi + 0xf], 0x2a
jne 0x4ad94b
cmp byte [esi + 0x10], 0x86
jne 0x4ad94b
cmp byte [esi + 9], 0x83
jne 0x4ad94b
cmp byte [esi + 8], 0x30
je 0x4adc04
cmp edi, 4
jbe 0x4ad980
push 4
push str.NB10
push esi
call fcn.004dd670
add esp, 0xc
test eax, eax
je 0x4adc04
push 4
push 0x6402cc
push esi
call fcn.004dd670
add esp, 0xc
test eax, eax
je 0x4adc04
cmp edi, 8
jbe 0x4ad9ff
cmp byte [esi], 1
jne 0x4ad9b8
cmp byte [esi + 1], 0
jne 0x4ad9b8
cmp byte [esi + 2], 0
jne 0x4ad9b8
cmp byte [esi + 3], 0
jne 0x4ad9b8
cmp byte [esi + 4], 0x10
jne 0x4ad9b8
cmp byte [esi + 5], 1
jne 0x4ad9b8
cmp byte [esi + 6], 0
jne 0x4ad9b8
cmp byte [esi + 7], 0
je 0x4adc04
cmp edi, 8
jbe 0x4ad9ff
cmp byte [esi], 0xde
jne 0x4ad9ff
cmp byte [esi + 1], 0x20
jne 0x4ad9ff
cmp byte [esi + 2], 0x24
jne 0x4ad9ff
cmp byte [esi + 3], 0xb
jne 0x4ad9ff
mov cl, 0xff
cmp byte [esi + 4], cl
jne 0x4ad9ff
cmp byte [esi + 5], cl
jne 0x4ad9ff
cmp byte [esi + 6], cl
jne 0x4ad9ff
cmp byte [esi + 7], cl
jne 0x4ad9ff
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x34]
mov dword [eax], 1
jmp 0x4adb7d
cmp edi, 4
jbe 0x4ada2d
push 4
push 0x6402c4
push esi
call fcn.004dd670
add esp, 0xc
test eax, eax
jne 0x4ada2d
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x34]
mov dword [eax], 2
jmp 0x4adb7d
cmp edi, 2
jbe 0x4ada5b
push 2
push 0x63eddc
push esi
call fcn.004dd670
add esp, 0xc
test eax, eax
jne 0x4ada5b
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x34]
mov dword [eax], 4
jmp 0x4adb7d
cmp edi, 3
jbe 0x4ada89
push 3
push 0x6402c0
push esi
call fcn.004dd670
add esp, 0xc
test eax, eax
jne 0x4ada89
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x34]
mov dword [eax], 5
jmp 0x4adb7d
cmp edi, 0x25
jbe 0x4adaba
push 5
push str.slf
lea edx, [esi + 0x20]
push edx
call fcn.004dd670
add esp, 0xc
test eax, eax
jne 0x4adaba
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x34]
mov dword [eax], 6
jmp 0x4adb7d
cmp edi, 0x10
jbe 0x4adaeb
push 8
push str.Nullsoft
lea eax, [esi + 8]
push eax
call fcn.004dd670
add esp, 0xc
test eax, eax
jne 0x4adaeb
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x34]
mov dword [eax], 7
jmp 0x4adb7d
cmp ebx, 0xe004
jbe 0x4adb22
push 4
push str.MSCF
mov ecx, dword [ebp - 0x38]
add ecx, 0xe000
push ecx
call fcn.004dd670
add esp, 0xc
test eax, eax
jne 0x4adb22
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x34]
mov dword [eax], 8
jmp 0x4adb7d
push 7
push str.AU3_EA0
mov edx, dword [ebp - 0x38]
lea eax, [ebx + edx - 8]
push eax
call fcn.004dd670
add esp, 0xc
test eax, eax
jne 0x4adb4f
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x34]
mov dword [eax], 9
jmp 0x4adb7d
cmp edi, 0xe
jbe 0x4adb7a
push 0xd
push str.Smart_Install
push esi
call fcn.004dd670
add esp, 0xc
test eax, eax
jne 0x4adb7a
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x34]
mov dword [eax], 0xa
jmp 0x4adb7d
mov eax, dword [ebp - 0x34]
cmp edi, 0x400
jbe 0x4adc04
mov dword [ebp - 0x30], 1
cmp dword [eax], 0
jne 0x4adc04
mov dword [eax], 0xffffffff
jmp 0x4adc04
mov byte [ebp - 0x2c], 0xe8
mov byte [ebp - 0x2b], 0xc8
mov byte [ebp - 0x2a], 0xd0
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x27], 0xe9
mov byte [ebp - 0x26], 0x7f
mov byte [ebp - 0x25], 0xfe
mov cl, 0xff
mov byte [ebp - 0x24], cl
mov byte [ebp - 0x23], cl
mov cl, 0xcc
mov byte [ebp - 0x22], cl
mov byte [ebp - 0x21], cl
mov byte [ebp - 0x20], cl
mov edx, 0xd
lea ecx, [ebp - 0x2c]
cmp edx, 4
jb 0x4adbee
mov esi, dword [eax]
cmp esi, dword [ecx]
jne 0x4adc04
sub edx, 4
add ecx, 4
add eax, 4
jmp 0x4adbd8
mov cl, byte [ecx]
cmp cl, byte [eax]
jne 0x4adc04
mov dword [ebp - 0x30], 1
mov edx, dword [ebp - 0x34]
mov dword [edx], 0xb
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp - 0x50]
push ecx
call fcn.004dca10
push 0
push 0
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4adc43
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005dfbbe
mov esp, ebp
pop ebp
ret