Function at 0x438dc0
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x88
push ebx
push ebp
push esi
mov esi, 0xffffff60
mov dword [esp + 0x54], esi
mov dword [esp + 0x74], esi
mov eax, 0x90
mov esi, 0x14
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x98]
mov eax, 0xffffffee
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esi + esi*2]
push edi
mov edx, 0xa0
mov ecx, 0xffffff70
lea edi, [esi + eax*4]
mov dword [esp + 0x60], edx
shl edi, 2
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov eax, dword [edi + 0x4982e0]
mov dword [esp + 0x80], edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x94], ecx
xor ebx, ebx
mov edx, 0xffffffec
mov ecx, 0x12
cmp eax, 0xffffffff
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x54], ecx
je 0x438eac
push eax
mov ecx, 0x6694d0
call fcn.0043d490
cmp esi, 1
je 0x438eb6
cmp esi, 3
jne 0x438eca
mov ecx, dword [edi + 0x4982d8]
push 0x8c
push ecx
call fcn.004027a0
add esp, 8
call fcn.00401950
mov edx, dword [edi + 0x4982d8]
push eax
push edx
mov dword [esp + 0x18], eax
call fcn.00403200
mov eax, dword [esp + 0xa8]
add esp, 8
cmp eax, ebx
jne 0x438f23
mov eax, dword [0x668e08]
lea ecx, [esi + eax + 0x10]
xor eax, eax
mov al, byte [ecx]
add eax, 0xd
mov ebp, 0xe
cdq
idiv ebp
xor eax, eax
mov byte [ecx], dl
mov edx, dword [0x668e08]
mov al, byte [esi + edx + 0x10]
lea ecx, [esi + edx + 0x10]
cmp byte [eax + 0x634990], 0
je 0x438efb
jmp 0x438f6c
mov ecx, dword [0x668e08]
lea eax, [esi + ecx + 0x10]
mov cl, byte [esi + ecx + 0x10]
inc cl
mov ebp, 0xe
mov byte [eax], cl
mov ecx, dword [0x668e08]
xor eax, eax
mov al, byte [esi + ecx + 0x10]
cdq
idiv ebp
mov byte [esi + ecx + 0x10], dl
mov edx, dword [0x668e08]
mov cl, byte [esi + edx + 0x10]
lea eax, [esi + edx + 0x10]
mov ebp, ecx
and ebp, 0xff
cmp byte [ebp + 0x634990], 0
je 0x438f31
mov ecx, dword [0x6349a8]
xor eax, eax
mov al, byte [edx + esi + 0x10]
push eax
push 0xe
push ecx
call fcn.004017d0
mov edx, dword [edi + 0x4982d4]
push eax
push edx
call fcn.00407e40
mov ecx, dword [0x668e08]
mov edx, dword [edi + 0x4982dc]
xor eax, eax
mov al, byte [ecx + esi + 0x10]
mov ecx, dword [0x668e04]
mov al, byte [eax + edx]
mov edx, dword [edi + 0x4982d8]
push eax
push ecx
push edx
call fcn.00402320
mov eax, dword [esp + 0xc0]
lea ebp, [eax + esi*2]
mov eax, dword [edi + 0x4982d8]
shl ebp, 3
mov ecx, dword [esp + ebp + 0x7c]
mov edx, dword [esp + ebp + 0x78]
push ecx
push edx
push eax
call fcn.004026c0
mov ecx, dword [edi + 0x4982d8]
push 0x20
push 0x100
push ebx
push 1
push ecx
call fcn.00402a10
mov edx, dword [esp + 0x50]
add esp, 0x40
push 0x20
push ebx
push 0x100
push 2
push edx
call fcn.00402a10
add esp, 0x14
mov dword [esp + 0x14], 8
call fcn.004454f0
test eax, eax
je 0x43904f
mov ebx, dword [esp + ebp + 0x1c]
mov eax, dword [esp + ebp + 0x18]
push ebx
push eax
mov eax, dword [edi + 0x4982d8]
push eax
call fcn.004026c0
mov eax, dword [esp + ebp + 0x24]
mov ecx, dword [esp + 0x1c]
push ebx
push eax
push ecx
call fcn.004026c0
mov eax, dword [esp + 0x2c]
add esp, 0x18
dec eax
xor ebx, ebx
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], ebx
jne 0x439012
mov edx, dword [esp + 0x10]
push edx
call fcn.00401a90
add esp, 4
mov dword [esp + 0x10], 0x4982d8
mov ebp, 0x4982a0
mov eax, dword [ebp]
mov ecx, dword [esp + 0x10]
add eax, 0x96
mov edx, dword [ecx]
push eax
push edx
call fcn.004027a0
mov ecx, dword [esp + 0x18]
add ebp, 4
add esp, 8
add ecx, 0x34
cmp ebp, 0x4982b0
mov dword [esp + 0x10], ecx
jl 0x43906f
mov eax, dword [0x668e08]
xor ecx, ecx
xor edx, edx
push ebx
mov cl, byte [eax + esi + 0x10]
mov dl, byte [eax + 1]
lea eax, [edx + ecx*2]
mov edx, dword [0x668e0c]
mov ecx, dword [eax*4 + 0x498380]
lea eax, [ecx + edx]
mov ecx, 0x6694d0
push eax
mov dword [edi + 0x4982e0], eax
call fcn.0043d1a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret