Function at 0x4c65a0
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.004b6c50
add esp, 0x14
test eax, eax
je 0x4c6ef5
mov ebp, 0x667df4
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [ebp]
jne 0x4c662c
test cl, cl
je 0x4c6628
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [ebp + 1]
jne 0x4c662c
add eax, 2
add ebp, 2
test cl, cl
jne 0x4c6607
xor eax, eax
jmp 0x4c6631
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4c666c
mov ebp, 0x667df0
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [ebp]
jne 0x4c6663
test cl, cl
je 0x4c665f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [ebp + 1]
jne 0x4c6663
add eax, 2
add ebp, 2
test cl, cl
jne 0x4c663e
xor eax, eax
jmp 0x4c6668
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4c6676
mov dword [esi + 0x11de4], 1
lea eax, [esp + 0x40]
push 0x48
push eax
call fcn.004c1b10
mov ecx, dword [esp + 0x90]
add esp, 8
cmp eax, ecx
jne 0x4c6ef5
mov ecx, dword [esp + 0x64]
test ch, 0x20
je 0x4c66a7
mov dword [esi + 0x11db8], 1
test ch, 0x80
je 0x4c66b6
mov dword [esi + 0x11e30], 1
mov eax, dword [esp + 0x54]
mov dword [esi + 0x9d20], 0x800
cmp eax, 0x150
mov dword [esi + 0x9cf0], eax
jne 0x4c66ec
mov eax, dword [esp + 0x98]
mov dword [esi + 0x9d20], 0x200
test eax, eax
je 0x4c6ef5
jmp 0x4c66f3
cmp eax, 0x100
jbe 0x4c66fc
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.004c2a10
add esp, 0xc
test eax, eax
je 0x4c6ef5
lea edx, [esp + 0x40]
push edi
push edx
push esi
call fcn.004c3e50
add esp, 0xc
test eax, eax
je 0x4c6ef5
lea eax, [esp + 0x40]
push edi
push eax
push esi
call fcn.004c5ac0
add esp, 0xc
test eax, eax
je 0x4c6ef5
lea ecx, [esp + 0x40]
push edi
push ecx
push esi
call fcn.004c4250
add esp, 0xc
test eax, eax
je 0x4c6ef5
mov ebp, 0x667ddc
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [ebp]
jne 0x4c679f
test cl, cl
je 0x4c679b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [ebp + 1]
jne 0x4c679f
add eax, 2
add ebp, 2
test cl, cl
jne 0x4c677a
xor eax, eax
jmp 0x4c67a4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4c681a
mov ebp, 0x667df4
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [ebp]
jne 0x4c67d6
test cl, cl
je 0x4c67d2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [ebp + 1]
jne 0x4c67d6
add eax, 2
add ebp, 2
test cl, cl
jne 0x4c67b1
xor eax, eax
jmp 0x4c67db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4c681a
mov ebp, 0x667df0
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [ebp]
jne 0x4c680d
test cl, cl
je 0x4c6809
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [ebp + 1]
jne 0x4c680d
add eax, 2
add ebp, 2
test cl, cl
jne 0x4c67e8
xor eax, eax
jmp 0x4c6812
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4c6ef5
mov eax, dword [esp + 0x50]
cmp eax, 0x4c
jb 0x4c6ef5
cmp dword [esp + 0x5c], 1
jne 0x4c6ef5
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.004b1120
mov ecx, dword [esp + 0x7c]
lea eax, [esi + 0x9c40]
push eax
mov eax, dword [esp + 0x84]
push eax
push ecx
call fcn.004b1120
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.004f5c30
mov dword [esi + 0x9d18], eax
mov eax, dword [esp + 0x54]
cmp eax, 0x100
mov dword [esi + 0x9d1c], edx
jne 0x4c68b0
cmp dword [esp + 0x14], 0x10000
jne 0x4c6ef5
jmp 0x4c6932
cmp eax, 0x110
je 0x4c68d1
cmp eax, 0x150
je 0x4c68d1
mov dword [esi + 0x11d7c], 1
mov dword [esp + 0x28], edi
jmp 0x4c6ef5
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 0x4c6908
add eax, 0xa
mov dword [esi + 0x11d84], eax
cmp dword [esi + 0x11d84], edi
jne 0x4c6932
mov edx, dword [esp + 0x14]
mov dword [esi + 0x11d84], edi
lea eax, [edx - 1]
cmp eax, edi
je 0x4c6932
mov edx, dword [esi + 0x11d84]
inc edx
shr eax, 1
mov dword [esi + 0x11d84], edx
jne 0x4c6921
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.004f5c30
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.004f5d20
mov ecx, eax
or ecx, edx
je 0x4c697f
mov dword [esi + 0x9d08], eax
jmp 0x4c6989
mov edx, dword [esp + 0x14]
mov dword [esi + 0x9d08], edx
cmp dword [esi + 0x9cf0], 0x100
jne 0x4c69e2
lea ebp, [ebp + ebp*2]
push ebp
mov dword [esi + 0x9d28], ebp
call fcn.004b6a10
add esp, 4
mov dword [esi + 0x9d24], eax
test eax, eax
je 0x4c6ef5
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.004b6c50
add esp, 0x14
test eax, eax
je 0x4c6ef5
jmp 0x4c6e68
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 0x4c6a0d
add eax, 0x10000
push eax
call fcn.004b6a10
add esp, 4
mov dword [esi + 0x9d24], eax
test eax, eax
je 0x4c6ef5
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x64]
test eax, 0x80000000
mov ebp, 1
je 0x4c6a7a
test ch, 0x40
mov dword [esi + 0x11d98], ebp
je 0x4c6a61
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 0x4c6a82
mov eax, dword [esi + 0x9d28]
mov ebx, dword [esi + 0x9c40]
mov edi, dword [esi + 0x9c44]
cdq
sub ebx, eax
sbb edi, edx
jmp 0x4c6a82
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
test dword [esp + 0x58], 0x10000000
je 0x4c6a92
mov dword [esi + 0x11d8c], ebp
test ecx, 0x20000
je 0x4c6aa0
mov dword [esi + 0x11d94], ebp
test ecx, 0x8000000
je 0x4c6aae
mov dword [esi + 0x11da0], ebp
test ecx, 0x80000
je 0x4c6abc
mov dword [esi + 0x11d80], ebp
test ecx, 0x100000
je 0x4c6ae2
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 0x4c6b02
xor eax, ebp
mov dword [esi + 0x11dbc], eax
test ch, 0x40
je 0x4c6bc0
mov ecx, dword [esp + 0x79]
push ecx
call fcn.004b6a20
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x2c], ebp
je 0x4c6ef5
mov edx, dword [esp + 0x79]
mov eax, dword [esp + 0x1c]
push edx
push edi
push ebx
push ebp
push eax
call fcn.004b6c50
add esp, 0x14
test eax, eax
je 0x4c6ef5
mov eax, dword [esi + 0x11de4]
test eax, eax
je 0x4c6b7b
mov eax, dword [esp + 0x79]
xor ecx, ecx
test eax, eax
jle 0x4c6b7b
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 0x4c6b57
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.004c0aa0
mov ecx, dword [esi + 0x9d28]
add esp, 0x14
cmp eax, ecx
jne 0x4c6ef5
jmp 0x4c6e68
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.004b6c50
add esp, 0x14
test eax, eax
je 0x4c6ef5
mov eax, dword [esi + 0x11da0]
test eax, eax
je 0x4c6c73
mov eax, dword [esi + 0x11de4]
test eax, eax
je 0x4c6c32
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 0x4c6c73
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 0x4c6c1b
jmp 0x4c6c73
mov eax, dword [esi + 0x9d18]
mov edx, dword [esi + 0x9d1c]
mov bl, byte [esi + 0x9d18]
mov ecx, 8
call fcn.004f6910
mov edx, dword [esi + 0x9d28]
mov edi, dword [esi + 0x9d24]
xor ecx, ecx
test edx, edx
jle 0x4c6c73
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 0x4c6c60
mov eax, dword [esi + 0x11d80]
test eax, eax
je 0x4c6e0f
mov eax, dword [esp + 0x94]
test eax, 0x80000000
je 0x4c6d7a
mov eax, dword [esp + 0x24]
push eax
call fcn.004b6a20
mov edi, eax
push 0x20000
mov dword [esp + 0x28], edi
call fcn.004b6a20
add esp, 8
mov dword [esp + 0x10], eax
test edi, edi
je 0x4c6ef5
test eax, eax
je 0x4c6ef5
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.004b6c50
add esp, 0x14
test eax, eax
je 0x4c6ef5
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.004b6c50
add esp, 0x14
test eax, eax
je 0x4c6ef5
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.004c09b0
add esp, 0x10
test eax, eax
jle 0x4c6ef5
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 0x4c6dc5
push eax
call fcn.004b6a20
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x4c6ef5
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x1c]
push edx
push 0
push 0
push eax
push ecx
call fcn.004b6c50
add esp, 0x14
test eax, eax
je 0x4c6ef5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x94]
mov edx, dword [eax + 0x8b34]
push edx
push ecx
push eax
call fcn.004273a0
mov ecx, dword [esi + 0x9d28]
mov dword [esi + 0x11dd8], eax
add esp, 0xc
xor eax, eax
test ecx, 0xfffffffc
jle 0x4c6e68
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 0x4c6de7
jmp 0x4c6e68
mov eax, dword [esi + 0x11de4]
test eax, eax
je 0x4c6e68
mov eax, dword [esi + 0x11da0]
test eax, eax
jne 0x4c6e68
mov ecx, dword [esi + 0x9d28]
xor eax, eax
test ecx, ecx
jle 0x4c6e68
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 0x4c6e2f
mov eax, dword [esi + 0x9d04]
shl eax, 3
push eax
call fcn.004b6a10
add esp, 4
mov dword [esi + 0x9d2c], eax
test eax, eax
je 0x4c6ef5
lea ecx, [esp + 0x40]
push ecx
push esi
call fcn.004c5e60
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 0x4c6eed
mov eax, dword [esi + 0x9d2c]
lea ecx, [ebp - 1]
push ecx
push esi
lea edi, [eax + ebp*8]
call fcn.004c5d80
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 0x4c6ebb
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x2c]
push eax
call fcn.004b6a50
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004b6a50
mov edx, dword [esp + 0x18]
push edx
call fcn.004b6a50
mov eax, dword [esp + 0x34]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret