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

Disassembly:
sub esp, 0x48
cmp dword [esp + 0x4c], 0
je 0x1046b5d5
mov eax, dword [esp + 0x5c]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x64]
add eax, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
add eax, eax
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x18], eax
mov eax, 0x20
cmp ecx, eax
mov edx, eax
push ebx
mov ebx, dword [esp + 0x6c]
cmovl edx, ecx
cmp ebx, eax
mov dword [esp + 0x40], edx
push ebp
mov ebp, dword [esp + 0x48]
cmovl eax, ebx
xor edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
test ebx, ebx
jle 0x1046b5c7
mov eax, ebx
mov dword [esp + 0x54], ebp
mov ebx, dword [esp + 0x4c]
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], ebx
push edi
xor edi, edi
mov dword [esp + 0x44], edi
test ecx, ecx
jle 0x1046b5a3
mov eax, dword [esp + 0x18]
mov esi, edx
imul esi, dword [esp + 0x70]
imul eax, dword [esp + 0x68]
sar edx, 5
imul edx, dword [esp + 0x80]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x48], esi
sub eax, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], edx
nop
mov ebx, dword [esp + 0x7c]
mov eax, edi
sar eax, 5
add eax, edx
cmp byte [eax + ebx], 0
mov ebx, dword [esp + 0x10]
je 0x1046b578
cmp dword [esp + 0x4c], ecx
mov edx, ecx
mov eax, dword [esp + 0x1c]
mov ebp, eax
cmovl edx, dword [esp + 0x4c]
cmp dword [esp + 0x20], eax
mov dword [esp + 0x50], edx
cmovl ebp, dword [esp + 0x20]
cmp edx, 0x20
jne 0x1046b4bd
cmp ebp, edx
jne 0x1046b4bd
mov eax, dword [esp + 0x2c]
push dword [esp + 0x70]
mov ecx, dword [esp + 0x2c]
lea eax, [eax + esi*2]
shr eax, 1
push eax
mov eax, dword [esp + 0x2c]
push dword [esp + 0x70]
add eax, esi
lea eax, [ecx + eax*2]
shr eax, 1
push eax
call dword [0x10b49570]
mov ebp, dword [esp + 0x6c]
add esp, 0x10
mov ecx, dword [esp + 0x14]
add ebp, eax
adc ebx, 0
jmp 0x1046b56c
xor ebx, ebx
test ebp, ebp
jle 0x1046b55d
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x28]
add eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x70]
add eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
add eax, esi
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
lea ecx, [ecx + esi*2]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x38], ecx
nop
test edx, edx
jle 0x1046b540
mov esi, ecx
mov edi, edx
mov ecx, eax
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
movzx edx, word [esi]
lea esi, [esi + 2]
sub edx, eax
mov eax, edx
cdq
xor eax, edx
sub eax, edx
add ebx, eax
sub edi, 1
jne 0x1046b510
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
add ecx, edi
add eax, esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
sub ebp, 1
jne 0x1046b500
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x5c]
mov eax, ebx
mov ebx, dword [esp + 0x10]
cdq
add ebp, eax
adc ebx, edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x5c], ebp
add edi, 0x20
sub ecx, 0x20
add esi, 0x20
mov dword [esp + 0x44], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x48], esi
cmp edi, dword [esp + 0x74]
jl 0x1046b440
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
add edx, 0x20
sub eax, 0x20
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
cmp edx, dword [esp + 0x78]
jl 0x1046b404
pop edi
pop esi
mov eax, ebp
mov edx, ebx
pop ebp
pop ebx
add esp, 0x48
ret
mov ebx, dword [esp + 0x4c]
mov eax, ebp
pop ebp
mov edx, ebx
pop ebx
add esp, 0x48
ret
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x70]
call fcn.1046b9d0
add esp, 0x20
add esp, 0x48
ret