Function at 0x505d00
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 0x505d56
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 + 0x34], 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 0x506123
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 0x5062a7
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x50]
cmp eax, ebx
jle 0x506077
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.00510bf0
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.00510bf0
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 ecx, dword [edi + 8]
mov edx, dword [esp + 0x10]
mov eax, ecx
not eax
mov ebx, eax
xor eax, edx
and ebx, edx
and eax, 0xfefefe
lea eax, [eax + ebx*2]
shr eax, 8
and eax, 0x10101
add eax, 0x7f7f7f
xor eax, 0x7f7f7f
mov ebx, eax
or eax, edx
or ebx, ecx
lea ecx, [esp + 0x10]
sub ebx, eax
xor eax, eax
mov dword [edi + 8], ebx
mov al, byte [esi + 4]
mov edx, dword [esi + 1]
push eax
mov dword [esp + 0x14], edx
call fcn.004f8cc0
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x10]
mov eax, ecx
not eax
mov ebx, eax
xor eax, edx
and ebx, edx
and eax, 0xfefefe
lea eax, [eax + ebx*2]
shr eax, 8
and eax, 0x10101
add eax, 0x7f7f7f
xor eax, 0x7f7f7f
mov ebx, eax
or eax, edx
or ebx, ecx
sub ebx, eax
xor eax, eax
mov dword [edi + 0xc], ebx
mov ecx, dword [esi + 5]
mov ah, byte [esi + 8]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x1e]
and edx, 0xff
mov cl, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x1e], cl
mov edx, dword [esp + 0x1d]
and edx, 0xff
xor ebx, ebx
mov cl, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x1d], cl
mov edx, dword [esp + 0x1c]
and edx, 0xff
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [edi + 0x10]
mov al, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x23], bl
mov byte [esp + 0x20], al
call fcn.00510bf0
mov edx, dword [esi + 9]
xor eax, eax
mov ah, byte [esi + 0xc]
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x26]
and ecx, 0xff
mov dl, byte [ecx + eax + 0xa2ee04]
mov byte [esp + 0x26], dl
mov ecx, dword [esp + 0x25]
and ecx, 0xff
mov dl, byte [ecx + eax + 0xa2ee04]
mov byte [esp + 0x25], dl
mov ecx, dword [esp + 0x24]
and ecx, 0xff
mov byte [esp + 0x27], bl
mov dl, byte [ecx + eax + 0xa2ee04]
lea eax, [esp + 0x24]
push eax
lea ecx, [edi + 0x14]
mov byte [esp + 0x28], dl
call fcn.00510bf0
mov ecx, dword [esi + 0xd]
xor eax, eax
mov ah, byte [esi + 0x10]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x36]
and edx, 0xff
mov cl, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x36], cl
mov edx, dword [esp + 0x35]
and edx, 0xff
mov cl, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x35], cl
mov edx, dword [esp + 0x34]
and edx, 0xff
lea ecx, [esp + 0x34]
push ecx
lea ecx, [edi + 0x18]
mov al, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x3b], bl
mov byte [esp + 0x38], al
call fcn.00510bf0
mov edx, dword [esi + 0x11]
xor eax, eax
mov ah, byte [esi + 0x14]
mov dword [esp + 0x3c], edx
mov ecx, dword [esp + 0x3e]
and ecx, 0xff
mov dl, byte [ecx + eax + 0xa2ee04]
mov byte [esp + 0x3e], dl
mov ecx, dword [esp + 0x3d]
and ecx, 0xff
mov dl, byte [ecx + eax + 0xa2ee04]
mov byte [esp + 0x3d], dl
mov ecx, dword [esp + 0x3c]
and ecx, 0xff
mov byte [esp + 0x3f], bl
mov dl, byte [ecx + eax + 0xa2ee04]
lea eax, [esp + 0x3c]
push eax
lea ecx, [edi + 0x1c]
mov byte [esp + 0x40], dl
call fcn.00510bf0
mov eax, dword [esp + 0x14]
add edi, 0x20
add ebp, 0x20
add esi, 0x20
dec eax
mov dword [esp + 0x14], eax
jne 0x505e11
mov eax, dword [esp + 0x18]
cmp eax, ebx
jle 0x5060fb
mov ecx, edi
mov esi, ebp
sub ecx, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x54], ecx
jmp 0x506093
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.00510bf0
mov eax, dword [esp + 0x14]
add esi, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x50608f
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 0x505dfe
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 + 0x24], edx
jle 0x5062a7
mov dword [esp + 0x50], ecx
jmp 0x50618f
mov esi, dword [esp + 0x14]
add esi, dword [esp + 0x5c]
mov dword [esp + 0x14], esi
js 0x5061a9
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 0x50628b
mov esi, edi
mov dword [esp + 0x54], eax
jmp 0x5061c7
xor ebx, ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x64]
add eax, ecx
mov dword [esp + 0x18], eax
js 0x5061e4
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 ecx, dword [esi - 4]
mov eax, ecx
mov byte [esp + 0x48], dl
mov edx, dword [esp + 0x48]
not eax
mov ebx, eax
xor eax, edx
and ebx, edx
and eax, 0xfefefe
lea eax, [eax + ebx*2]
shr eax, 8
and eax, 0x10101
add eax, 0x7f7f7f
xor eax, 0x7f7f7f
mov ebx, eax
or eax, edx
mov edx, dword [esp + 0x3c]
or ebx, ecx
sub ebx, eax
mov eax, dword [esp + 0x54]
mov dword [esi - 4], ebx
add ebp, edx
dec eax
mov dword [esp + 0x54], eax
jne 0x5061c5
mov eax, dword [esp + 0x34]
mov edx, 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 0x50618b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xac
ret