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

Disassembly:
sub esp, 0x40
mov edx, dword [esp + 0x44]
mov eax, dword [0x7bb5f8]
push ebx
mov ebx, dword [esp + 0x4c]
movzx ecx, word [edx]
push ebp
push esi
mov esi, dword [0x7bb5e4]
mov ebp, edx
movzx eax, word [eax + ecx*2]
mov dword [esp + 0x18], eax
mov eax, dword [0x7bb5e0]
push edi
mov edi, dword [0x7bb608]
dec edi
mov dword [0x7bb608], edi
mov eax, dword [ebx + eax*4]
movzx ecx, word [ebp]
mov dword [esp + 0x2c], eax
imul eax, esi, 0x36a
mov dword [esp + 0x40], eax
movzx eax, word [edx - 2]
movzx eax, word [edx + eax*2 - 2]
mov dword [esp + 0x30], eax
movzx eax, word [ebp + 0xc3a]
mov dword [esp + 0x34], eax
mov eax, dword [0x7bb5e8]
mov cl, byte [eax + ecx*4]
mov al, byte [0x7bb5d0]
add cl, al
inc al
mov byte [0x7bb5d0], al
mov eax, dword [0x7bb604]
mov byte [esp + 0x54], cl
mov edx, dword [eax + edi*4]
movzx eax, word [0x7bb600]
xor edx, dword [ebx + esi*4]
movzx esi, word [ebp + 0x570]
mov dword [esp + 0x28], eax
mov eax, dword [0x7bb5c4]
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], esi
movzx eax, byte [eax + edx]
cmp esi, eax
jne 0x4044f1
mov edi, dword [esp + 0x1c]
movzx eax, cl
mov dword [esp + 0x38], eax
lea eax, [ebx + 0x58]
lea eax, [eax + esi*4]
mov dword [esp + 0x14], eax
lea eax, [ebx + 4]
lea eax, [eax + esi*8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
lea ebx, [esi + esi]
push ebx
mov dword [esp + 0x40], ebx
movzx eax, byte [eax + edi]
or eax, dword [0x7bb5cc]
push eax
call fcn.0040674d
movzx ecx, word [ebp]
mov edi, eax
mov eax, dword [esp + 0x60]
push dword [esp + 0x40]
mov esi, dword [eax + edi*4]
mov eax, dword [esp + 0x38]
mov eax, dword [eax + ecx*4 + 8]
add eax, dword [esp + 0x1c]
and eax, esi
mov ecx, dword [esp + 0x64]
cdq
idiv esi
mov dword [ecx + edi*4], eax
movzx eax, word [ebp - 2]
mov ecx, dword [esp + 0x1c]
xor word [ebp + eax*2], cx
mov eax, dword [esp + 0x3c]
movzx esi, word [ebx + ebp - 2]
mov ebx, dword [esp + 0x30]
mov eax, dword [eax]
mov edi, dword [eax*4 + 0x1a08]
mov eax, dword [esp + 0x40]
movzx eax, ax
xor esi, eax
mov eax, 0x1f5a
movzx eax, word [eax]
imul edx, eax, 0x98
movzx eax, byte [0x7bb5c1]
imul eax, eax, 3
movzx ecx, byte [eax + 0x1fff]
mov eax, dword [esp + 0x24]
sub ecx, dword [eax]
mov eax, dword [0x7bb5c4]
dec eax
mov dword [0x7bb5c4], eax
movzx eax, byte [ebx + eax*4]
xor eax, dword [esp + 0x1c]
push eax
push ecx
push edx
push esi
push edi
call fcn.00405ec0
movzx ecx, word [ebp - 2]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x5c]
mov dword [edx + ecx*4 + 0xc], eax
mov eax, dword [0x7bb608]
add eax, 0x759
mov dword [esp + 0x6c], eax
movzx eax, word [ebp - 2]
movzx ecx, word [ebp + eax*2 + 0xa]
sub ebp, 4
mov eax, dword [0x7bb5e8]
mov dword [esp + 0x40], ebp
mov ebp, dword [0x7bb5f4]
imul ecx, dword [eax + 0x25c4]
mov eax, 0xf12
cdq
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x34]
idiv dword [ecx]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x40]
movzx ecx, word [edx]
mov ax, word [edx + ecx*2]
or ax, word [ebx + edx]
movzx ebx, ax
lea eax, [ecx + 1]
movzx ecx, ax
mov word [edx], ax
mov esi, dword [0x7bb5ec]
movzx eax, byte [ecx + 0x1fff]
mov edi, esi
sub edi, eax
movzx eax, word [edx + ecx*2 + 0x10]
mov ecx, dword [esp + 0x60]
xor edx, edx
div dword [ecx + esi*4]
push eax
push edi
push ebx
push ebp
push dword [esp + 0x74]
push 0
push dword [esp + 0x80]
push dword [esp + 0x88]
push 0x12c1
call fcn.004049df
mov ebp, dword [esp + 0x64]
xor edx, edx
mov ebx, dword [esp + 0x9c]
add esp, 0x44
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov dword [0x7bb608], eax
movzx eax, word [ebp]
imul ecx, eax, 0xc
add dword [esp + 0x14], 4
add dword [esp + 0x18], 8
mov eax, dword [ebx + eax*4]
imul eax, dword [ebx + 0xae0]
xor dword [ecx + 0x19e8], eax
movzx eax, byte [0x7bb5c3]
movzx ecx, byte [edi + esi + 5]
add eax, 0x1598
div ecx
mov ecx, dword [esp + 0x24]
mov byte [edi + esi + 5], dl
inc esi
mov eax, dword [0x7bb5c4]
mov dword [esp + 0x10], esi
movzx eax, byte [eax + ecx]
cmp esi, eax
je 0x404319
mov edi, dword [0x7bb608]
mov eax, edi
cdq
idiv dword [ebx + edi*4 + 0x58]
push dword [esp + 0x28]
push eax
call fcn.0040674d
mov word [0x7bb600], ax
movzx eax, byte [0x7bb5d2]
imul eax, eax, 6
pop ecx
pop ecx
mov edi, dword [0x7bb5e0]
movzx esi, word [eax + ebp]
mov eax, dword [esp + 0x1c]
movzx ecx, byte [eax]
mov eax, dword [0x7bb5e8]
mov eax, dword [eax + ecx*4]
cdq
idiv esi
movzx ecx, word [ebp + edi*2]
or ax, word [ebx + 0x215c]
movzx eax, ax
imul eax, ecx
mov word [ebp + edi*2], ax
movzx eax, byte [esp + 0x54]
pop edi
pop esi
pop ebp
or eax, 0x1e3f
pop ebx
add esp, 0x40
ret