Function at 0x4e8370
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
sub esp, 0x6c
push ebx
mov ebx, dword [esp + 0x78]
push ebp
mov ebp, dword [esp + 0x84]
push eax
push ecx
mov ecx, dword [esp + 0x98]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x98]
push eax
push ecx
push edx
push ebx
push ebp
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x4e83bd
pop ebp
mov eax, 1
pop ebx
add esp, 0x6c
ret
mov ecx, dword [ebx + 8]
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x98], esi
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
imul esi, ecx
push edi
mov edi, dword [esp + 0x44]
sub edi, edx
mov edx, dword [esp + 0x48]
sub edx, eax
imul eax, dword [esp + 0x9c]
mov dword [esp + 0xa0], esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0xa0]
lea ecx, [ecx + esi*4]
add ecx, dword [ebx + 4]
mov ebx, dword [esp + 0x3c]
lea eax, [eax + ebx*4]
mov ebx, dword [ebp + 4]
add eax, ebx
mov bl, byte [esp + 0x28]
test bl, bl
je 0x4e8591
mov ebp, edi
mov ebx, edi
sar ebp, 3
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x34]
and ebx, 7
sub esi, ebp
mov ebp, dword [esp + 0xa4]
add esi, ebx
mov dword [esp + 0x98], ebx
lea esi, [ebp + esi*4]
mov dword [esp + 0x94], esi
mov esi, ebx
sub esi, edi
mov edi, dword [esp + 0x9c]
test edx, edx
lea esi, [edi + esi*4]
mov dword [esp + 0x9c], esi
jle 0x4e86a2
mov edi, dword [esp + 0xa0]
mov dword [esp + 0xa4], edx
test edi, edi
jle 0x4e8530
mov esi, edi
mov edx, dword [eax]
add eax, 0x20
mov ebp, edx
xor ebp, dword [ecx]
add ecx, 0x20
and ebp, 0xffffff
xor ebp, edx
mov dword [eax - 0x20], ebp
mov edx, dword [eax - 0x1c]
mov ebp, dword [ecx - 0x1c]
xor ebp, edx
and ebp, 0xffffff
xor ebp, edx
mov dword [eax - 0x1c], ebp
mov edx, dword [eax - 0x18]
mov ebp, dword [ecx - 0x18]
xor ebp, edx
and ebp, 0xffffff
xor ebp, edx
mov dword [eax - 0x18], ebp
mov edx, dword [eax - 0x14]
mov ebp, dword [ecx - 0x14]
xor ebp, edx
and ebp, 0xffffff
xor ebp, edx
mov dword [eax - 0x14], ebp
mov edx, dword [eax - 0x10]
mov ebp, dword [ecx - 0x10]
xor ebp, edx
and ebp, 0xffffff
xor ebp, edx
mov dword [eax - 0x10], ebp
mov edx, dword [eax - 0xc]
mov ebp, dword [ecx - 0xc]
xor ebp, edx
and ebp, 0xffffff
xor ebp, edx
mov dword [eax - 0xc], ebp
mov edx, dword [eax - 8]
mov ebp, dword [ecx - 8]
xor ebp, edx
and ebp, 0xffffff
xor ebp, edx
mov dword [eax - 8], ebp
mov edx, dword [eax - 4]
mov ebp, dword [ecx - 4]
xor ebp, edx
and ebp, 0xffffff
xor ebp, edx
dec esi
mov dword [eax - 4], ebp
jne 0x4e848d
test ebx, ebx
jle 0x4e8560
mov edi, ecx
mov edx, eax
sub edi, eax
mov esi, dword [edx]
mov ebp, dword [edi + edx]
xor ebp, esi
add edx, 4
and ebp, 0xffffff
xor ebp, esi
dec ebx
mov dword [edx - 4], ebp
jne 0x4e853a
mov edi, dword [esp + 0xa0]
mov ebx, dword [esp + 0x98]
mov ebp, dword [esp + 0x9c]
mov esi, dword [esp + 0x94]
mov edx, dword [esp + 0xa4]
add eax, ebp
add ecx, esi
dec edx
mov dword [esp + 0xa4], edx
jne 0x4e8483
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret
mov esi, dword [esp + 0x68]
mov ebx, dword [esp + 0x5c]
shl esi, 2
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0xa4]
imul esi, dword [esp + 0x78]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x84], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0x6c]
test edx, edx
mov dword [esp + 0x20], esi
mov dword [esp + 0xa0], ebx
jle 0x4e86a2
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x84]
add edx, ebx
mov dword [esp + 0xa0], edx
js 0x4e8626
mov ebp, dword [esp + 0xa4]
mov ebx, dword [esp + 0x8c]
add ecx, ebp
sub edx, ebx
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
test edi, edi
jle 0x4e867d
mov esi, eax
mov ebx, edi
jmp 0x4e863f
mov edx, dword [esp + 0x98]
add edx, dword [esp + 0x14]
mov dword [esp + 0x98], edx
js 0x4e865c
mov ebp, dword [esp + 0x18]
add ecx, 4
sub edx, ebp
mov dword [esp + 0x98], edx
mov edx, dword [esi]
add esi, 4
mov ebp, edx
xor ebp, dword [ecx]
and ebp, 0xffffff
xor ebp, edx
mov edx, dword [esp + 0x1c]
mov dword [esi - 4], ebp
add ecx, edx
dec ebx
jne 0x4e8638
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x9c]
add eax, ebx
lea ecx, [edx + esi]
mov edx, dword [esp + 0x94]
dec edx
mov dword [esp + 0x94], edx
jne 0x4e85f4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret