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

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x8c]
push edi
mov edi, dword [esp + 0x94]
mov eax, dword [esi + 0x9c4c]
xor ecx, ecx
mov ebx, edi
push 0x4c
mov eax, dword [eax + 0x14]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], ecx
and ebx, 0x7fffffff
push ecx
lea ecx, [esp + 0x48]
push ebx
push ecx
push eax
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ebx
call fcn.004f59c0
add esp, 0x14
test eax, eax
je 0x5063b5
mov ebp, 0x72a8d4
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [ebp]
jne 0x505aec
test cl, cl
je 0x505ae8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [ebp + 1]
jne 0x505aec
add eax, 2
add ebp, 2
test cl, cl
jne 0x505ac7
xor eax, eax
jmp 0x505af1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x505b2c
mov ebp, 0x72a8d0
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [ebp]
jne 0x505b23
test cl, cl
je 0x505b1f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [ebp + 1]
jne 0x505b23
add eax, 2
add ebp, 2
test cl, cl
jne 0x505afe
xor eax, eax
jmp 0x505b28
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x505b36
mov dword [esi + 0x11de4], 1
lea eax, [esp + 0x40]
push 0x48
push eax
call fcn.005018a0
mov ecx, dword [esp + 0x90]
add esp, 8
cmp eax, ecx
jne 0x5063b5
mov ecx, dword [esp + 0x64]
test ch, 0x20
je 0x505b67
mov dword [esi + 0x11db8], 1
test ch, 0x80
je 0x505b76
mov dword [esi + 0x11e30], 1
mov eax, dword [esp + 0x54]
mov dword [esi + 0x9d20], 0x800
cmp eax, 0x150
mov dword [esi + 0x9cf0], eax
jne 0x505bac
mov eax, dword [esp + 0x98]
mov dword [esi + 0x9d20], 0x200
test eax, eax
je 0x5063b5
jmp 0x505bb3
cmp eax, 0x100
jbe 0x505bbc
and ecx, 0xfff
shl ecx, 0xe
mov eax, ecx
mov dword [esp + 0x14], ecx
cdq
idiv dword [esi + 0x9d20]
mov dword [esi + 0x9d0c], ecx
lea ecx, [esp + 0x40]
push edi
push ecx
push esi
mov dword [esi + 0x9d10], eax
call fcn.005027a0
add esp, 0xc
test eax, eax
je 0x5063b5
lea edx, [esp + 0x40]
push edi
push edx
push esi
call fcn.00503be0
add esp, 0xc
test eax, eax
je 0x5063b5
lea eax, [esp + 0x40]
push edi
push eax
push esi
call fcn.00504f80
add esp, 0xc
test eax, eax
je 0x5063b5
lea ecx, [esp + 0x40]
push edi
push ecx
push esi
call fcn.00503fe0
add esp, 0xc
test eax, eax
je 0x5063b5
mov ebp, 0x72a8cc
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [ebp]
jne 0x505c5f
test cl, cl
je 0x505c5b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [ebp + 1]
jne 0x505c5f
add eax, 2
add ebp, 2
test cl, cl
jne 0x505c3a
xor eax, eax
jmp 0x505c64
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x505cda
mov ebp, 0x72a8d4
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [ebp]
jne 0x505c96
test cl, cl
je 0x505c92
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [ebp + 1]
jne 0x505c96
add eax, 2
add ebp, 2
test cl, cl
jne 0x505c71
xor eax, eax
jmp 0x505c9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x505cda
mov ebp, 0x72a8d0
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [ebp]
jne 0x505ccd
test cl, cl
je 0x505cc9
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [ebp + 1]
jne 0x505ccd
add eax, 2
add ebp, 2
test cl, cl
jne 0x505ca8
xor eax, eax
jmp 0x505cd2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x5063b5
mov eax, dword [esp + 0x50]
cmp eax, 0x4c
jb 0x5063b5
cmp dword [esp + 0x5c], 1
jne 0x5063b5
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
add ebx, eax
lea eax, [esp + 0x38]
push eax
xor edi, edi
push ecx
push edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edi
call fcn.004efbb0
mov ecx, dword [esp + 0x7c]
lea eax, [esi + 0x9c40]
push eax
mov eax, dword [esp + 0x84]
push eax
push ecx
call fcn.004efbb0
mov eax, dword [esi + 0x9d20]
mov ebx, dword [esp + 0x54]
add esp, 0x18
cdq
push edx
mov edx, dword [esp + 0x3c]
push eax
push ebx
push edx
call fcn.0053f650
mov dword [esi + 0x9d18], eax
mov eax, dword [esp + 0x54]
cmp eax, 0x100
mov dword [esi + 0x9d1c], edx
jne 0x505d70
cmp dword [esp + 0x14], 0x10000
jne 0x5063b5
jmp 0x505df2
cmp eax, 0x110
je 0x505d91
cmp eax, 0x150
je 0x505d91
mov dword [esi + 0x11d7c], 1
mov dword [esp + 0x28], edi
jmp 0x5063b5
mov eax, dword [esp + 0x78]
and eax, 0xff
mov dword [esi + 0x9cfc], eax
mov eax, dword [esp + 0x7d]
and eax, 0xff
mov ecx, eax
and ecx, 7
shr eax, 3
mov dword [esi + 0x11d88], ecx
mov dword [esi + 0x11d84], eax
je 0x505dc8
add eax, 0xa
mov dword [esi + 0x11d84], eax
cmp dword [esi + 0x11d84], edi
jne 0x505df2
mov edx, dword [esp + 0x14]
mov dword [esi + 0x11d84], edi
lea eax, [edx - 1]
cmp eax, edi
je 0x505df2
mov edx, dword [esi + 0x11d84]
inc edx
shr eax, 1
mov dword [esi + 0x11d84], edx
jne 0x505de1
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
mov ecx, eax
xor edi, edi
add ecx, edx
mov edx, edi
adc edx, ebx
sub ecx, 1
sbb edx, edi
push edi
push eax
push edx
push ecx
mov dword [esi + 0x11d7c], edi
call fcn.0053f650
mov ecx, dword [esp + 0x38]
mov ebp, eax
mov eax, dword [esp + 0x14]
push edi
push eax
push ebx
push ecx
mov dword [esi + 0x9d04], ebp
call fcn.0053f740
mov ecx, eax
or ecx, edx
je 0x505e3f
mov dword [esi + 0x9d08], eax
jmp 0x505e49
mov edx, dword [esp + 0x14]
mov dword [esi + 0x9d08], edx
cmp dword [esi + 0x9cf0], 0x100
jne 0x505ea2
lea ebp, [ebp + ebp*2]
push ebp
mov dword [esi + 0x9d28], ebp
call fcn.004f56e0
add esp, 4
mov dword [esi + 0x9d24], eax
test eax, eax
je 0x5063b5
mov ecx, dword [esi + 0x9d28]
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
call fcn.004f59c0
add esp, 0x14
test eax, eax
je 0x5063b5
jmp 0x506328
mov eax, dword [esi + 0x11d88]
mov ebx, dword [esi + 0x11d84]
add eax, ebx
mov ecx, dword [esp + 0x64]
imul eax, ebp
add eax, 7
shr eax, 3
test ch, 0x40
mov dword [esi + 0x9d28], eax
je 0x505ecd
add eax, 0x10000
push eax
call fcn.004f56e0
add esp, 4
mov dword [esi + 0x9d24], eax
test eax, eax
je 0x5063b5
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x64]
test eax, 0x80000000
mov ebp, 1
je 0x505f3a
test ch, 0x40
mov dword [esi + 0x11d98], ebp
je 0x505f21
mov ebx, dword [esi + 0x9c40]
mov edi, dword [esp + 0x79]
xor eax, eax
sub ebx, edi
mov edi, dword [esi + 0x9c44]
mov dword [esi + 0x11d9c], ebp
sbb edi, eax
jmp 0x505f42
mov eax, dword [esi + 0x9d28]
mov ebx, dword [esi + 0x9c40]
mov edi, dword [esi + 0x9c44]
cdq
sub ebx, eax
sbb edi, edx
jmp 0x505f42
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
test dword [esp + 0x58], 0x10000000
je 0x505f52
mov dword [esi + 0x11d8c], ebp
test ecx, 0x20000
je 0x505f60
mov dword [esi + 0x11d94], ebp
test ecx, 0x8000000
je 0x505f6e
mov dword [esi + 0x11da0], ebp
test ecx, 0x80000
je 0x505f7c
mov dword [esi + 0x11d80], ebp
test ecx, 0x100000
je 0x505fa2
mov eax, dword [esp + 0x7e]
lea edx, [esi + 0x11da8]
mov dword [esi + 0x11db4], ebp
mov dword [edx], eax
mov ax, word [esp + 0x82]
mov word [edx + 4], ax
mov edx, dword [esi + 0x11de4]
mov eax, ecx
shr eax, 0x17
and eax, 3
test edx, edx
mov dword [esi + 0x11dbc], eax
je 0x505fc2
xor eax, ebp
mov dword [esi + 0x11dbc], eax
test ch, 0x40
je 0x506080
mov ecx, dword [esp + 0x79]
push ecx
call fcn.004f56f0
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x2c], ebp
je 0x5063b5
mov edx, dword [esp + 0x79]
mov eax, dword [esp + 0x1c]
push edx
push edi
push ebx
push ebp
push eax
call fcn.004f59c0
add esp, 0x14
test eax, eax
je 0x5063b5
mov eax, dword [esi + 0x11de4]
test eax, eax
je 0x50603b
mov eax, dword [esp + 0x79]
xor ecx, ecx
test eax, eax
jle 0x50603b
mov al, cl
mov dl, 0xf9
imul dl
mov dl, byte [ecx + ebp]
add dl, al
mov byte [ecx + ebp], dl
mov al, dl
mov dl, byte [esp + 0x79]
not dl
xor dl, al
mov byte [ecx + ebp], dl
mov eax, dword [esp + 0x79]
inc ecx
cmp ecx, eax
jl 0x506017
mov eax, dword [esi + 0x9d28]
mov ecx, dword [esp + 0x79]
mov edx, dword [esi + 0x9d24]
add eax, 0x10000
push eax
push ecx
push edx
lea eax, [esi + 0x9c54]
push ebp
push eax
mov dword [esi + 0x9c78], 0
call fcn.00500830
mov ecx, dword [esi + 0x9d28]
add esp, 0x14
cmp eax, ecx
jne 0x5063b5
jmp 0x506328
mov ecx, dword [esi + 0x9d28]
mov eax, dword [esi + 0x9d24]
mov edx, dword [esp + 0x1c]
push ecx
push edi
push ebx
push eax
push edx
call fcn.004f59c0
add esp, 0x14
test eax, eax
je 0x5063b5
mov eax, dword [esi + 0x11da0]
test eax, eax
je 0x506133
mov eax, dword [esi + 0x11de4]
test eax, eax
je 0x5060f2
mov ecx, dword [esp + 0x88]
mov ebx, dword [esi + 0x9d28]
mov edi, dword [esi + 0x9d24]
mov dl, cl
shr ecx, 8
xor eax, eax
test ebx, ebx
jle 0x506133
mov bl, byte [edi + eax]
add bl, dl
add dl, cl
mov byte [edi + eax], bl
mov ebx, dword [esi + 0x9d28]
inc eax
cmp eax, ebx
jl 0x5060db
jmp 0x506133
mov eax, dword [esi + 0x9d18]
mov edx, dword [esi + 0x9d1c]
mov bl, byte [esi + 0x9d18]
mov ecx, 8
call fcn.00540330
mov edx, dword [esi + 0x9d28]
mov edi, dword [esi + 0x9d24]
xor ecx, ecx
test edx, edx
jle 0x506133
mov dl, byte [edi]
sub dl, bl
add bl, al
mov byte [edi], dl
mov edx, dword [esi + 0x9d28]
inc ecx
cmp ecx, edx
jl 0x506120
mov eax, dword [esi + 0x11d80]
test eax, eax
je 0x5062cf
mov eax, dword [esp + 0x94]
test eax, 0x80000000
je 0x50623a
mov eax, dword [esp + 0x24]
push eax
call fcn.004f56f0
mov edi, eax
push 0x20000
mov dword [esp + 0x28], edi
call fcn.004f56f0
add esp, 8
mov dword [esp + 0x10], eax
test edi, edi
je 0x5063b5
test eax, eax
je 0x5063b5
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push ecx
push 0
mov edx, edi
push 0
push edx
push eax
call fcn.004f59c0
add esp, 0x14
test eax, eax
je 0x5063b5
mov ecx, edi
push 3
push 0
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 0x10]
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
call fcn.004f59c0
add esp, 0x14
test eax, eax
je 0x5063b5
mov dl, byte [esp + 0x14]
mov eax, dword [esp + 0x16]
mov ecx, dword [esp + 0x15]
and edx, 0x7f
shl edx, 8
and eax, 0xff
and ecx, 0xff
or edx, eax
shl edx, 8
or edx, ecx
mov ecx, edi
add edx, 0xfffffffc
mov eax, dword [ecx + 0x28]
mov ebp, dword [ecx + 0x10]
add eax, 0xffff
push edx
mov edx, dword [esp + 0x14]
shr eax, 0x10
push edx
lea edx, [ecx + eax*2]
add eax, edx
add eax, ebp
push eax
lea eax, [esi + 0x9c54]
push eax
call fcn.00500740
add esp, 0x10
test eax, eax
jle 0x5063b5
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov edx, dword [ecx + 0x8b34]
mov ecx, edi
push edx
push eax
push ecx
jmp 0x506285
push eax
call fcn.004f56f0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x5063b5
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x1c]
push edx
push 0
push 0
push eax
push ecx
call fcn.004f59c0
add esp, 0x14
test eax, eax
je 0x5063b5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x94]
mov edx, dword [eax + 0x8b34]
push edx
push ecx
push eax
call fcn.00428640
mov ecx, dword [esi + 0x9d28]
mov dword [esi + 0x11dd8], eax
add esp, 0xc
xor eax, eax
test ecx, 0xfffffffc
jle 0x506328
mov edx, dword [esi + 0x9d24]
mov ebp, dword [edx + eax]
lea ecx, [edx + eax]
mov edx, dword [esi + 0x11dd8]
add eax, 4
xor ebp, edx
mov dword [ecx], ebp
mov ecx, dword [esi + 0x9d28]
and ecx, 0xfffffffc
cmp eax, ecx
jl 0x5062a7
jmp 0x506328
mov eax, dword [esi + 0x11de4]
test eax, eax
je 0x506328
mov eax, dword [esi + 0x11da0]
test eax, eax
jne 0x506328
mov ecx, dword [esi + 0x9d28]
xor eax, eax
test ecx, ecx
jle 0x506328
mov edx, dword [esi + 0x9d24]
mov bl, byte [edx + eax]
lea ecx, [edx + eax]
mov dl, byte [esp + 0x88]
sub bl, dl
mov byte [ecx], bl
mov ecx, dword [esi + 0x9d24]
mov edx, dword [esi + 0x9d28]
add ecx, eax
sar edx, 2
mov bl, byte [ecx]
xor bl, dl
inc eax
mov byte [ecx], bl
mov ecx, dword [esi + 0x9d28]
cmp eax, ecx
jl 0x5062ef
mov eax, dword [esi + 0x9d04]
shl eax, 3
push eax
call fcn.004f56e0
add esp, 4
mov dword [esi + 0x9d2c], eax
test eax, eax
je 0x5063b5
lea ecx, [esp + 0x40]
push ecx
push esi
call fcn.00505320
mov ecx, eax
mov eax, dword [esi + 0x9cf8]
mov edi, edx
add esp, 8
cdq
add ecx, eax
mov ebp, 1
adc edi, edx
mov edx, dword [esi + 0x9d2c]
mov dword [edx], ecx
mov dword [edx + 4], edi
mov eax, dword [esi + 0x9d04]
cmp eax, ebp
jle 0x5063ad
mov eax, dword [esi + 0x9d2c]
lea ecx, [ebp - 1]
push ecx
push esi
lea edi, [eax + ebp*8]
call fcn.00505240
mov ecx, dword [edi - 8]
mov ebx, dword [edi - 4]
add esp, 8
xor edx, edx
add eax, ecx
adc edx, ebx
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [esi + 0x9d04]
inc ebp
cmp ebp, eax
jl 0x50637b
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x2c]
push eax
call fcn.004f5720
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004f5720
mov edx, dword [esp + 0x18]
push edx
call fcn.004f5720
mov eax, dword [esp + 0x34]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret