Function at 0x503090
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 ebx
mov ebx, 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 ebx
push edi
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x5030e6
pop edi
mov eax, 1
pop ebx
add esp, 0xb8
ret
mov edx, dword [edi + 8]
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
push ebp
mov ebp, dword [ebx + 8]
push esi
mov esi, dword [esp + 0x88]
imul edi, ebp
sub eax, esi
mov esi, dword [esp + 0x94]
sub esi, ecx
mov dword [esp + 0x18], edx
imul ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x60], ebp
lea edi, [edi + edx*4]
add edi, dword [ebx + 4]
mov ebx, dword [esp + 0x88]
lea ecx, [ecx + ebx*4]
mov ebx, dword [esp + 0xd8]
add ecx, dword [ebx + 4]
xor ebx, ebx
cmp byte [esp + 0x74], bl
mov dword [esp + 0x1c], ecx
je 0x503506
mov ebp, eax
and ebp, 7
mov dword [esp + 0x20], ebp
mov ebp, eax
sar ebp, 3
mov dword [esp + 0x64], ebp
mov ebp, dword [esp + 0x80]
sub edx, ebp
mov ebp, dword [esp + 0x20]
add edx, ebp
mov ebp, dword [esp + 0x60]
lea edx, [ebp + edx*4]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x20]
sub edx, eax
mov eax, dword [esp + 0x18]
cmp esi, ebx
lea edx, [eax + edx*4]
mov dword [esp + 0x68], edx
jle 0x503690
mov dword [esp + 0x60], esi
mov eax, dword [esp + 0x64]
cmp eax, ebx
jle 0x503463
mov esi, dword [esp + 0xdc]
lea ebp, [ecx + 8]
shl esi, 8
mov dword [esp + 0x18], eax
mov eax, dword [edi]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x11]
and eax, 0xff
and edx, 0xff
mov al, byte [eax + esi + 0xa2ee04]
mov byte [esp + 0x10], al
mov al, byte [edx + esi + 0xa2ee04]
mov edx, dword [esp + 0x12]
mov byte [esp + 0x11], al
and edx, 0xff
mov byte [esp + 0x13], bl
mov al, byte [edx + esi + 0xa2ee04]
lea edx, [esp + 0x10]
push edx
mov byte [esp + 0x16], al
call fcn.004f8d00
mov eax, dword [edi + 4]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x25]
and eax, 0xff
and ecx, 0xff
mov al, byte [eax + esi + 0xa2ee04]
mov dl, byte [ecx + esi + 0xa2ee04]
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x26]
and eax, 0xff
mov byte [esp + 0x25], dl
lea edx, [esp + 0x24]
mov byte [esp + 0x27], bl
mov cl, byte [eax + esi + 0xa2ee04]
push edx
mov byte [esp + 0x2a], cl
lea ecx, [ebp - 4]
call fcn.004f8d00
mov eax, dword [edi + 8]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x3d]
and eax, 0xff
and ecx, 0xff
mov al, byte [eax + esi + 0xa2ee04]
mov dl, byte [ecx + esi + 0xa2ee04]
mov byte [esp + 0x3c], al
mov eax, dword [esp + 0x3e]
and eax, 0xff
mov byte [esp + 0x3d], dl
lea edx, [esp + 0x3c]
mov byte [esp + 0x3f], bl
mov cl, byte [eax + esi + 0xa2ee04]
push edx
mov byte [esp + 0x42], cl
mov ecx, ebp
call fcn.004f8d00
mov eax, dword [edi + 0xc]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x4d]
and eax, 0xff
and ecx, 0xff
mov al, byte [eax + esi + 0xa2ee04]
mov dl, byte [ecx + esi + 0xa2ee04]
mov byte [esp + 0x4c], al
mov eax, dword [esp + 0x4e]
and eax, 0xff
mov byte [esp + 0x4d], dl
lea edx, [esp + 0x4c]
mov byte [esp + 0x4f], bl
mov cl, byte [eax + esi + 0xa2ee04]
push edx
mov byte [esp + 0x52], cl
lea ecx, [ebp + 4]
call fcn.004f8d00
mov eax, dword [edi + 0x10]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x55]
and eax, 0xff
and ecx, 0xff
mov al, byte [eax + esi + 0xa2ee04]
mov dl, byte [ecx + esi + 0xa2ee04]
mov byte [esp + 0x54], al
mov eax, dword [esp + 0x56]
mov byte [esp + 0x55], dl
and eax, 0xff
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x5b], bl
mov cl, byte [eax + esi + 0xa2ee04]
mov byte [esp + 0x5a], cl
lea ecx, [ebp + 8]
call fcn.004f8d00
mov eax, dword [edi + 0x14]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x45]
and eax, 0xff
and ecx, 0xff
mov al, byte [eax + esi + 0xa2ee04]
mov dl, byte [ecx + esi + 0xa2ee04]
mov byte [esp + 0x44], al
mov eax, dword [esp + 0x46]
and eax, 0xff
mov byte [esp + 0x45], dl
lea edx, [esp + 0x44]
mov byte [esp + 0x47], bl
mov cl, byte [eax + esi + 0xa2ee04]
push edx
mov byte [esp + 0x4a], cl
lea ecx, [ebp + 0xc]
call fcn.004f8d00
mov eax, dword [edi + 0x18]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x35]
and eax, 0xff
and ecx, 0xff
mov al, byte [eax + esi + 0xa2ee04]
mov dl, byte [ecx + esi + 0xa2ee04]
mov byte [esp + 0x34], al
mov eax, dword [esp + 0x36]
and eax, 0xff
mov byte [esp + 0x35], dl
lea edx, [esp + 0x34]
mov byte [esp + 0x37], bl
mov cl, byte [eax + esi + 0xa2ee04]
push edx
mov byte [esp + 0x3a], cl
lea ecx, [ebp + 0x10]
call fcn.004f8d00
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2d]
and eax, 0xff
and ecx, 0xff
mov al, byte [eax + esi + 0xa2ee04]
mov dl, byte [ecx + esi + 0xa2ee04]
mov byte [esp + 0x2c], al
mov eax, dword [esp + 0x2e]
and eax, 0xff
mov byte [esp + 0x2d], dl
lea edx, [esp + 0x2c]
mov byte [esp + 0x2f], bl
mov cl, byte [eax + esi + 0xa2ee04]
push edx
mov byte [esp + 0x32], cl
lea ecx, [ebp + 0x14]
call fcn.004f8d00
mov eax, dword [esp + 0x1c]
add ebp, 0x20
add eax, 0x20
add edi, 0x20
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x18], eax
jne 0x5031bb
mov eax, dword [esp + 0x20]
cmp eax, ebx
jle 0x5034da
mov ebp, edi
mov esi, ecx
sub ebp, ecx
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0xdc]
mov eax, dword [esi + ebp]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.004f92c0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov edx, eax
add esi, 4
and edx, ecx
mov ecx, eax
xor ecx, dword [esp + 0x18]
and ecx, 0xfefefe
lea ecx, [ecx + edx*2]
mov edx, dword [esp + 0x18]
shr ecx, 8
and ecx, 0x10101
add ecx, 0x7f7f7f
xor ecx, 0x7f7f7f
sub eax, ecx
add eax, edx
or eax, ecx
mov dword [esi - 4], eax
mov eax, dword [esp + 0x5c]
dec eax
mov dword [esp + 0x5c], eax
jne 0x503475
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x60]
add ecx, esi
add edi, edx
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x60], eax
jne 0x50319e
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xb8
ret
mov edx, dword [esp + 0xb4]
shl edx, 2
mov dword [esp + 0x54], edx
mov edx, ebp
mov ebp, dword [esp + 0xa8]
imul edx, dword [esp + 0xc4]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0xac]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0xbc]
mov dword [esp + 0x6c], ebp
mov ebp, dword [esp + 0xb0]
mov dword [esp + 0x44], ebp
mov ebp, dword [esp + 0xc0]
mov dword [esp + 0x70], ebp
mov ebp, dword [esp + 0xb8]
cmp esi, ebx
mov dword [esp + 0x4c], edx
jle 0x503690
mov dword [esp + 0x64], esi
jmp 0x503572
mov ebp, dword [esp + 0x5c]
add ebp, dword [esp + 0x6c]
mov dword [esp + 0x5c], ebp
js 0x50358c
mov esi, dword [esp + 0x60]
add edi, esi
mov esi, dword [esp + 0x70]
sub ebp, esi
mov dword [esp + 0x5c], ebp
mov esi, dword [esp + 0x2c]
cmp eax, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
jle 0x503670
mov esi, dword [esp + 0xdc]
mov ebp, ecx
shl esi, 8
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
add eax, ecx
mov dword [esp + 0x20], eax
js 0x5035cd
mov ecx, dword [esp + 0x44]
add edi, 4
sub eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [edi]
add ebp, 4
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x11]
and eax, 0xff
and ecx, 0xff
mov al, byte [eax + esi + 0xa2ee04]
mov dl, byte [ecx + esi + 0xa2ee04]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x12]
and eax, 0xff
mov byte [esp + 0x11], dl
mov byte [esp + 0x13], bl
mov cl, byte [eax + esi + 0xa2ee04]
mov eax, dword [ebp - 4]
mov byte [esp + 0x12], cl
mov ecx, dword [esp + 0x10]
mov edx, eax
and edx, ecx
mov ecx, eax
xor ecx, dword [esp + 0x10]
and ecx, 0xfefefe
lea ecx, [ecx + edx*2]
mov edx, dword [esp + 0x10]
shr ecx, 8
and ecx, 0x10101
add ecx, 0x7f7f7f
xor ecx, 0x7f7f7f
sub eax, ecx
add eax, edx
mov edx, dword [esp + 0x54]
or eax, ecx
add edi, edx
mov dword [ebp - 4], eax
mov eax, dword [esp + 0x68]
dec eax
mov dword [esp + 0x68], eax
jne 0x5035b0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x18]
add ecx, ebp
lea edi, [esi + edx]
mov esi, dword [esp + 0x64]
dec esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x64], esi
jne 0x50356e
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xb8
ret