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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov dword [esp + 8], edx
lea edx, [esp + 0x70]
mov esi, ecx
mov ecx, 0xc
mov eax, dword [0xbd33e0]
mov edi, edx
xor eax, ebp
mov dword [esp + 0xa0], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
call fcn.00845730
mov eax, 0xfffff84d
add eax, dword [esp + 0x78]
cmp eax, 0x43
jb 0x845426
mov dword [esp + 0x78], 0x7d0
mov dword [esp + 0x7c], 1
mov dword [esp + 0x80], 1
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0
jmp 0x845467
fld qword [esp + 0x90]
fadd dword [0xb4ba44]
fnstcw word [esp + 6]
movzx eax, word [esp + 6]
mov word [esp + 6], 0xc7f
fldcw word [esp + 6]
mov word [esp + 6], ax
fistp dword [esp + 0x10]
fldcw word [esp + 6]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp qword [esp + 0x90]
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x70]
mov dword [esp + 0x8c], 0
mov byte [esp + 0x98], 0
call fcn.00842b20
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
push 0
push 0x3e8
push edi
push ebx
call fcn.0098a070
add eax, 0xe75c96c0
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x18]
mov dword [esp + 0x3c], eax
call fcn.008458f0
test eax, eax
je 0x845693
mov edx, fcn.00846690
xor eax, eax
movzx edi, byte [0xbbd8bb]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt edi, eax
jb 0x845674
mov al, byte [0xbbd8bb]
xor ecx, ecx
cmp edx, 2
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 5
lea ecx, [ebx + ecx*2 + 4]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbd8bb], ah
jne 0x8454f0
mov ecx, fcn.00846690
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
mov ebx, edx
xor ebx, 5
lea edx, [ebx + edx*2 + 4]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x84556b
xor eax, eax
cmp ecx, 2
movzx edi, byte [0xbbd8bb]
sete al
mov edx, eax
xor edx, 5
lea eax, [edx + eax*2 + 4]
and al, 7
movzx eax, al
bt edi, eax
jae 0x845544
jmp 0x845674
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbbd8bb]
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x845648
mov eax, fcn.00846690
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 0x3e447dcd
lea ecx, [eax + ecx*2 + 0x444]
mov eax, dword [0xbbd8a0]
xor eax, ecx
mov dword [0xbbd8a0], eax
not eax
mov edx, dword [0xbbd8a4]
imul eax, ecx
and cl, 7
lea edi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbbd8a4], edx
or edi, eax
not edx
mov eax, dword [0xbbd8a8]
imul edx, edi
lea edi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbbd8a8], eax
or edi, edx
not eax
mov edx, dword [0xbbd8ac]
imul eax, edi
lea edi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbbd8ac], edx
or edi, eax
not edx
mov eax, dword [0xbbd8b0]
imul edx, edi
mov edi, edx
shl edi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbbd8b0], eax
or edx, edi
not eax
imul eax, edx
mov dl, 1
xor dword [0xbbd8b4], eax
shl dl, cl
or byte [0xbbd8bb], dl
mov eax, fcn.00846690
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 5
lea ecx, [eax + ecx*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbbd8bb], al
push 0xffffffffffffffff
push 0xbbd8a0
push dword [esp + 0x10]
call fcn.00789720
add esp, 0xc
mov dword [esi], 1
xor esi, esi
xor edi, edi
jmp 0x845700
mov eax, 0x76c
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add eax, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x58], ecx
mov dword [esp + 0xc], edx
lea ecx, [esp + 0x40]
fild dword [esp + 0xc]
fstp qword [esp + 0x60]
mov dword [esp + 0x68], 0x1010000
mov byte [esp + 0x6c], 0
mov byte [esp + 0x6e], 0
call fcn.00842b20
mov dword [esi], 0
mov eax, edi
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
sub esi, ebx
sbb edi, eax
mov ecx, dword [esp + 0xa0]
xor ecx, ebp
call fcn.00989fe9
mov eax, esi
mov edx, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret