Function at 0x471030
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5aca90
push 0x4f5b00
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5c1d10]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
cmp word [eax], 0x5a4d
je 0x47109b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xfffffffb
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [eax + 0x3c]
add edi, eax
mov dword [ebp - 0x34], edi
cmp dword [edi], 0x4550
jne 0x47107b
movzx eax, word [edi + 0x14]
lea edx, [eax + edi + 0x18]
mov dword [ebp - 0x3c], edx
movzx eax, word [edi + 6]
cmp dword [ebp + 0xc], eax
jle 0x4710db
mov eax, 0xfffffffe
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, edx
xor esi, esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
movzx ecx, word [edi + 6]
cmp esi, ecx
jge 0x471107
mov ecx, dword [eax + 0x14]
mov ebx, dword [eax + 0x10]
add ecx, ebx
cmp ecx, dword [ebp - 0x2c]
jbe 0x4710fd
mov dword [ebp - 0x2c], ecx
add eax, 0x28
add esi, 1
xor ebx, ebx
jmp 0x4710df
mov esi, edx
xor eax, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0xffffffff
cmp eax, ecx
jge 0x471123
add esi, 0x28
add eax, 1
jmp 0x47110b
add eax, 1
mov dword [ebp + 0xc], eax
movzx ecx, word [edi + 6]
cmp eax, ecx
jne 0x471140
mov dword [ebp - 0x38], 1
mov ebx, dword [ebp - 0x30]
jmp 0x4711cc
mov ecx, dword [esi + 0x10]
mov eax, ecx
xor edx, edx
div dword [edi + 0x3c]
test edx, edx
je 0x47115b
mov edi, dword [edi + 0x3c]
mov eax, ecx
xor edx, edx
div edi
sub edi, edx
add ecx, edi
mov edx, dword [ebp + 0x10]
mov ebx, edx
sub ebx, ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], esi
lea edi, [esi + 0x28]
mov dword [ebp - 0x24], edi
mov eax, dword [edi + 0x14]
sub edx, eax
push edx
mov ecx, dword [ebp + 8]
add eax, ecx
push eax
mov edx, dword [esi + 0x14]
add edx, ecx
push edx
call fcn.004f40b0
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx + 6]
cmp eax, edx
jge 0x4711c6
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi]
mov dword [esi], edx
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
add esi, 0x28
mov dword [ebp - 0x20], esi
add edi, 0x28
mov dword [ebp - 0x24], edi
add eax, 1
jmp 0x47118b
mov edi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x3c]
add word [edi + 6], 0xffff
mov esi, edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edx
lea ecx, [edx + 0x28]
xor eax, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
movzx edx, word [edi + 6]
sub edx, 1
cmp eax, edx
jge 0x471207
mov edx, dword [ecx + 0xc]
sub edx, dword [esi + 0xc]
mov dword [esi + 8], edx
add esi, 0x28
mov dword [ebp - 0x20], esi
add ecx, 0x28
add eax, 1
jmp 0x4711df
cmp dword [ebp - 0x38], 0
je 0x471273
mov esi, dword [ebp - 0x3c]
xor ecx, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ecx
movzx eax, word [edi + 6]
cmp ecx, eax
jge 0x471238
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
add eax, edx
cmp eax, dword [ebp - 0x28]
jbe 0x471230
mov dword [ebp - 0x28], eax
add esi, 0x28
add ecx, 1
jmp 0x471212
sub esi, 0x28
mov dword [ebp - 0x20], esi
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x2c]
cmp ebx, eax
jbe 0x47126d
mov ecx, ebx
sub ecx, eax
push ecx
mov ecx, dword [ebp + 8]
add eax, ecx
push eax
mov edx, dword [ebp - 0x28]
add edx, ecx
push edx
call fcn.004f40b0
add esp, 0xc
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
add eax, ebx
mov ebx, eax
jmp 0x471270
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x30], ebx
mov eax, dword [esi + 8]
test eax, eax
je 0x47129f
mov ecx, dword [esi + 0xc]
add ecx, eax
mov dword [edi + 0x50], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esi + 0x10]
add edx, dword [esi + 0xc]
mov dword [edi + 0x50], edx
mov dword [ebp - 4], 0xfffffffe
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc