Function at 0x839ae0
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 [0xbcbae0]
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.00839ec0
mov eax, 0xfffff84d
add eax, dword [esp + 0x78]
cmp eax, 0x43
jb 0x839bb6
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 0x839bf7
fld qword [esp + 0x90]
fadd dword [0xb433e4]
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.008372b0
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
push 0
push 0x3e8
push edi
push ebx
call fcn.009804e0
add eax, 0xe75c96c0
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x18]
mov dword [esp + 0x3c], eax
call fcn.0083a080
test eax, eax
je 0x839e23
mov edx, fcn.0083ae20
xor eax, eax
movzx edi, byte [0xbb5f5b]
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 0x839e04
mov al, byte [0xbb5f5b]
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 [0xbb5f5b], ah
jne 0x839c80
mov ecx, fcn.0083ae20
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 0x839cfb
xor eax, eax
cmp ecx, 2
movzx edi, byte [0xbb5f5b]
sete al
mov edx, eax
xor edx, 5
lea eax, [edx + eax*2 + 4]
and al, 7
movzx eax, al
bt edi, eax
jae 0x839cd4
jmp 0x839e04
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbb5f5b]
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x839dd8
mov eax, fcn.0083ae20
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 [0xbb5f40]
xor eax, ecx
mov dword [0xbb5f40], eax
not eax
mov edx, dword [0xbb5f44]
imul eax, ecx
and cl, 7
lea edi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb5f44], edx
or edi, eax
not edx
mov eax, dword [0xbb5f48]
imul edx, edi
lea edi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb5f48], eax
or edi, edx
not eax
mov edx, dword [0xbb5f4c]
imul eax, edi
lea edi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb5f4c], edx
or edi, eax
not edx
mov eax, dword [0xbb5f50]
imul edx, edi
mov edi, edx
shl edi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb5f50], eax
or edx, edi
not eax
imul eax, edx
mov dl, 1
xor dword [0xbb5f54], eax
shl dl, cl
or byte [0xbb5f5b], dl
mov eax, fcn.0083ae20
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 [0xbb5f5b], al
push 0xffffffffffffffff
push 0xbb5f40
push dword [esp + 0x10]
call fcn.0077de30
add esp, 0xc
mov dword [esi], 1
xor esi, esi
xor edi, edi
jmp 0x839e90
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.008372b0
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.00980459
mov eax, esi
mov edx, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret