Function at 0x4f8700
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, 0xac
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
mov ebp, dword [esp + 0xc4]
push eax
push ecx
mov ecx, dword [esp + 0xd8]
lea eax, [esp + 0x68]
push edx
mov edx, dword [esp + 0xd8]
push eax
push ecx
push edx
push ebx
push ebp
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x4f8756
pop ebp
mov eax, 1
pop ebx
add esp, 0xac
ret
mov eax, dword [esp + 0x7c]
mov edx, dword [ebp + 8]
mov ebp, dword [esp + 0x68]
push esi
mov esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x84]
sub eax, esi
mov esi, dword [ebx + 8]
imul ebp, esi
push edi
mov edi, dword [esp + 0x80]
sub ecx, edi
mov dword [esp + 0x10], edx
imul edi, dword [esp + 0x10]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], esi
lea ebp, [ebp + edx*4]
add ebp, dword [ebx + 4]
mov ebx, dword [esp + 0x7c]
lea edi, [edi + ebx*4]
mov ebx, dword [esp + 0xcc]
add edi, dword [ebx + 4]
xor ebx, ebx
cmp byte [esp + 0x68], bl
je 0x4f8b23
mov esi, eax
and esi, 7
mov dword [esp + 0x18], esi
mov esi, eax
sar esi, 3
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x74]
sub edx, esi
mov esi, dword [esp + 0x18]
add edx, esi
mov esi, dword [esp + 0x44]
lea edx, [esi + edx*4]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x18]
sub edx, eax
mov eax, dword [esp + 0x10]
cmp ecx, ebx
lea edx, [eax + edx*4]
mov dword [esp + 0x58], edx
jle 0x4f8ca7
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x50]
cmp eax, ebx
jle 0x4f8a77
lea esi, [ebp + 0xb]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
xor ecx, ecx
mov cl, byte [esi - 8]
mov dword [esp + 0x10], eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004f8cc0
lea edx, [esp + 0x10]
mov ecx, edi
push edx
call fcn.004f8d00
mov eax, dword [esi - 7]
xor ecx, ecx
mov cl, byte [esi - 4]
mov dword [esp + 0x10], eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004f8cc0
lea edx, [esp + 0x10]
lea ecx, [edi + 4]
push edx
call fcn.004f8d00
mov eax, dword [esi - 3]
xor ecx, ecx
mov cl, byte [esi]
mov dword [esp + 0x10], eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004f8cc0
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x10]
mov ebx, eax
mov ecx, eax
xor ebx, edx
and ecx, edx
and ebx, 0xfefefe
lea ecx, [ebx + ecx*2]
shr ecx, 8
and ecx, 0x10101
add ecx, 0x7f7f7f
xor ecx, 0x7f7f7f
sub eax, ecx
add eax, edx
or eax, ecx
lea ecx, [esp + 0x10]
mov dword [edi + 8], eax
mov edx, dword [esi + 1]
xor eax, eax
mov dword [esp + 0x10], edx
mov al, byte [esi + 4]
push eax
call fcn.004f8cc0
mov eax, dword [edi + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, eax
mov ecx, eax
xor ebx, edx
and ecx, edx
and ebx, 0xfefefe
lea ecx, [ebx + ecx*2]
shr ecx, 8
and ecx, 0x10101
add ecx, 0x7f7f7f
xor ecx, 0x7f7f7f
sub eax, ecx
add eax, edx
or eax, ecx
mov dword [edi + 0xc], eax
mov edx, dword [esi + 5]
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x1e]
xor eax, eax
and ecx, 0xff
mov ah, byte [esi + 8]
mov dl, byte [ecx + eax + 0xa2ee04]
mov byte [esp + 0x1e], dl
mov ecx, dword [esp + 0x1d]
and ecx, 0xff
mov dl, byte [ecx + eax + 0xa2ee04]
mov byte [esp + 0x1d], dl
mov ecx, dword [esp + 0x1c]
and ecx, 0xff
xor ebx, ebx
mov byte [esp + 0x1f], bl
mov dl, byte [ecx + eax + 0xa2ee04]
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x10]
mov byte [esp + 0x20], dl
call fcn.004f8d00
mov ecx, dword [esi + 9]
xor eax, eax
mov ah, byte [esi + 0xc]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x26]
and edx, 0xff
mov cl, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x26], cl
mov edx, dword [esp + 0x25]
and edx, 0xff
mov cl, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x25], cl
mov edx, dword [esp + 0x24]
and edx, 0xff
lea ecx, [esp + 0x24]
push ecx
lea ecx, [edi + 0x14]
mov al, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x2b], bl
mov byte [esp + 0x28], al
call fcn.004f8d00
mov edx, dword [esi + 0xd]
xor eax, eax
mov ah, byte [esi + 0x10]
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x36]
and ecx, 0xff
mov dl, byte [ecx + eax + 0xa2ee04]
mov byte [esp + 0x36], dl
mov ecx, dword [esp + 0x35]
and ecx, 0xff
mov dl, byte [ecx + eax + 0xa2ee04]
mov byte [esp + 0x35], dl
mov ecx, dword [esp + 0x34]
and ecx, 0xff
mov byte [esp + 0x37], bl
mov dl, byte [ecx + eax + 0xa2ee04]
lea eax, [esp + 0x34]
push eax
lea ecx, [edi + 0x18]
mov byte [esp + 0x38], dl
call fcn.004f8d00
mov ecx, dword [esi + 0x11]
xor eax, eax
mov ah, byte [esi + 0x14]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x3e]
and edx, 0xff
mov cl, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x3e], cl
mov edx, dword [esp + 0x3d]
and edx, 0xff
mov cl, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x3d], cl
mov edx, dword [esp + 0x3c]
and edx, 0xff
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [edi + 0x1c]
mov al, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x43], bl
mov byte [esp + 0x40], al
call fcn.004f8d00
mov eax, dword [esp + 0x14]
add edi, 0x20
add ebp, 0x20
add esi, 0x20
dec eax
mov dword [esp + 0x14], eax
jne 0x4f8811
mov eax, dword [esp + 0x18]
cmp eax, ebx
jle 0x4f8afb
mov ecx, edi
mov esi, ebp
sub ecx, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x54], ecx
jmp 0x4f8a93
mov ecx, dword [esp + 0x54]
mov edx, dword [esi]
xor eax, eax
mov ah, byte [esi + 3]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x2e]
add ecx, esi
and edx, 0xff
mov dl, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x2e], dl
mov edx, dword [esp + 0x2d]
and edx, 0xff
mov dl, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x2d], dl
mov edx, dword [esp + 0x2c]
and edx, 0xff
mov byte [esp + 0x2f], bl
mov al, byte [edx + eax + 0xa2ee04]
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x30], al
call fcn.004f8d00
mov eax, dword [esp + 0x14]
add esi, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x4f8a8f
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x44]
add edi, edx
add ebp, ecx
dec eax
mov dword [esp + 0x44], eax
jne 0x4f87fe
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xac
ret
mov edx, dword [esp + 0xa8]
shl edx, 2
mov dword [esp + 0x3c], edx
mov edx, esi
mov esi, dword [esp + 0x9c]
imul edx, dword [esp + 0xb8]
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0xa0]
mov dword [esp + 0x64], esi
mov esi, dword [esp + 0xb0]
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0xb4]
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0xac]
cmp ecx, ebx
mov dword [esp + 0x34], edx
jle 0x4f8ca7
mov dword [esp + 0x50], ecx
jmp 0x4f8b8f
mov esi, dword [esp + 0x14]
add esi, dword [esp + 0x5c]
mov dword [esp + 0x14], esi
js 0x4f8ba9
mov ecx, dword [esp + 0x44]
add ebp, ecx
mov ecx, dword [esp + 0x58]
sub esi, ecx
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x60]
cmp eax, ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ecx
jle 0x4f8c8b
mov esi, edi
mov dword [esp + 0x54], eax
jmp 0x4f8bc7
xor ebx, ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x64]
add eax, ecx
mov dword [esp + 0x18], eax
js 0x4f8be4
mov ecx, dword [esp + 0x2c]
add ebp, 4
sub eax, ecx
mov dword [esp + 0x18], eax
mov edx, dword [ebp]
xor eax, eax
mov ah, byte [ebp + 3]
mov dword [esp + 0x48], edx
mov ecx, dword [esp + 0x4a]
add esi, 4
and ecx, 0xff
mov dl, byte [ecx + eax + 0xa2ee04]
mov byte [esp + 0x4a], dl
mov ecx, dword [esp + 0x49]
and ecx, 0xff
mov dl, byte [ecx + eax + 0xa2ee04]
mov byte [esp + 0x49], dl
mov ecx, dword [esp + 0x48]
and ecx, 0xff
mov byte [esp + 0x4b], bl
mov dl, byte [ecx + eax + 0xa2ee04]
mov eax, dword [esi - 4]
mov byte [esp + 0x48], dl
mov edx, dword [esp + 0x48]
mov ebx, eax
mov ecx, eax
xor ebx, edx
and ecx, edx
and ebx, 0xfefefe
lea ecx, [ebx + ecx*2]
shr ecx, 8
and ecx, 0x10101
add ecx, 0x7f7f7f
xor ecx, 0x7f7f7f
sub eax, ecx
add eax, edx
mov edx, dword [esp + 0x3c]
or eax, ecx
add ebp, edx
mov dword [esi - 4], eax
mov eax, dword [esp + 0x54]
dec eax
mov dword [esp + 0x54], eax
jne 0x4f8bc5
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
add edi, esi
lea ebp, [ecx + edx]
mov ecx, dword [esp + 0x50]
dec ecx
mov dword [esp + 0x50], ecx
jne 0x4f8b8b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xac
ret