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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x575852
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 0x897640
call fcn.0044dea0
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5380d0
push 1
sub eax, ecx
mov ecx, dword [ebp + 0xcc]
push eax
push 0x1c
push 0x1e
add ecx, 0x668a0
push ecx
push 0x897640
call fcn.0044dea0
push eax
push esi
call fcn.00423780
mov ebx, dword [0x5f0778]
call fcn.004cee70
mov esi, eax
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x2c]
test al, al
push edi
je 0x538124
mov esi, 1
jmp 0x538135
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
mov edx, ebx
shr edx, 3
mov esi, dword [eax + edx*4]
xor esi, dword [ecx + ebx*4]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call ebx
call fcn.005605d0
cdq
idiv esi
lea eax, [ebp + 0xb0]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x78], edx
jmp 0x538160
test byte [0x922440], 1
jne 0x538197
or dword [0x922440], 1
push 0x9223f8
mov dword [esp + 0x74], 0
call fcn.004ceae0
push 0x57cea0
call fcn.0055e9d1
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov edx, dword [esp + 0x10]
mov edi, dword [edx]
push 0x922428
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [0x922424]
test al, al
push 0x922428
je 0x5381bd
mov esi, 1
jmp 0x5381d4
mov ecx, dword [0x92241c]
mov edx, dword [0x922414]
mov eax, edi
shr eax, 3
mov esi, dword [ecx + eax*4]
xor esi, dword [edx + edi*4]
call ebx
test byte [0x922440], 1
mov dword [esp + 0x20], esi
jne 0x538219
mov esi, dword [0x922440]
mov eax, 1
or esi, eax
mov dword [0x922440], esi
push 0x9223f8
mov dword [esp + 0x74], eax
call fcn.004ceae0
push 0x57cea0
call fcn.0055e9d1
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx - 0x18]
push 1
lea eax, [esp + 0x24]
push eax
push edx
mov esi, 0x9223f8
call fcn.0040adb0
test byte [0x922440], 1
jne 0x538269
or dword [0x922440], 1
push 0x9223f8
mov dword [esp + 0x74], 2
call fcn.004ceae0
push 0x57cea0
call fcn.0055e9d1
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov edi, dword [0x5f0728]
push 0x922428
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [0x922424]
test al, al
push 0x922428
je 0x53828f
mov esi, 1
jmp 0x5382a6
mov ecx, dword [0x92241c]
mov edx, dword [0x922414]
mov eax, edi
shr eax, 3
mov esi, dword [ecx + eax*4]
xor esi, dword [edx + edi*4]
call ebx
call fcn.005605d0
cdq
idiv esi
test byte [0x922440], 1
mov dword [esp + 0x20], edx
jne 0x5382eb
or dword [0x922440], 1
push 0x9223f8
mov dword [esp + 0x74], 3
call fcn.004ceae0
push 0x57cea0
call fcn.0055e9d1
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov edi, dword [esp + 0x10]
mov ecx, dword [edi]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov esi, 0x9223f8
call fcn.0040adb0
mov eax, dword [esp + 0x18]
add edi, 8
dec eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
jne 0x538160
test byte [0x922440], 1
mov dword [esp + 0x20], 0
jne 0x538358
or dword [0x922440], 1
push 0x9223f8
mov dword [esp + 0x74], 4
call fcn.004ceae0
push 0x57cea0
call fcn.0055e9d1
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [ebp + 0x90]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov esi, 0x9223f8
call fcn.0040adb0
test byte [0x922440], 1
jne 0x5383a7
or dword [0x922440], 1
push 0x9223f8
mov dword [esp + 0x74], 5
call fcn.004ceae0
push 0x57cea0
call fcn.0055e9d1
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 0xb0]
push 0x922428
call edi
mov al, byte [0x922424]
test al, al
push 0x922428
je 0x5383d2
mov dword [esp + 0x5c], 1
jmp 0x5383ed
mov edx, dword [0x92241c]
mov ecx, esi
shr ecx, 3
mov eax, dword [edx + ecx*4]
mov ecx, dword [0x922414]
xor eax, dword [ecx + esi*4]
mov dword [esp + 0x5c], eax
call ebx
test byte [0x922440], 1
jne 0x538426
or dword [0x922440], 1
push 0x9223f8
mov dword [esp + 0x74], 6
call fcn.004ceae0
push 0x57cea0
call fcn.0055e9d1
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov edx, dword [ebp + 0xb8]
push 0x922428
mov dword [esp + 0x24], edx
call edi
mov al, byte [0x922424]
test al, al
push 0x922428
je 0x53844c
mov esi, 1
jmp 0x538467
mov eax, dword [esp + 0x24]
mov edx, dword [0x92241c]
mov ecx, eax
shr ecx, 3
mov esi, dword [edx + ecx*4]
mov ecx, dword [0x922414]
xor esi, dword [ecx + eax*4]
call ebx
cmp dword [esp + 0x58], esi
jne 0x5386de
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x20], edx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x5384a4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], 1
push eax
jmp 0x5384c4
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov edx, ecx
shr edx, 3
mov eax, dword [eax + edx*4]
mov edx, dword [esi + ecx*4]
mov ecx, dword [esp + 0x18]
xor eax, edx
mov dword [esp + 0x58], eax
push ecx
call ebx
mov edx, dword [ebp + 0xc0]
mov dword [esp + 0x20], edx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x5384f4
mov eax, dword [esp + 0x18]
mov esi, 1
push eax
jmp 0x538516
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x20], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x20]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x18]
push edx
call ebx
cmp dword [esp + 0x58], esi
jne 0x5386de
call fcn.005605d0
cdq
mov ecx, 0xa
idiv ecx
mov eax, dword [ebp + 0xb0]
push 1
mov dword [esp + 0x24], edx
lea edx, [esp + 0x24]
push edx
push eax
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov ecx, dword [ebp + 0xb8]
mov dword [esp + 0x20], ecx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x53857e
mov edx, dword [esp + 0x18]
mov dword [esp + 0x58], 1
push edx
jmp 0x53859c
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov eax, ecx
shr eax, 3
mov eax, dword [edx + eax*4]
xor eax, dword [esi + ecx*4]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
push eax
call ebx
mov ecx, dword [0x5f0728]
mov dword [esp + 0x20], ecx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x5385c7
mov esi, 1
jmp 0x5385e4
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x20], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x20]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x18]
push edx
call ebx
mov eax, dword [esp + 0x58]
inc eax
cdq
idiv esi
mov ecx, dword [ebp + 0xb8]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], edx
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov edx, dword [ebp + 0xc0]
mov dword [esp + 0x20], edx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x538642
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], 1
push eax
jmp 0x538662
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov edx, ecx
shr edx, 3
mov eax, dword [eax + edx*4]
mov edx, dword [esi + ecx*4]
mov ecx, dword [esp + 0x18]
xor eax, edx
mov dword [esp + 0x58], eax
push ecx
call ebx
mov edx, dword [0x5f0728]
mov dword [esp + 0x20], edx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x538692
mov eax, dword [esp + 0x18]
mov esi, 1
push eax
jmp 0x5386b4
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x20], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x20]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x18]
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 + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], edx
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
cmp dword [esp + 0x78], 3
jge 0x53889e
mov edx, dword [0x8927a4]
cmp byte [edx + 0x2457a], 2
je 0x53889e
mov eax, dword [ebp + 0xd4]
mov dword [esp + 0x20], eax
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x538727
mov ecx, dword [esp + 0x18]
push ecx
call ebx
jmp 0x538755
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov edx, eax
shr edx, 3
mov dword [esp + 0x20], esi
mov esi, dword [ecx + edx*4]
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + eax*4]
mov eax, dword [esp + 0x18]
push eax
xor esi, ecx
call ebx
test esi, esi
jle 0x53889e
mov edx, dword [ebp + 0x90]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], 1
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov ecx, dword [ebp + 0xc0]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 0
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov edx, dword [ebp + 0xc0]
mov dword [esp + 0x20], edx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x5387c7
mov eax, dword [esp + 0x18]
mov esi, 1
push eax
jmp 0x5387e9
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x20], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x20]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x18]
push edx
call ebx
mov ecx, dword [ebp + 0xb8]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], esi
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x20], edx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x538832
mov esi, 1
jmp 0x538847
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov edi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov esi, dword [edx + ecx*4]
xor esi, dword [edi + eax*4]
mov eax, dword [esp + 0x18]
push eax
call ebx
mov edx, dword [ebp + 0xb0]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], esi
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.00432700
mov edx, dword [esp + 0x14]
push 1
push edx
mov dword [esp + 0x18], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cee70
mov edi, eax
call fcn.0040aeb0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0xa
jl 0x538a68
mov ecx, dword [0x8927a4]
mov dl, byte [ecx + 0x2457a]
mov ecx, dword [esp + 0x78]
xor eax, eax
cmp dl, 2
sete al
lea eax, [eax + eax + 0x10]
cmp ecx, eax
jge 0x538a68
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x20], edx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x5388f8
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x538924
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x20], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x20]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x18]
push edx
call ebx
test esi, esi
jle 0x538a68
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 2
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 1
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov ecx, dword [ebp + 0xc0]
mov dword [esp + 0x20], ecx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x538991
mov esi, 1
jmp 0x5389ae
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x20], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x20]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x18]
push edx
call ebx
mov ecx, dword [ebp + 0xb8]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], esi
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x20], edx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x5389fc
mov esi, 1
jmp 0x538a11
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov edi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov esi, dword [edx + ecx*4]
xor esi, dword [edi + eax*4]
mov eax, dword [esp + 0x18]
push eax
call ebx
mov edx, dword [ebp + 0xb0]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], esi
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
lea eax, [esp + 0x28]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.00432700
mov edx, dword [esp + 0x2c]
push 1
push edx
mov dword [esp + 0x30], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cee70
mov edi, eax
call fcn.0040aeb0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0x14
jl 0x538c35
mov ecx, dword [0x8927a4]
mov dl, byte [ecx + 0x2457a]
mov ecx, dword [esp + 0x78]
xor eax, eax
cmp dl, 2
setne al
lea eax, [eax*4 + 0x1a]
cmp ecx, eax
jge 0x538c35
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x20], edx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x538ac5
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x538af1
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x20], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x20]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x18]
push edx
call ebx
test esi, esi
jle 0x538c35
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 3
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 2
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov ecx, dword [ebp + 0xc0]
mov dword [esp + 0x20], ecx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x538b5e
mov esi, 1
jmp 0x538b7b
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x20], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x20]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x18]
push edx
call ebx
mov ecx, dword [ebp + 0xb8]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], esi
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x20], edx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x538bc9
mov esi, 1
jmp 0x538bde
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov edi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov esi, dword [edx + ecx*4]
xor esi, dword [edi + eax*4]
mov eax, dword [esp + 0x18]
push eax
call ebx
mov edx, dword [ebp + 0xb0]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], esi
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
lea eax, [esp + 0x30]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.00432700
mov edx, dword [esp + 0x34]
push 1
push edx
mov dword [esp + 0x38], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cee70
mov edi, eax
call fcn.0040aeb0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0x1e
jl 0x538e02
mov ecx, dword [0x8927a4]
mov dl, byte [ecx + 0x2457a]
mov ecx, dword [esp + 0x78]
xor eax, eax
cmp dl, 2
setne al
lea eax, [eax*4 + 0x24]
cmp ecx, eax
jge 0x538e02
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x20], edx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x538c92
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x538cbe
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x20], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x20]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x18]
push edx
call ebx
test esi, esi
jle 0x538e02
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 4
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 3
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov ecx, dword [ebp + 0xc0]
mov dword [esp + 0x20], ecx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x538d2b
mov esi, 1
jmp 0x538d48
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x20], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x20]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x18]
push edx
call ebx
mov ecx, dword [ebp + 0xb8]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], esi
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x20], edx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x538d96
mov esi, 1
jmp 0x538dab
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov edi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov esi, dword [edx + ecx*4]
xor esi, dword [edi + eax*4]
mov eax, dword [esp + 0x18]
push eax
call ebx
mov edx, dword [ebp + 0xb0]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], esi
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
lea eax, [esp + 0x38]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.00432700
mov edx, dword [esp + 0x3c]
push 1
push edx
mov dword [esp + 0x40], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cee70
mov edi, eax
call fcn.0040aeb0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0x28
jl 0x538fcf
mov ecx, dword [0x8927a4]
mov dl, byte [ecx + 0x2457a]
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 0x538fcf
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x20], edx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x538e5f
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x538e8b
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x20], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x20]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x18]
push edx
call ebx
test esi, esi
jle 0x538fcf
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 5
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 4
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov ecx, dword [ebp + 0xc0]
mov dword [esp + 0x20], ecx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x538ef8
mov esi, 1
jmp 0x538f15
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x20], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x20]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x18]
push edx
call ebx
mov ecx, dword [ebp + 0xb8]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], esi
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x20], edx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x538f63
mov esi, 1
jmp 0x538f78
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov edi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov esi, dword [edx + ecx*4]
xor esi, dword [edi + eax*4]
mov eax, dword [esp + 0x18]
push eax
call ebx
mov edx, dword [ebp + 0xb0]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], esi
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
lea eax, [esp + 0x40]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.00432700
mov edx, dword [esp + 0x44]
push 1
push edx
mov dword [esp + 0x48], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cee70
mov edi, eax
call fcn.0040aeb0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x32
jl 0x5390e2
cmp eax, 0x34
jge 0x5390e2
mov eax, dword [0x8927a4]
cmp byte [eax + 0x2457a], 2
je 0x5390e2
mov ecx, dword [ebp + 0xd4]
mov dword [esp + 0x20], ecx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x539022
mov edx, dword [esp + 0x18]
push edx
call ebx
jmp 0x53904e
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x20], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x20]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x18]
push edx
call ebx
test esi, esi
jle 0x5390e2
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 6
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 5
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
lea edi, [ebp + 0xb4]
lea ecx, [ebp + 0xbc]
call fcn.00417af0
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417af0
lea ecx, [esp + 0x48]
push ecx
lea edx, [ebp + 0xd0]
push edx
call fcn.00432700
mov eax, dword [esp + 0x4c]
push 1
push eax
mov dword [esp + 0x50], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cee70
mov edi, eax
call fcn.0040aeb0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x3c
jl 0x5391f6
cmp eax, 0x3e
jge 0x5391f6
mov ecx, dword [0x8927a4]
cmp byte [ecx + 0x2457a], 2
je 0x5391f6
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x20], edx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x539136
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x539162
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x20], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x20]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x18]
push edx
call ebx
test esi, esi
jle 0x5391f6
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 7
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 6
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
lea edi, [ebp + 0xb4]
lea ecx, [ebp + 0xbc]
call fcn.00417af0
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417af0
lea ecx, [esp + 0x50]
push ecx
lea edx, [ebp + 0xd0]
push edx
call fcn.00432700
mov eax, dword [esp + 0x54]
push 1
push eax
mov dword [esp + 0x58], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cee70
mov edi, eax
call fcn.0040aeb0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x46
jl 0x53930a
cmp eax, 0x4b
jge 0x53930a
mov ecx, dword [0x8927a4]
cmp byte [ecx + 0x2457a], 2
je 0x53930a
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x20], edx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x53924a
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x539276
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x20], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x20]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x18]
push edx
call ebx
test esi, esi
jle 0x53930a
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 8
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 7
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
lea edi, [ebp + 0xb4]
lea ecx, [ebp + 0xbc]
call fcn.00417af0
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417af0
lea ecx, [esp + 0x58]
push ecx
lea edx, [ebp + 0xd0]
push edx
call fcn.00432700
mov eax, dword [esp + 0x5c]
push 1
push eax
mov dword [esp + 0x60], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cee70
mov edi, eax
call fcn.0040aeb0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x50
jl 0x53941e
cmp eax, 0x54
jge 0x53941e
mov ecx, dword [0x8927a4]
cmp byte [ecx + 0x2457a], 2
je 0x53941e
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x20], edx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x53935e
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x53938a
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x20], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x20]
xor esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x18]
push edx
call ebx
test esi, esi
jle 0x53941e
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 9
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 8
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
lea edi, [ebp + 0xb4]
lea ecx, [ebp + 0xbc]
call fcn.00417af0
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417af0
lea ecx, [esp + 0x20]
push ecx
lea edx, [ebp + 0xd0]
push edx
call fcn.00432700
mov eax, dword [esp + 0x24]
push 1
push eax
mov dword [esp + 0x28], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cee70
mov edi, eax
call fcn.0040aeb0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x5a
jl 0x53952e
cmp eax, 0x5c
jge 0x53952e
mov ecx, dword [0x8927a4]
cmp byte [ecx + 0x2457a], 2
je 0x53952e
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x20], edx
call fcn.004cee70
mov esi, eax
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x7c], eax
call edi
mov al, byte [esi + 0x2c]
test al, al
je 0x539472
mov eax, dword [esp + 0x78]
push eax
call ebx
jmp 0x539498
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x24]
mov edi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov esi, dword [edx + ecx*4]
mov edx, dword [edi + eax*4]
mov eax, dword [esp + 0x78]
push eax
xor esi, edx
call ebx
test esi, esi
jle 0x53952e
mov edx, dword [ebp + 0x90]
push 1
lea ecx, [esp + 0x7c]
push ecx
push edx
mov dword [esp + 0x84], 0xa
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov ecx, dword [ebp + 0xc0]
push 1
lea eax, [esp + 0x7c]
lea ebx, [ebp + 0xbc]
push eax
push ecx
mov dword [esp + 0x84], 9
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
lea edi, [ebp + 0xb4]
mov ecx, ebx
call fcn.00417af0
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417af0
lea edx, [esp + 0x18]
push edx
lea eax, [ebp + 0xd0]
push eax
call fcn.00432700
mov ecx, dword [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x20], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004cee70
mov edi, eax
call fcn.0040aeb0
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