Function at 0x52d870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x56a192
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
mov ebp, dword [esp + 0x70]
push esi
push edi
xor eax, eax
lea esi, [ebp + 0xd8]
mov ecx, 0x34
mov edi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0xcc]
add eax, 0x668a0
push eax
push 0x88a3dc
call fcn.004475f0
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x52d8c0
push 1
sub eax, ecx
mov ecx, dword [ebp + 0xcc]
push eax
push 0x1c
push 0x1e
add ecx, 0x668a0
push ecx
push 0x88a3dc
call fcn.004475f0
push eax
push esi
call fcn.004215b0
mov ebx, dword [0x5e5728]
call fcn.004ce8c0
mov esi, eax
lea edi, [esi + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x30]
test al, al
push edi
je 0x52d914
mov esi, 1
jmp 0x52d92a
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x24]
xor eax, ebx
mov ebx, dword [esi + 0x1c]
mov edx, eax
shr edx, 3
mov esi, dword [ecx + edx*4]
xor esi, dword [ebx + eax*4]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call ebx
call fcn.00554f6c
cdq
idiv esi
lea eax, [ebp + 0xb0]
mov edi, eax
mov dword [esp + 0x10], 3
mov dword [esp + 0x78], edx
mov edi, edi
test byte [0x90c2dc], 1
jne 0x52d987
or dword [0x90c2dc], 1
push 0x90c290
mov dword [esp + 0x74], 0
call fcn.004ce530
push 0x5707b0
call fcn.005535b5
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov esi, dword [edi]
push 0x90c2c4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [0x90c2c0]
test al, al
push 0x90c2c4
je 0x52d9a9
mov esi, 1
jmp 0x52d9c9
mov eax, dword [0x90c2bc]
mov ecx, dword [0x90c2b4]
xor esi, eax
mov eax, esi
mov edx, eax
shr edx, 3
mov esi, dword [ecx + edx*4]
mov edx, dword [0x90c2ac]
xor esi, dword [edx + eax*4]
call ebx
test byte [0x90c2dc], 1
mov dword [esp + 0x18], esi
jne 0x52da0e
mov esi, dword [0x90c2dc]
mov eax, 1
or esi, eax
mov dword [0x90c2dc], esi
push 0x90c290
mov dword [esp + 0x74], eax
call fcn.004ce530
push 0x5707b0
call fcn.005535b5
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov ecx, dword [edi - 0x18]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov esi, 0x90c290
call fcn.0040aeb0
test byte [0x90c2dc], 1
jne 0x52da5a
or dword [0x90c2dc], 1
push 0x90c290
mov dword [esp + 0x74], 2
call fcn.004ce530
push 0x5707b0
call fcn.005535b5
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov esi, dword [0x5e56d8]
push 0x90c2c4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [0x90c2c0]
test al, al
push 0x90c2c4
je 0x52da80
mov esi, 1
jmp 0x52daa0
mov eax, dword [0x90c2bc]
mov ecx, dword [0x90c2b4]
xor esi, eax
mov eax, esi
mov edx, eax
shr edx, 3
mov esi, dword [ecx + edx*4]
mov edx, dword [0x90c2ac]
xor esi, dword [edx + eax*4]
call ebx
call fcn.00554f6c
cdq
idiv esi
test byte [0x90c2dc], 1
mov dword [esp + 0x18], edx
jne 0x52dae5
or dword [0x90c2dc], 1
push 0x90c290
mov dword [esp + 0x74], 3
call fcn.004ce530
push 0x5707b0
call fcn.005535b5
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov ecx, dword [edi]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov esi, 0x90c290
call fcn.0040aeb0
mov eax, dword [esp + 0x10]
add edi, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x52d950
test byte [0x90c2dc], 1
mov dword [esp + 0x18], 0
jne 0x52db4a
or dword [0x90c2dc], 1
push 0x90c290
mov dword [esp + 0x74], 4
call fcn.004ce530
push 0x5707b0
call fcn.005535b5
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [ebp + 0x90]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov esi, 0x90c290
call fcn.0040aeb0
test byte [0x90c2dc], 1
jne 0x52db99
or dword [0x90c2dc], 1
push 0x90c290
mov dword [esp + 0x74], 5
call fcn.004ce530
push 0x5707b0
call fcn.005535b5
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 0xb0]
push 0x90c2c4
call edi
mov al, byte [0x90c2c0]
test al, al
push 0x90c2c4
je 0x52dbc4
mov dword [esp + 0x5c], 1
jmp 0x52dbe7
mov ecx, dword [0x90c2bc]
mov edx, dword [0x90c2b4]
xor esi, ecx
mov ecx, esi
shr ecx, 3
mov eax, dword [edx + ecx*4]
mov ecx, dword [0x90c2ac]
xor eax, dword [ecx + esi*4]
mov dword [esp + 0x5c], eax
call ebx
test byte [0x90c2dc], 1
jne 0x52dc20
or dword [0x90c2dc], 1
push 0x90c290
mov dword [esp + 0x74], 6
call fcn.004ce530
push 0x5707b0
call fcn.005535b5
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov esi, dword [ebp + 0xb8]
push 0x90c2c4
call edi
mov al, byte [0x90c2c0]
test al, al
push 0x90c2c4
je 0x52dc42
mov esi, 1
jmp 0x52dc62
mov eax, dword [0x90c2bc]
mov ecx, dword [0x90c2b4]
xor esi, eax
mov eax, esi
mov edx, eax
shr edx, 3
mov esi, dword [ecx + edx*4]
mov edx, dword [0x90c2ac]
xor esi, dword [edx + eax*4]
call ebx
cmp dword [esp + 0x58], esi
jne 0x52deed
mov eax, dword [ebp + 0xb8]
mov dword [esp + 0x18], eax
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52dc9f
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], 1
push ecx
jmp 0x52dcc2
mov eax, dword [esi + 0x2c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
xor eax, edx
mov edx, eax
shr edx, 3
mov ecx, dword [ecx + edx*4]
xor ecx, dword [esi + eax*4]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x58], ecx
push edx
call ebx
mov eax, dword [ebp + 0xc0]
mov dword [esp + 0x18], eax
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52dcf2
mov ecx, dword [esp + 0x10]
mov esi, 1
push ecx
jmp 0x52dd1b
mov eax, dword [esi + 0x2c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
xor eax, edx
mov edx, eax
shr edx, 3
mov dword [esp + 0x18], esi
mov esi, dword [ecx + edx*4]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + eax*4]
mov eax, dword [esp + 0x10]
xor esi, ecx
push eax
call ebx
cmp dword [esp + 0x58], esi
jne 0x52deed
call fcn.00554f6c
cdq
mov ecx, 0xa
idiv ecx
mov eax, dword [ebp + 0xb0]
push 1
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov ecx, dword [ebp + 0xb8]
mov dword [esp + 0x18], ecx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52dd83
mov edx, dword [esp + 0x10]
mov dword [esp + 0x58], 1
push edx
jmp 0x52dda8
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov ecx, dword [edx + ecx*4]
mov edx, dword [esi + eax*4]
mov eax, dword [esp + 0x10]
xor ecx, edx
mov dword [esp + 0x58], ecx
push eax
call ebx
mov ecx, dword [0x5e56d8]
mov dword [esp + 0x18], ecx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52ddd3
mov esi, 1
jmp 0x52ddf5
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x18], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x18]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x10]
push edx
call ebx
mov eax, dword [esp + 0x58]
inc eax
cdq
idiv esi
mov ecx, dword [ebp + 0xb8]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], edx
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov edx, dword [ebp + 0xc0]
mov dword [esp + 0x18], edx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52de4e
mov dword [esp + 0x58], 1
jmp 0x52de6c
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov ecx, dword [edx + ecx*4]
xor ecx, dword [esi + eax*4]
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0x10]
push eax
call ebx
mov ecx, dword [0x5e56d8]
mov dword [esp + 0x18], ecx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52de9c
mov esi, 1
jmp 0x52debe
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x18], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x18]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x10]
push edx
call ebx
mov eax, dword [esp + 0x58]
add eax, 9
cdq
idiv esi
mov ecx, dword [ebp + 0xc0]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], edx
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
cmp dword [esp + 0x78], 3
jge 0x52e0bc
mov edx, dword [0x887734]
cmp byte [edx + 0x24286], 2
je 0x52e0bc
mov eax, dword [ebp + 0xd4]
mov dword [esp + 0x18], eax
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52df36
mov ecx, dword [esp + 0x10]
push ecx
call ebx
jmp 0x52df69
mov eax, dword [esi + 0x2c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
xor eax, edx
mov edx, eax
shr edx, 3
mov dword [esp + 0x18], esi
mov esi, dword [ecx + edx*4]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + eax*4]
mov eax, dword [esp + 0x10]
push eax
xor esi, ecx
call ebx
test esi, esi
jle 0x52e0bc
mov edx, dword [ebp + 0x90]
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], 1
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov ecx, dword [ebp + 0xc0]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 0
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov edx, dword [ebp + 0xc0]
mov dword [esp + 0x18], edx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52dfdb
mov eax, dword [esp + 0x10]
mov esi, 1
push eax
jmp 0x52e002
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x18], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x18]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x10]
push edx
call ebx
mov ecx, dword [ebp + 0xb8]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], esi
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x18], edx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52e04b
mov esi, 1
jmp 0x52e065
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov edi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov esi, dword [edx + ecx*4]
xor esi, dword [edi + eax*4]
mov eax, dword [esp + 0x10]
push eax
call ebx
mov edx, dword [ebp + 0xb0]
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], esi
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
lea eax, [esp + 0x20]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.0042e1d0
mov edx, dword [esp + 0x24]
push 1
push edx
mov dword [esp + 0x28], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004ce8c0
mov edi, eax
call fcn.0040afb0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0xa
jl 0x52e295
mov ecx, dword [0x887734]
mov dl, byte [ecx + 0x24286]
mov ecx, dword [esp + 0x78]
xor eax, eax
cmp dl, 2
sete al
lea eax, [eax + eax + 0x10]
cmp ecx, eax
jge 0x52e295
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x18], edx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52e116
mov eax, dword [esp + 0x10]
push eax
call ebx
jmp 0x52e147
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x18], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x18]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x10]
push edx
call ebx
test esi, esi
jle 0x52e295
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 2
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 1
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov ecx, dword [ebp + 0xc0]
mov dword [esp + 0x18], ecx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52e1b4
mov esi, 1
jmp 0x52e1d6
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x18], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x18]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x10]
push edx
call ebx
mov ecx, dword [ebp + 0xb8]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], esi
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x18], edx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52e224
mov esi, 1
jmp 0x52e23e
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov edi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov esi, dword [edx + ecx*4]
xor esi, dword [edi + eax*4]
mov eax, dword [esp + 0x10]
push eax
call ebx
mov edx, dword [ebp + 0xb0]
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], esi
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
lea eax, [esp + 0x28]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.0042e1d0
mov edx, dword [esp + 0x2c]
push 1
push edx
mov dword [esp + 0x30], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004ce8c0
mov edi, eax
call fcn.0040afb0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0x14
jl 0x52e471
mov ecx, dword [0x887734]
mov dl, byte [ecx + 0x24286]
mov ecx, dword [esp + 0x78]
xor eax, eax
cmp dl, 2
setne al
lea eax, [eax*4 + 0x1a]
cmp ecx, eax
jge 0x52e471
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x18], edx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52e2f2
mov eax, dword [esp + 0x10]
push eax
call ebx
jmp 0x52e323
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x18], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x18]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x10]
push edx
call ebx
test esi, esi
jle 0x52e471
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 3
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 2
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov ecx, dword [ebp + 0xc0]
mov dword [esp + 0x18], ecx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52e390
mov esi, 1
jmp 0x52e3b2
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x18], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x18]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x10]
push edx
call ebx
mov ecx, dword [ebp + 0xb8]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], esi
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x18], edx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52e400
mov esi, 1
jmp 0x52e41a
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov edi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov esi, dword [edx + ecx*4]
xor esi, dword [edi + eax*4]
mov eax, dword [esp + 0x10]
push eax
call ebx
mov edx, dword [ebp + 0xb0]
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], esi
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
lea eax, [esp + 0x30]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.0042e1d0
mov edx, dword [esp + 0x34]
push 1
push edx
mov dword [esp + 0x38], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004ce8c0
mov edi, eax
call fcn.0040afb0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0x1e
jl 0x52e64d
mov ecx, dword [0x887734]
mov dl, byte [ecx + 0x24286]
mov ecx, dword [esp + 0x78]
xor eax, eax
cmp dl, 2
setne al
lea eax, [eax*4 + 0x24]
cmp ecx, eax
jge 0x52e64d
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x18], edx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52e4ce
mov eax, dword [esp + 0x10]
push eax
call ebx
jmp 0x52e4ff
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x18], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x18]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x10]
push edx
call ebx
test esi, esi
jle 0x52e64d
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 4
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 3
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov ecx, dword [ebp + 0xc0]
mov dword [esp + 0x18], ecx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52e56c
mov esi, 1
jmp 0x52e58e
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x18], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x18]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x10]
push edx
call ebx
mov ecx, dword [ebp + 0xb8]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], esi
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x18], edx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52e5dc
mov esi, 1
jmp 0x52e5f6
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov edi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov esi, dword [edx + ecx*4]
xor esi, dword [edi + eax*4]
mov eax, dword [esp + 0x10]
push eax
call ebx
mov edx, dword [ebp + 0xb0]
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], esi
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
lea eax, [esp + 0x38]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.0042e1d0
mov edx, dword [esp + 0x3c]
push 1
push edx
mov dword [esp + 0x40], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004ce8c0
mov edi, eax
call fcn.0040afb0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0x28
jl 0x52e829
mov ecx, dword [0x887734]
mov dl, byte [ecx + 0x24286]
mov ecx, dword [esp + 0x78]
xor eax, eax
cmp dl, 2
setne al
dec eax
and eax, 0xfffffffb
add eax, 0x30
cmp ecx, eax
jge 0x52e829
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x18], edx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52e6aa
mov eax, dword [esp + 0x10]
push eax
call ebx
jmp 0x52e6db
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x18], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x18]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x10]
push edx
call ebx
test esi, esi
jle 0x52e829
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 5
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 4
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov ecx, dword [ebp + 0xc0]
mov dword [esp + 0x18], ecx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52e748
mov esi, 1
jmp 0x52e76a
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x18], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x18]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x10]
push edx
call ebx
mov ecx, dword [ebp + 0xb8]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], esi
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x18], edx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52e7b8
mov esi, 1
jmp 0x52e7d2
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov edi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov esi, dword [edx + ecx*4]
xor esi, dword [edi + eax*4]
mov eax, dword [esp + 0x10]
push eax
call ebx
mov edx, dword [ebp + 0xb0]
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], esi
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
lea eax, [esp + 0x40]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.0042e1d0
mov edx, dword [esp + 0x44]
push 1
push edx
mov dword [esp + 0x48], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004ce8c0
mov edi, eax
call fcn.0040afb0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x32
jl 0x52e941
cmp eax, 0x34
jge 0x52e941
mov eax, dword [0x887734]
cmp byte [eax + 0x24286], 2
je 0x52e941
mov ecx, dword [ebp + 0xd4]
mov dword [esp + 0x18], ecx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52e87c
mov edx, dword [esp + 0x10]
push edx
call ebx
jmp 0x52e8ad
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x18], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x18]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x10]
push edx
call ebx
test esi, esi
jle 0x52e941
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 6
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 5
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
lea edi, [ebp + 0xb4]
lea ecx, [ebp + 0xbc]
call fcn.00417be0
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417be0
lea ecx, [esp + 0x48]
push ecx
lea edx, [ebp + 0xd0]
push edx
call fcn.0042e1d0
mov eax, dword [esp + 0x4c]
push 1
push eax
mov dword [esp + 0x50], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004ce8c0
mov edi, eax
call fcn.0040afb0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x3c
jl 0x52ea5a
cmp eax, 0x3e
jge 0x52ea5a
mov ecx, dword [0x887734]
cmp byte [ecx + 0x24286], 2
je 0x52ea5a
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x18], edx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52e995
mov eax, dword [esp + 0x10]
push eax
call ebx
jmp 0x52e9c6
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x18], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x18]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x10]
push edx
call ebx
test esi, esi
jle 0x52ea5a
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 7
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 6
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
lea edi, [ebp + 0xb4]
lea ecx, [ebp + 0xbc]
call fcn.00417be0
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417be0
lea ecx, [esp + 0x50]
push ecx
lea edx, [ebp + 0xd0]
push edx
call fcn.0042e1d0
mov eax, dword [esp + 0x54]
push 1
push eax
mov dword [esp + 0x58], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004ce8c0
mov edi, eax
call fcn.0040afb0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x46
jl 0x52eb73
cmp eax, 0x4b
jge 0x52eb73
mov ecx, dword [0x887734]
cmp byte [ecx + 0x24286], 2
je 0x52eb73
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x18], edx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52eaae
mov eax, dword [esp + 0x10]
push eax
call ebx
jmp 0x52eadf
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x18], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x18]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x10]
push edx
call ebx
test esi, esi
jle 0x52eb73
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 8
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 7
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
lea edi, [ebp + 0xb4]
lea ecx, [ebp + 0xbc]
call fcn.00417be0
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417be0
lea ecx, [esp + 0x58]
push ecx
lea edx, [ebp + 0xd0]
push edx
call fcn.0042e1d0
mov eax, dword [esp + 0x5c]
push 1
push eax
mov dword [esp + 0x60], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004ce8c0
mov edi, eax
call fcn.0040afb0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x50
jl 0x52ec82
cmp eax, 0x54
jge 0x52ec82
mov ecx, dword [0x887734]
cmp byte [ecx + 0x24286], 2
je 0x52ec82
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x18], edx
call fcn.004ce8c0
mov esi, eax
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x14], eax
call edi
mov al, byte [esi + 0x30]
test al, al
je 0x52ebc7
mov eax, dword [esp + 0x10]
push eax
call ebx
jmp 0x52ebf2
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x24]
mov edi, dword [esi + 0x1c]
xor eax, ecx
mov ecx, eax
shr ecx, 3
mov esi, dword [edx + ecx*4]
mov edx, dword [edi + eax*4]
mov eax, dword [esp + 0x10]
push eax
xor esi, edx
call ebx
test esi, esi
jle 0x52ec82
mov edx, dword [ebp + 0x90]
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], 9
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov ecx, dword [ebp + 0xc0]
push 1
lea eax, [esp + 0x1c]
lea ebx, [ebp + 0xbc]
push eax
push ecx
mov dword [esp + 0x24], 8
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
lea edi, [ebp + 0xb4]
mov ecx, ebx
call fcn.00417be0
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417be0
lea edx, [esp + 0x18]
push edx
lea eax, [ebp + 0xd0]
push eax
call fcn.0042e1d0
mov ecx, dword [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x20], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004ce8c0
mov edi, eax
call fcn.0040afb0
mov eax, dword [esp + 0x78]
cmp eax, 0x5a
jl 0x52ed69
cmp eax, 0x5c
jge 0x52ed69
mov edx, dword [0x887734]
cmp byte [edx + 0x24286], 2
je 0x52ed69
mov ecx, dword [ebp + 0xd4]
lea eax, [esp + 0x58]
push eax
push ecx
call fcn.004ce8c0
mov ebx, 1
mov esi, eax
call fcn.00403230
mov eax, dword [esp + 0x58]
test eax, eax
jle 0x52ed69
mov eax, dword [ebp + 0x90]
push ebx
lea edx, [esp + 0x7c]
push edx
push eax
mov dword [esp + 0x84], 0xa
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov edx, dword [ebp + 0xc0]
push 1
lea ecx, [esp + 0x7c]
lea ebx, [ebp + 0xbc]
push ecx
push edx
mov dword [esp + 0x84], 9
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
lea edi, [ebp + 0xb4]
mov ecx, ebx
call fcn.00417be0
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417be0
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.0042e1d0
mov edx, dword [esp + 0x14]
push 1
push edx
mov dword [esp + 0x18], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004ce8c0
mov edi, eax
call fcn.0040afb0
mov ecx, dword [esp + 0x68]
pop edi
pop esi
mov dword [ebp + 0xc4], 0
mov dword [ebp + 0xc8], 1
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4