Function at 0x5023a0
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, 0xb8
push esi
mov esi, dword [esp + 0xc4]
push edi
mov edi, dword [esp + 0xd0]
push eax
push ecx
mov ecx, dword [esp + 0xe4]
lea eax, [esp + 0x74]
push edx
mov edx, dword [esp + 0xe4]
push eax
push ecx
push edx
push esi
push edi
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x5023f6
pop edi
mov eax, 1
pop esi
add esp, 0xb8
ret
mov edi, dword [edi + 8]
mov eax, dword [esp + 0x84]
mov esi, dword [esi + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x88]
sub ebp, eax
imul eax, dword [esp + 0x18]
imul edi, esi
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x78]
sub ecx, edx
lea edx, [edx + edx*2]
lea ebx, [esi + esi*2]
add eax, edx
mov edx, dword [esp + 0xd8]
add edi, ebx
mov ebx, dword [esp + 0xd0]
mov dword [esp + 0x54], ecx
add edi, dword [ebx + 4]
mov ebx, dword [edx + 4]
add eax, ebx
mov edx, eax
mov al, byte [esp + 0x74]
test al, al
mov dword [esp + 0x1c], edx
je 0x5028a4
mov eax, ecx
mov ebx, ecx
sar eax, 3
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x80]
and ebx, 7
sub esi, eax
mov eax, dword [esp + 0x20]
add esi, ebx
mov dword [esp + 0x24], ebx
lea eax, [eax + esi*2]
add esi, eax
mov eax, ebx
sub eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x6c], esi
lea ecx, [ecx + eax*2]
add eax, ecx
test ebp, ebp
mov dword [esp + 0x68], eax
jle 0x502a4a
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x64]
test eax, eax
jle 0x5027e7
mov esi, dword [esp + 0xdc]
lea ebx, [edx + 6]
shl esi, 8
lea ebp, [edi + 6]
mov dword [esp + 0x18], eax
mov edx, edi
mov ax, word [edx]
mov word [esp + 0x10], ax
mov cl, byte [edx + 2]
mov byte [esp + 0x12], cl
mov edx, dword [esp + 0x12]
mov ecx, dword [esp + 0x11]
and edx, 0xff
and ecx, 0xff
mov al, byte [edx + esi + 0xa2ee04]
mov dl, byte [ecx + esi + 0xa2ee04]
push eax
mov eax, dword [esp + 0x14]
push edx
and eax, 0xff
mov cl, byte [eax + esi + 0xa2ee04]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d9c90
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
call fcn.004f86a0
lea eax, [ebp - 3]
mov cx, word [ebp - 3]
mov word [esp + 0x2c], cx
mov dl, byte [eax + 2]
mov byte [esp + 0x2e], dl
mov eax, dword [esp + 0x2e]
mov edx, dword [esp + 0x2d]
and eax, 0xff
and edx, 0xff
mov cl, byte [eax + esi + 0xa2ee04]
mov al, byte [edx + esi + 0xa2ee04]
push ecx
mov ecx, dword [esp + 0x30]
push eax
and ecx, 0xff
mov dl, byte [ecx + esi + 0xa2ee04]
lea ecx, [esp + 0x34]
push edx
call fcn.004d9c90
lea eax, [esp + 0x2c]
lea ecx, [ebx - 3]
push eax
call fcn.004f86a0
mov ecx, ebp
mov dx, word [ecx]
mov word [esp + 0x54], dx
mov al, byte [ecx + 2]
mov byte [esp + 0x56], al
mov ecx, dword [esp + 0x56]
mov eax, dword [esp + 0x55]
and ecx, 0xff
and eax, 0xff
mov dl, byte [ecx + esi + 0xa2ee04]
mov cl, byte [eax + esi + 0xa2ee04]
push edx
mov edx, dword [esp + 0x58]
push ecx
and edx, 0xff
lea ecx, [esp + 0x5c]
mov al, byte [edx + esi + 0xa2ee04]
push eax
call fcn.004d9c90
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebx
call fcn.004f86a0
lea edx, [ebp + 3]
mov ax, word [ebp + 3]
mov word [esp + 0x5c], ax
mov cl, byte [edx + 2]
mov byte [esp + 0x5e], cl
mov edx, dword [esp + 0x5e]
mov ecx, dword [esp + 0x5d]
and edx, 0xff
and ecx, 0xff
mov al, byte [edx + esi + 0xa2ee04]
mov dl, byte [ecx + esi + 0xa2ee04]
push eax
mov eax, dword [esp + 0x60]
push edx
and eax, 0xff
mov cl, byte [eax + esi + 0xa2ee04]
push ecx
lea ecx, [esp + 0x68]
call fcn.004d9c90
lea edx, [esp + 0x5c]
lea ecx, [ebx + 3]
push edx
call fcn.004f86a0
lea eax, [ebp + 6]
mov cx, word [ebp + 6]
mov word [esp + 0x4c], cx
mov dl, byte [eax + 2]
mov byte [esp + 0x4e], dl
mov eax, dword [esp + 0x4e]
mov edx, dword [esp + 0x4d]
and eax, 0xff
and edx, 0xff
mov cl, byte [eax + esi + 0xa2ee04]
mov al, byte [edx + esi + 0xa2ee04]
push ecx
mov ecx, dword [esp + 0x50]
push eax
and ecx, 0xff
mov dl, byte [ecx + esi + 0xa2ee04]
lea ecx, [esp + 0x54]
push edx
call fcn.004d9c90
lea eax, [esp + 0x4c]
lea ecx, [ebx + 6]
push eax
call fcn.004f86a0
lea ecx, [ebp + 9]
mov dx, word [ebp + 9]
mov word [esp + 0x3c], dx
mov al, byte [ecx + 2]
mov byte [esp + 0x3e], al
mov ecx, dword [esp + 0x3e]
mov eax, dword [esp + 0x3d]
and ecx, 0xff
and eax, 0xff
mov dl, byte [ecx + esi + 0xa2ee04]
mov cl, byte [eax + esi + 0xa2ee04]
push edx
mov edx, dword [esp + 0x40]
push ecx
and edx, 0xff
lea ecx, [esp + 0x44]
mov al, byte [edx + esi + 0xa2ee04]
push eax
call fcn.004d9c90
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [ebx + 9]
call fcn.004f86a0
lea edx, [ebp + 0xc]
mov ax, word [ebp + 0xc]
mov word [esp + 0x34], ax
mov cl, byte [edx + 2]
mov byte [esp + 0x36], cl
mov edx, dword [esp + 0x36]
mov ecx, dword [esp + 0x35]
and edx, 0xff
and ecx, 0xff
mov al, byte [edx + esi + 0xa2ee04]
mov dl, byte [ecx + esi + 0xa2ee04]
push eax
mov eax, dword [esp + 0x38]
push edx
and eax, 0xff
mov cl, byte [eax + esi + 0xa2ee04]
push ecx
lea ecx, [esp + 0x40]
call fcn.004d9c90
lea edx, [esp + 0x34]
lea ecx, [ebx + 0xc]
push edx
call fcn.004f86a0
lea eax, [ebp + 0xf]
mov cx, word [eax]
mov word [esp + 0x44], cx
mov dl, byte [eax + 2]
mov byte [esp + 0x46], dl
mov eax, dword [esp + 0x46]
mov edx, dword [esp + 0x45]
and eax, 0xff
and edx, 0xff
mov cl, byte [eax + esi + 0xa2ee04]
mov al, byte [edx + esi + 0xa2ee04]
push ecx
mov ecx, dword [esp + 0x48]
push eax
and ecx, 0xff
mov dl, byte [ecx + esi + 0xa2ee04]
lea ecx, [esp + 0x4c]
push edx
call fcn.004d9c90
lea eax, [esp + 0x44]
lea ecx, [ebx + 0xf]
push eax
call fcn.004f86a0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add ecx, 0x18
add ebx, 0x18
add edi, 0x18
add ebp, 0x18
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
jne 0x5024d3
mov ebx, dword [esp + 0x24]
mov edx, ecx
test ebx, ebx
jle 0x502878
mov ebp, edi
mov esi, edx
sub ebp, edx
mov dword [esp + 0x18], ebx
lea ecx, [esi + ebp]
mov dx, word [esi + ebp]
mov word [esp + 0x20], dx
mov al, byte [ecx + 2]
mov ecx, dword [esp + 0xdc]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x26], al
call fcn.004f8650
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
and eax, 0xffffff
and edx, 0xffffff
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 ecx, esi
push eax
call fcn.004f6bb0
mov eax, dword [esp + 0x18]
add esi, 3
dec eax
mov dword [esp + 0x18], eax
jne 0x5027f9
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
add edx, esi
add edi, ecx
dec eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
jne 0x5024b3
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0xb8
ret
mov eax, dword [esp + 0xb4]
mov esi, dword [esp + 0xa8]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0xac]
lea eax, [eax + eax*2]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0xbc]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x6c], esi
imul eax, dword [esp + 0xc4]
mov esi, dword [esp + 0xb0]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0xc0]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0xb8]
test ebp, ebp
mov dword [esp + 0x28], esi
jle 0x502a4a
mov dword [esp + 0x64], ebp
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x6c]
add esi, ebx
mov dword [esp + 0x28], esi
js 0x502930
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x70]
add edi, ebp
sub esi, ebx
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x2c], edi
test ecx, ecx
mov dword [esp + 0x24], esi
jle 0x502a2a
mov esi, dword [esp + 0xdc]
mov ebx, edx
shl esi, 8
mov dword [esp + 0x68], ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
add eax, ecx
mov dword [esp + 0x24], eax
js 0x502971
mov ecx, dword [esp + 0x3c]
add edi, 3
sub eax, ecx
mov dword [esp + 0x24], eax
mov ecx, edi
mov dx, word [ecx]
mov word [esp + 0x10], dx
mov al, byte [ecx + 2]
mov byte [esp + 0x12], al
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x11]
and ecx, 0xff
and eax, 0xff
mov dl, byte [ecx + esi + 0xa2ee04]
mov cl, byte [eax + esi + 0xa2ee04]
mov byte [esp + 0x10], dl
mov edx, dword [esp + 0x12]
mov byte [esp + 0x11], cl
and edx, 0xff
mov al, byte [edx + esi + 0xa2ee04]
mov edx, dword [ebx]
mov byte [esp + 0x12], al
mov eax, dword [esp + 0x10]
and eax, 0xffffff
and edx, 0xffffff
mov ebp, eax
mov ecx, eax
xor ebp, edx
and ecx, edx
and ebp, 0xfefefe
lea ecx, [ebp + ecx*2]
shr ecx, 8
and ecx, 0x10101
add ecx, 0x7f7f7f
xor ecx, 0x7f7f7f
sub eax, ecx
add eax, edx
or eax, ecx
mov ecx, ebx
push eax
call fcn.004f6bb0
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x68]
add edi, edx
add ebx, 3
dec eax
mov dword [esp + 0x68], eax
jne 0x502954
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
add edx, ebx
lea edi, [esi + eax]
mov esi, dword [esp + 0x64]
dec esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x64], esi
jne 0x502910
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0xb8
ret