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

Disassembly:
sub esp, 0x198
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1a8]
mov ebp, ecx
mov eax, esi
mov dword [esp + 0x18], edx
shr eax, 2
and esi, 3
push edi
mov ecx, dword [ebp + 0xdc]
mov edx, dword [ebp + 0xd0]
mov ebx, dword [ebp + 0x1ec]
lea eax, [esi + eax*4]
mov edi, dword [ebp + 0x1f0]
shl eax, 4
mov dword [esp + 0x60], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x64], ecx
mov eax, dword [eax + ecx]
mov ecx, ebp
push edi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x74], ebx
mov edx, dword [edx + eax*4]
mov dword [esp + 0x70], edi
lea edx, [edx + ebx]
call fcn.0045c240
mov dword [esp + 0x1c], eax
xor ebx, ebx
mov al, byte [ebp + 0x31a]
mov edi, ebx
mov byte [esp + 0x17], al
movzx eax, al
mov dword [esp + 0x38], eax
pop ecx
mov ecx, dword [ebp + 0xcfac]
mov dword [esp + 0x20], ecx
test eax, eax
je 0x45f7ff
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x148]
mov dword [esp + 0x14], eax
mov edx, ecx
mov ecx, eax
push edi
call fcn.0046093c
push dword [esp + 0x1c]
movzx edx, byte [edi + ebp + 0x31b]
lea esi, [esp + 0x9c]
lea esi, [esi + edi*4]
push ebx
push ebx
mov ecx, esi
call fcn.0045fb2c
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov esi, dword [esi]
mov edx, dword [ecx]
sub edx, dword [esp + 0x38]
shl edx, 6
add edx, eax
mov eax, esi
mov ecx, edx
mov dword [esp + edi*4 + 0xc4], edx
and ecx, 0x3f
shr edx, 6
imul ecx, dword [esp + 0x20]
and eax, 0x3f
imul edx, dword [esp + 0x20]
shr esi, 6
add ecx, 0x20
add eax, ecx
mov ecx, dword [esp + 0x1c]
shr eax, 6
add eax, edx
add eax, esi
mov dword [esp + edi*4 + 0xf4], eax
inc edi
mov eax, dword [esp + 0x14]
add eax, 8
mov dword [esp + 0x14], eax
cmp edi, dword [esp + 0x34]
jl 0x45f774
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x160]
add ecx, 4
mov dword [esp + 0x4c], eax
add ecx, dword [esp + 0x60]
lea eax, [esp + 0x148]
mov esi, ebx
mov dword [esp + 0x1c], 0xc
xor edi, edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x30], eax
inc edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
mov eax, dword [ecx]
mov ecx, dword [esp + 0x78]
push dword [esp + 0x6c]
mov edx, dword [ecx + eax*4]
mov ecx, dword [esp + 0x74]
lea edx, [edx + ecx]
mov ecx, ebp
call fcn.0045c240
mov dword [esp + 0x78], eax
mov edx, ebx
mov al, byte [esp + 0x17]
mov dword [esp + 0x30], edx
pop ecx
test al, al
je 0x45fa6a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
lea ecx, [esp + eax + 0x118]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x40], ecx
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x80]
call fcn.0046093c
push dword [esp + 0x78]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x5c]
push ebx
push ebx
movzx edx, byte [eax + ebp + 0x31b]
call fcn.0045fb2c
mov edx, dword [esp + 0x8c]
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + esi + 0x94]
add esi, dword [esp + 0x54]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x68], esi
mov dword [esp + 0x24], edi
sub edx, dword [eax]
mov eax, esi
shl edx, 6
and eax, 0x3f
add edx, dword [esp + ecx + 0xc4]
add edx, dword [esp + 0x58]
mov ecx, edx
mov dword [esp + 0x3c], edx
and ecx, 0x3f
imul ecx, dword [esp + 0x20]
add ecx, 0x20
add ecx, eax
mov eax, edx
shr eax, 6
imul eax, dword [esp + 0x20]
shr ecx, 6
add ecx, eax
mov eax, esi
shr eax, 6
add ecx, eax
cmp byte [esp + 0x13], 1
mov eax, ebx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x28], eax
jbe 0x45f9fa
mov ebp, edx
mov ebx, ecx
mov edx, edi
mov edi, dword [esp + 0x48]
lea esi, [esp + 0x7c]
push dword [esp + 0x2c]
lea esi, [esi + edx*8]
mov ecx, esi
lea eax, [edi + edx]
lea edx, [esp + 0x14c]
lea edx, [edx + eax*8]
call fcn.0046093c
mov eax, dword [esp + 0x28]
mov edx, dword [esi]
add eax, edi
pop ecx
sub edx, dword [esp + eax*8 + 0x148]
mov edi, dword [esp + eax*4 + 0x94]
add edi, dword [esp + 0x54]
shl edx, 6
add edx, dword [esp + eax*4 + 0xc4]
mov eax, edi
add edx, dword [esp + 0x58]
and eax, 0x3f
mov ecx, edx
add eax, 0x20
and ecx, 0x3f
imul ecx, dword [esp + 0x20]
add ecx, eax
mov eax, edx
shr eax, 6
imul eax, dword [esp + 0x20]
shr ecx, 6
add ecx, eax
mov eax, edi
shr eax, 6
add ecx, eax
mov eax, dword [esp + 0x24]
cmp ecx, ebx
mov esi, ecx
cmovae edi, dword [esp + 0x68]
cmovae edx, ebp
cmovae eax, dword [esp + 0x28]
cmovae esi, ebx
mov ebp, edx
mov dword [esp + 0x50], esi
mov edx, dword [esp + 0x24]
mov esi, edi
mov ecx, dword [esp + 0x50]
inc edx
mov ebx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x24], edx
cmp edx, dword [esp + 0x34]
jl 0x45f934
xor edi, edi
mov dword [esp + 0x3c], ebp
xor ebx, ebx
mov dword [esp + 0x28], eax
mov edx, ebp
inc edi
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + eax*8 + 0x7c]
add dword [esp + 0x40], 8
mov dword [ebp], eax
mov eax, dword [esp + 0x28]
mov eax, dword [esp + eax*8 + 0x80]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x5c]
mov dword [esp + eax + 0xf4], ecx
mov ecx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + ecx + 0x94], esi
mov esi, dword [esp + 0x38]
mov dword [esp + ecx + 0xc4], edx
add ecx, 4
mov edx, dword [esp + 0x2c]
inc edx
mov dword [esp + 0x44], ecx
mov dword [esi], eax
add esi, 4
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
cmp edx, dword [esp + 0x34]
jl 0x45f886
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x18]
add esi, 0xc
add dword [esp + 0x30], 0x18
add ecx, 4
add dword [esp + 0x48], 3
add dword [esp + 0x4c], 0x18
add dword [esp + 0x1c], 0xc
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
cmp esi, 0x24
jl 0x45f839
mov esi, dword [esp + 0x118]
mov dword [esp + 0x18], esi
cmp al, 1
jbe 0x45face
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + edi*4 + 0x118]
mov eax, edi
cmp ecx, esi
inc edi
cmovae eax, ebx
cmovae ecx, esi
mov ebx, eax
mov esi, ecx
cmp edi, ebp
jl 0x45faac
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x64]
mov eax, ebx
mov esi, dword [esp + 0x60]
add ecx, 0xc
mov edi, dword [ebp + 0xcc]
add esi, ecx
shl eax, 2
push 9
pop ebp
mov ecx, dword [esi]
xor eax, dword [edi + ecx*4]
and eax, 0xfc
xor dword [edi + ecx*4], eax
sub ebp, 3
lea esi, [esi - 4]
mov edx, dword [esi]
lea eax, [ebx + ebp]
mov ebx, dword [esp + eax*4 + 0x124]
mov ecx, ebx
shl ecx, 2
xor ecx, dword [edi + edx*4]
and ecx, 0xfc
xor dword [edi + edx*4], ecx
test ebp, ebp
jg 0x45faf6
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x198
ret