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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x567642
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 0x8872dc
call fcn.00447150
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x52ad30
push 1
sub eax, ecx
mov ecx, dword [ebp + 0xcc]
push eax
push 0x1c
push 0x1e
add ecx, 0x668a0
push ecx
push 0x8872dc
call fcn.00447150
push eax
push esi
call fcn.004212a0
mov ebx, dword [0x5e2728]
call fcn.004cc430
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 0x52ad84
mov esi, 1
jmp 0x52ad9a
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.0055244c
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 [0x90900c], 1
jne 0x52adf7
or dword [0x90900c], 1
push 0x908fc0
mov dword [esp + 0x74], 0
call fcn.004cc0a0
push 0x56dcc0
call fcn.00550a75
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov esi, dword [edi]
push 0x908ff4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [0x908ff0]
test al, al
push 0x908ff4
je 0x52ae19
mov esi, 1
jmp 0x52ae39
mov eax, dword [0x908fec]
mov ecx, dword [0x908fe4]
xor esi, eax
mov eax, esi
mov edx, eax
shr edx, 3
mov esi, dword [ecx + edx*4]
mov edx, dword [0x908fdc]
xor esi, dword [edx + eax*4]
call ebx
test byte [0x90900c], 1
mov dword [esp + 0x18], esi
jne 0x52ae7e
mov esi, dword [0x90900c]
mov eax, 1
or esi, eax
mov dword [0x90900c], esi
push 0x908fc0
mov dword [esp + 0x74], eax
call fcn.004cc0a0
push 0x56dcc0
call fcn.00550a75
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, 0x908fc0
call fcn.0040ae50
test byte [0x90900c], 1
jne 0x52aeca
or dword [0x90900c], 1
push 0x908fc0
mov dword [esp + 0x74], 2
call fcn.004cc0a0
push 0x56dcc0
call fcn.00550a75
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov esi, dword [0x5e26d8]
push 0x908ff4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [0x908ff0]
test al, al
push 0x908ff4
je 0x52aef0
mov esi, 1
jmp 0x52af10
mov eax, dword [0x908fec]
mov ecx, dword [0x908fe4]
xor esi, eax
mov eax, esi
mov edx, eax
shr edx, 3
mov esi, dword [ecx + edx*4]
mov edx, dword [0x908fdc]
xor esi, dword [edx + eax*4]
call ebx
call fcn.0055244c
cdq
idiv esi
test byte [0x90900c], 1
mov dword [esp + 0x18], edx
jne 0x52af55
or dword [0x90900c], 1
push 0x908fc0
mov dword [esp + 0x74], 3
call fcn.004cc0a0
push 0x56dcc0
call fcn.00550a75
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov ecx, dword [edi]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov esi, 0x908fc0
call fcn.0040ae50
mov eax, dword [esp + 0x10]
add edi, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x52adc0
test byte [0x90900c], 1
mov dword [esp + 0x18], 0
jne 0x52afba
or dword [0x90900c], 1
push 0x908fc0
mov dword [esp + 0x74], 4
call fcn.004cc0a0
push 0x56dcc0
call fcn.00550a75
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, 0x908fc0
call fcn.0040ae50
test byte [0x90900c], 1
jne 0x52b009
or dword [0x90900c], 1
push 0x908fc0
mov dword [esp + 0x74], 5
call fcn.004cc0a0
push 0x56dcc0
call fcn.00550a75
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 0xb0]
push 0x908ff4
call edi
mov al, byte [0x908ff0]
test al, al
push 0x908ff4
je 0x52b034
mov dword [esp + 0x5c], 1
jmp 0x52b057
mov ecx, dword [0x908fec]
mov edx, dword [0x908fe4]
xor esi, ecx
mov ecx, esi
shr ecx, 3
mov eax, dword [edx + ecx*4]
mov ecx, dword [0x908fdc]
xor eax, dword [ecx + esi*4]
mov dword [esp + 0x5c], eax
call ebx
test byte [0x90900c], 1
jne 0x52b090
or dword [0x90900c], 1
push 0x908fc0
mov dword [esp + 0x74], 6
call fcn.004cc0a0
push 0x56dcc0
call fcn.00550a75
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov esi, dword [ebp + 0xb8]
push 0x908ff4
call edi
mov al, byte [0x908ff0]
test al, al
push 0x908ff4
je 0x52b0b2
mov esi, 1
jmp 0x52b0d2
mov eax, dword [0x908fec]
mov ecx, dword [0x908fe4]
xor esi, eax
mov eax, esi
mov edx, eax
shr edx, 3
mov esi, dword [ecx + edx*4]
mov edx, dword [0x908fdc]
xor esi, dword [edx + eax*4]
call ebx
cmp dword [esp + 0x58], esi
jne 0x52b35d
mov eax, dword [ebp + 0xb8]
mov dword [esp + 0x18], eax
call fcn.004cc430
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 0x52b10f
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], 1
push ecx
jmp 0x52b132
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.004cc430
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 0x52b162
mov ecx, dword [esp + 0x10]
mov esi, 1
push ecx
jmp 0x52b18b
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 0x52b35d
call fcn.0055244c
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.004cc430
mov esi, eax
call fcn.0040ae50
mov ecx, dword [ebp + 0xb8]
mov dword [esp + 0x18], ecx
call fcn.004cc430
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 0x52b1f3
mov edx, dword [esp + 0x10]
mov dword [esp + 0x58], 1
push edx
jmp 0x52b218
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 [0x5e26d8]
mov dword [esp + 0x18], ecx
call fcn.004cc430
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 0x52b243
mov esi, 1
jmp 0x52b265
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.004cc430
mov esi, eax
call fcn.0040ae50
mov edx, dword [ebp + 0xc0]
mov dword [esp + 0x18], edx
call fcn.004cc430
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 0x52b2be
mov dword [esp + 0x58], 1
jmp 0x52b2dc
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 [0x5e26d8]
mov dword [esp + 0x18], ecx
call fcn.004cc430
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 0x52b30c
mov esi, 1
jmp 0x52b32e
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.004cc430
mov esi, eax
call fcn.0040ae50
cmp dword [esp + 0x78], 3
jge 0x52b52c
mov edx, dword [0x884634]
cmp byte [edx + 0x24246], 2
je 0x52b52c
mov eax, dword [ebp + 0xd4]
mov dword [esp + 0x18], eax
call fcn.004cc430
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 0x52b3a6
mov ecx, dword [esp + 0x10]
push ecx
call ebx
jmp 0x52b3d9
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 0x52b52c
mov edx, dword [ebp + 0x90]
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], 1
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
mov ecx, dword [ebp + 0xc0]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 0
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
mov edx, dword [ebp + 0xc0]
mov dword [esp + 0x18], edx
call fcn.004cc430
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 0x52b44b
mov eax, dword [esp + 0x10]
mov esi, 1
push eax
jmp 0x52b472
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.004cc430
mov esi, eax
call fcn.0040ae50
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x18], edx
call fcn.004cc430
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 0x52b4bb
mov esi, 1
jmp 0x52b4d5
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.004cc430
mov esi, eax
call fcn.0040ae50
lea eax, [esp + 0x20]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.0042dc50
mov edx, dword [esp + 0x24]
push 1
push edx
mov dword [esp + 0x28], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cc430
mov edi, eax
call fcn.0040af50
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0xa
jl 0x52b705
mov ecx, dword [0x884634]
mov dl, byte [ecx + 0x24246]
mov ecx, dword [esp + 0x78]
xor eax, eax
cmp dl, 2
sete al
lea eax, [eax + eax + 0x10]
cmp ecx, eax
jge 0x52b705
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x18], edx
call fcn.004cc430
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 0x52b586
mov eax, dword [esp + 0x10]
push eax
call ebx
jmp 0x52b5b7
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 0x52b705
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 2
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 1
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
mov ecx, dword [ebp + 0xc0]
mov dword [esp + 0x18], ecx
call fcn.004cc430
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 0x52b624
mov esi, 1
jmp 0x52b646
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.004cc430
mov esi, eax
call fcn.0040ae50
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x18], edx
call fcn.004cc430
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 0x52b694
mov esi, 1
jmp 0x52b6ae
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.004cc430
mov esi, eax
call fcn.0040ae50
lea eax, [esp + 0x28]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.0042dc50
mov edx, dword [esp + 0x2c]
push 1
push edx
mov dword [esp + 0x30], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cc430
mov edi, eax
call fcn.0040af50
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0x14
jl 0x52b8e1
mov ecx, dword [0x884634]
mov dl, byte [ecx + 0x24246]
mov ecx, dword [esp + 0x78]
xor eax, eax
cmp dl, 2
setne al
lea eax, [eax*4 + 0x1a]
cmp ecx, eax
jge 0x52b8e1
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x18], edx
call fcn.004cc430
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 0x52b762
mov eax, dword [esp + 0x10]
push eax
call ebx
jmp 0x52b793
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 0x52b8e1
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 3
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 2
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
mov ecx, dword [ebp + 0xc0]
mov dword [esp + 0x18], ecx
call fcn.004cc430
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 0x52b800
mov esi, 1
jmp 0x52b822
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.004cc430
mov esi, eax
call fcn.0040ae50
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x18], edx
call fcn.004cc430
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 0x52b870
mov esi, 1
jmp 0x52b88a
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.004cc430
mov esi, eax
call fcn.0040ae50
lea eax, [esp + 0x30]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.0042dc50
mov edx, dword [esp + 0x34]
push 1
push edx
mov dword [esp + 0x38], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cc430
mov edi, eax
call fcn.0040af50
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0x1e
jl 0x52babd
mov ecx, dword [0x884634]
mov dl, byte [ecx + 0x24246]
mov ecx, dword [esp + 0x78]
xor eax, eax
cmp dl, 2
setne al
lea eax, [eax*4 + 0x24]
cmp ecx, eax
jge 0x52babd
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x18], edx
call fcn.004cc430
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 0x52b93e
mov eax, dword [esp + 0x10]
push eax
call ebx
jmp 0x52b96f
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 0x52babd
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 4
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 3
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
mov ecx, dword [ebp + 0xc0]
mov dword [esp + 0x18], ecx
call fcn.004cc430
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 0x52b9dc
mov esi, 1
jmp 0x52b9fe
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.004cc430
mov esi, eax
call fcn.0040ae50
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x18], edx
call fcn.004cc430
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 0x52ba4c
mov esi, 1
jmp 0x52ba66
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.004cc430
mov esi, eax
call fcn.0040ae50
lea eax, [esp + 0x38]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.0042dc50
mov edx, dword [esp + 0x3c]
push 1
push edx
mov dword [esp + 0x40], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cc430
mov edi, eax
call fcn.0040af50
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0x28
jl 0x52bc99
mov ecx, dword [0x884634]
mov dl, byte [ecx + 0x24246]
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 0x52bc99
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x18], edx
call fcn.004cc430
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 0x52bb1a
mov eax, dword [esp + 0x10]
push eax
call ebx
jmp 0x52bb4b
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 0x52bc99
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 5
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 4
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
mov ecx, dword [ebp + 0xc0]
mov dword [esp + 0x18], ecx
call fcn.004cc430
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 0x52bbb8
mov esi, 1
jmp 0x52bbda
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.004cc430
mov esi, eax
call fcn.0040ae50
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x18], edx
call fcn.004cc430
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 0x52bc28
mov esi, 1
jmp 0x52bc42
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.004cc430
mov esi, eax
call fcn.0040ae50
lea eax, [esp + 0x40]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.0042dc50
mov edx, dword [esp + 0x44]
push 1
push edx
mov dword [esp + 0x48], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cc430
mov edi, eax
call fcn.0040af50
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x32
jl 0x52bdb1
cmp eax, 0x34
jge 0x52bdb1
mov eax, dword [0x884634]
cmp byte [eax + 0x24246], 2
je 0x52bdb1
mov ecx, dword [ebp + 0xd4]
mov dword [esp + 0x18], ecx
call fcn.004cc430
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 0x52bcec
mov edx, dword [esp + 0x10]
push edx
call ebx
jmp 0x52bd1d
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 0x52bdb1
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 6
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 5
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
lea edi, [ebp + 0xb4]
lea ecx, [ebp + 0xbc]
call fcn.00417ac0
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417ac0
lea ecx, [esp + 0x48]
push ecx
lea edx, [ebp + 0xd0]
push edx
call fcn.0042dc50
mov eax, dword [esp + 0x4c]
push 1
push eax
mov dword [esp + 0x50], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cc430
mov edi, eax
call fcn.0040af50
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x3c
jl 0x52beca
cmp eax, 0x3e
jge 0x52beca
mov ecx, dword [0x884634]
cmp byte [ecx + 0x24246], 2
je 0x52beca
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x18], edx
call fcn.004cc430
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 0x52be05
mov eax, dword [esp + 0x10]
push eax
call ebx
jmp 0x52be36
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 0x52beca
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 7
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 6
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
lea edi, [ebp + 0xb4]
lea ecx, [ebp + 0xbc]
call fcn.00417ac0
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417ac0
lea ecx, [esp + 0x50]
push ecx
lea edx, [ebp + 0xd0]
push edx
call fcn.0042dc50
mov eax, dword [esp + 0x54]
push 1
push eax
mov dword [esp + 0x58], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cc430
mov edi, eax
call fcn.0040af50
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x46
jl 0x52bfe3
cmp eax, 0x4b
jge 0x52bfe3
mov ecx, dword [0x884634]
cmp byte [ecx + 0x24246], 2
je 0x52bfe3
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x18], edx
call fcn.004cc430
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 0x52bf1e
mov eax, dword [esp + 0x10]
push eax
call ebx
jmp 0x52bf4f
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 0x52bfe3
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 8
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 7
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
lea edi, [ebp + 0xb4]
lea ecx, [ebp + 0xbc]
call fcn.00417ac0
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417ac0
lea ecx, [esp + 0x58]
push ecx
lea edx, [ebp + 0xd0]
push edx
call fcn.0042dc50
mov eax, dword [esp + 0x5c]
push 1
push eax
mov dword [esp + 0x60], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cc430
mov edi, eax
call fcn.0040af50
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x50
jl 0x52c0f2
cmp eax, 0x54
jge 0x52c0f2
mov ecx, dword [0x884634]
cmp byte [ecx + 0x24246], 2
je 0x52c0f2
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x18], edx
call fcn.004cc430
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 0x52c037
mov eax, dword [esp + 0x10]
push eax
call ebx
jmp 0x52c062
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 0x52c0f2
mov edx, dword [ebp + 0x90]
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], 9
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
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.004cc430
mov esi, eax
call fcn.0040ae50
lea edi, [ebp + 0xb4]
mov ecx, ebx
call fcn.00417ac0
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417ac0
lea edx, [esp + 0x18]
push edx
lea eax, [ebp + 0xd0]
push eax
call fcn.0042dc50
mov ecx, dword [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x20], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cc430
mov edi, eax
call fcn.0040af50
mov eax, dword [esp + 0x78]
cmp eax, 0x5a
jl 0x52c1d9
cmp eax, 0x5c
jge 0x52c1d9
mov edx, dword [0x884634]
cmp byte [edx + 0x24246], 2
je 0x52c1d9
mov ecx, dword [ebp + 0xd4]
lea eax, [esp + 0x58]
push eax
push ecx
call fcn.004cc430
mov ebx, 1
mov esi, eax
call fcn.00403200
mov eax, dword [esp + 0x58]
test eax, eax
jle 0x52c1d9
mov eax, dword [ebp + 0x90]
push ebx
lea edx, [esp + 0x7c]
push edx
push eax
mov dword [esp + 0x84], 0xa
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
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.004cc430
mov esi, eax
call fcn.0040ae50
lea edi, [ebp + 0xb4]
mov ecx, ebx
call fcn.00417ac0
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417ac0
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.0042dc50
mov edx, dword [esp + 0x14]
push 1
push edx
mov dword [esp + 0x18], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cc430
mov edi, eax
call fcn.0040af50
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