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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x55fb02
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 + 0xd4]
mov ecx, 0x34
mov edi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0xc8]
add eax, 0x668a0
push eax
push 0x87e094
call fcn.004454c0
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x524c80
push 1
sub eax, ecx
mov ecx, dword [ebp + 0xc8]
push eax
push 0x1c
push 0x1e
add ecx, 0x668a0
push ecx
push 0x87e094
call fcn.004454c0
push eax
push esi
call fcn.00420340
mov ebx, dword [0x5d96e8]
call fcn.004c7160
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 0x524cd4
mov esi, 1
jmp 0x524ce5
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.0054ad4a
cdq
idiv esi
lea eax, [ebp + 0xac]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x78], edx
jmp 0x524d10
test byte [0x8ffc08], 1
jne 0x524d47
or dword [0x8ffc08], 1
push 0x8ffbc0
mov dword [esp + 0x74], 0
call fcn.004c6de0
push 0x566120
call fcn.00549335
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov edx, dword [esp + 0x10]
mov edi, dword [edx]
push 0x8ffbf0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [0x8ffbec]
test al, al
push 0x8ffbf0
je 0x524d6d
mov esi, 1
jmp 0x524d84
mov ecx, dword [0x8ffbe4]
mov edx, dword [0x8ffbdc]
mov eax, edi
shr eax, 3
mov esi, dword [ecx + eax*4]
xor esi, dword [edx + edi*4]
call ebx
test byte [0x8ffc08], 1
mov dword [esp + 0x20], esi
jne 0x524dc9
mov esi, dword [0x8ffc08]
mov eax, 1
or esi, eax
mov dword [0x8ffc08], esi
push 0x8ffbc0
mov dword [esp + 0x74], eax
call fcn.004c6de0
push 0x566120
call fcn.00549335
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, 0x8ffbc0
call fcn.0040ad80
test byte [0x8ffc08], 1
jne 0x524e19
or dword [0x8ffc08], 1
push 0x8ffbc0
mov dword [esp + 0x74], 2
call fcn.004c6de0
push 0x566120
call fcn.00549335
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov edi, dword [0x5d9698]
push 0x8ffbf0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [0x8ffbec]
test al, al
push 0x8ffbf0
je 0x524e3f
mov esi, 1
jmp 0x524e56
mov ecx, dword [0x8ffbe4]
mov edx, dword [0x8ffbdc]
mov eax, edi
shr eax, 3
mov esi, dword [ecx + eax*4]
xor esi, dword [edx + edi*4]
call ebx
call fcn.0054ad4a
cdq
idiv esi
test byte [0x8ffc08], 1
mov dword [esp + 0x20], edx
jne 0x524e9b
or dword [0x8ffc08], 1
push 0x8ffbc0
mov dword [esp + 0x74], 3
call fcn.004c6de0
push 0x566120
call fcn.00549335
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, 0x8ffbc0
call fcn.0040ad80
mov eax, dword [esp + 0x18]
add edi, 8
dec eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
jne 0x524d10
test byte [0x8ffc08], 1
mov dword [esp + 0x20], 0
jne 0x524f08
or dword [0x8ffc08], 1
push 0x8ffbc0
mov dword [esp + 0x74], 4
call fcn.004c6de0
push 0x566120
call fcn.00549335
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [ebp + 0x8c]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov esi, 0x8ffbc0
call fcn.0040ad80
test byte [0x8ffc08], 1
jne 0x524f57
or dword [0x8ffc08], 1
push 0x8ffbc0
mov dword [esp + 0x74], 5
call fcn.004c6de0
push 0x566120
call fcn.00549335
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 0xac]
push 0x8ffbf0
call edi
mov al, byte [0x8ffbec]
test al, al
push 0x8ffbf0
je 0x524f82
mov dword [esp + 0x5c], 1
jmp 0x524f9d
mov edx, dword [0x8ffbe4]
mov ecx, esi
shr ecx, 3
mov eax, dword [edx + ecx*4]
mov ecx, dword [0x8ffbdc]
xor eax, dword [ecx + esi*4]
mov dword [esp + 0x5c], eax
call ebx
test byte [0x8ffc08], 1
jne 0x524fd6
or dword [0x8ffc08], 1
push 0x8ffbc0
mov dword [esp + 0x74], 6
call fcn.004c6de0
push 0x566120
call fcn.00549335
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov edx, dword [ebp + 0xb4]
push 0x8ffbf0
mov dword [esp + 0x24], edx
call edi
mov al, byte [0x8ffbec]
test al, al
push 0x8ffbf0
je 0x524ffc
mov esi, 1
jmp 0x525017
mov eax, dword [esp + 0x24]
mov edx, dword [0x8ffbe4]
mov ecx, eax
shr ecx, 3
mov esi, dword [edx + ecx*4]
mov ecx, dword [0x8ffbdc]
xor esi, dword [ecx + eax*4]
call ebx
cmp dword [esp + 0x58], esi
jne 0x52528e
mov edx, dword [ebp + 0xb4]
mov dword [esp + 0x20], edx
call fcn.004c7160
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 0x525054
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], 1
push eax
jmp 0x525074
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 + 0xbc]
mov dword [esp + 0x20], edx
call fcn.004c7160
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 0x5250a4
mov eax, dword [esp + 0x18]
mov esi, 1
push eax
jmp 0x5250c6
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 0x52528e
call fcn.0054ad4a
cdq
mov ecx, 0xa
idiv ecx
mov eax, dword [ebp + 0xac]
push 1
mov dword [esp + 0x24], edx
lea edx, [esp + 0x24]
push edx
push eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov ecx, dword [ebp + 0xb4]
mov dword [esp + 0x20], ecx
call fcn.004c7160
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 0x52512e
mov edx, dword [esp + 0x18]
mov dword [esp + 0x58], 1
push edx
jmp 0x52514c
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 [0x5d9698]
mov dword [esp + 0x20], ecx
call fcn.004c7160
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 0x525177
mov esi, 1
jmp 0x525194
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 + 0xb4]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], edx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [ebp + 0xbc]
mov dword [esp + 0x20], edx
call fcn.004c7160
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 0x5251f2
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], 1
push eax
jmp 0x525212
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 [0x5d9698]
mov dword [esp + 0x20], edx
call fcn.004c7160
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 0x525242
mov eax, dword [esp + 0x18]
mov esi, 1
push eax
jmp 0x525264
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 + 0xbc]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], edx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
cmp dword [esp + 0x78], 3
jge 0x52544e
mov edx, dword [0x87b40c]
cmp byte [edx + 0x240ee], 2
je 0x52544e
mov eax, dword [ebp + 0xd0]
mov dword [esp + 0x20], eax
call fcn.004c7160
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 0x5252d7
mov ecx, dword [esp + 0x18]
push ecx
call ebx
jmp 0x525305
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 0x52544e
mov edx, dword [ebp + 0x8c]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], 1
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov ecx, dword [ebp + 0xbc]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 0
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [ebp + 0xbc]
mov dword [esp + 0x20], edx
call fcn.004c7160
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 0x525377
mov eax, dword [esp + 0x18]
mov esi, 1
push eax
jmp 0x525399
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 + 0xb4]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], esi
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [ebp + 0xb4]
mov dword [esp + 0x20], edx
call fcn.004c7160
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 0x5253e2
mov esi, 1
jmp 0x5253f7
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 + 0xac]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], esi
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0xcc]
push ecx
call fcn.0042c5a0
mov edx, dword [esp + 0x14]
push 1
push edx
mov dword [esp + 0x18], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004c7160
mov edi, eax
call fcn.0040ae80
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0xa
jl 0x525618
mov ecx, dword [0x87b40c]
mov dl, byte [ecx + 0x240ee]
mov ecx, dword [esp + 0x78]
xor eax, eax
cmp dl, 2
sete al
lea eax, [eax + eax + 0x10]
cmp ecx, eax
jge 0x525618
mov edx, dword [ebp + 0xd0]
mov dword [esp + 0x20], edx
call fcn.004c7160
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 0x5254a8
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x5254d4
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 0x525618
mov ecx, dword [ebp + 0x8c]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 2
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebp + 0xbc]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 1
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov ecx, dword [ebp + 0xbc]
mov dword [esp + 0x20], ecx
call fcn.004c7160
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 0x525541
mov esi, 1
jmp 0x52555e
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 + 0xb4]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], esi
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [ebp + 0xb4]
mov dword [esp + 0x20], edx
call fcn.004c7160
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 0x5255ac
mov esi, 1
jmp 0x5255c1
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 + 0xac]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], esi
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
lea eax, [esp + 0x28]
push eax
lea ecx, [ebp + 0xcc]
push ecx
call fcn.0042c5a0
mov edx, dword [esp + 0x2c]
push 1
push edx
mov dword [esp + 0x30], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004c7160
mov edi, eax
call fcn.0040ae80
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0x14
jl 0x5257e5
mov ecx, dword [0x87b40c]
mov dl, byte [ecx + 0x240ee]
mov ecx, dword [esp + 0x78]
xor eax, eax
cmp dl, 2
setne al
lea eax, [eax*4 + 0x1a]
cmp ecx, eax
jge 0x5257e5
mov edx, dword [ebp + 0xd0]
mov dword [esp + 0x20], edx
call fcn.004c7160
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 0x525675
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x5256a1
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 0x5257e5
mov ecx, dword [ebp + 0x8c]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 3
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebp + 0xbc]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 2
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov ecx, dword [ebp + 0xbc]
mov dword [esp + 0x20], ecx
call fcn.004c7160
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 0x52570e
mov esi, 1
jmp 0x52572b
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 + 0xb4]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], esi
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [ebp + 0xb4]
mov dword [esp + 0x20], edx
call fcn.004c7160
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 0x525779
mov esi, 1
jmp 0x52578e
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 + 0xac]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], esi
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
lea eax, [esp + 0x30]
push eax
lea ecx, [ebp + 0xcc]
push ecx
call fcn.0042c5a0
mov edx, dword [esp + 0x34]
push 1
push edx
mov dword [esp + 0x38], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004c7160
mov edi, eax
call fcn.0040ae80
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0x1e
jl 0x5259b2
mov ecx, dword [0x87b40c]
mov dl, byte [ecx + 0x240ee]
mov ecx, dword [esp + 0x78]
xor eax, eax
cmp dl, 2
setne al
lea eax, [eax*4 + 0x24]
cmp ecx, eax
jge 0x5259b2
mov edx, dword [ebp + 0xd0]
mov dword [esp + 0x20], edx
call fcn.004c7160
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 0x525842
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x52586e
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 0x5259b2
mov ecx, dword [ebp + 0x8c]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 4
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebp + 0xbc]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 3
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov ecx, dword [ebp + 0xbc]
mov dword [esp + 0x20], ecx
call fcn.004c7160
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 0x5258db
mov esi, 1
jmp 0x5258f8
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 + 0xb4]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], esi
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [ebp + 0xb4]
mov dword [esp + 0x20], edx
call fcn.004c7160
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 0x525946
mov esi, 1
jmp 0x52595b
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 + 0xac]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], esi
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
lea eax, [esp + 0x38]
push eax
lea ecx, [ebp + 0xcc]
push ecx
call fcn.0042c5a0
mov edx, dword [esp + 0x3c]
push 1
push edx
mov dword [esp + 0x40], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004c7160
mov edi, eax
call fcn.0040ae80
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0x28
jl 0x525b7f
mov ecx, dword [0x87b40c]
mov dl, byte [ecx + 0x240ee]
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 0x525b7f
mov edx, dword [ebp + 0xd0]
mov dword [esp + 0x20], edx
call fcn.004c7160
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 0x525a0f
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x525a3b
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 0x525b7f
mov ecx, dword [ebp + 0x8c]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 5
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebp + 0xbc]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 4
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov ecx, dword [ebp + 0xbc]
mov dword [esp + 0x20], ecx
call fcn.004c7160
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 0x525aa8
mov esi, 1
jmp 0x525ac5
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 + 0xb4]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], esi
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [ebp + 0xb4]
mov dword [esp + 0x20], edx
call fcn.004c7160
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 0x525b13
mov esi, 1
jmp 0x525b28
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 + 0xac]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], esi
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
lea eax, [esp + 0x40]
push eax
lea ecx, [ebp + 0xcc]
push ecx
call fcn.0042c5a0
mov edx, dword [esp + 0x44]
push 1
push edx
mov dword [esp + 0x48], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004c7160
mov edi, eax
call fcn.0040ae80
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x32
jl 0x525c92
cmp eax, 0x34
jge 0x525c92
mov eax, dword [0x87b40c]
cmp byte [eax + 0x240ee], 2
je 0x525c92
mov ecx, dword [ebp + 0xd0]
mov dword [esp + 0x20], ecx
call fcn.004c7160
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 0x525bd2
mov edx, dword [esp + 0x18]
push edx
call ebx
jmp 0x525bfe
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 0x525c92
mov ecx, dword [ebp + 0x8c]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 6
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebp + 0xbc]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 5
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
lea edi, [ebp + 0xb0]
lea ecx, [ebp + 0xb8]
call fcn.00416c90
lea edi, [ebp + 0xa8]
mov ecx, eax
call fcn.00416c90
lea ecx, [esp + 0x48]
push ecx
lea edx, [ebp + 0xcc]
push edx
call fcn.0042c5a0
mov eax, dword [esp + 0x4c]
push 1
push eax
mov dword [esp + 0x50], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004c7160
mov edi, eax
call fcn.0040ae80
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x3c
jl 0x525da6
cmp eax, 0x3e
jge 0x525da6
mov ecx, dword [0x87b40c]
cmp byte [ecx + 0x240ee], 2
je 0x525da6
mov edx, dword [ebp + 0xd0]
mov dword [esp + 0x20], edx
call fcn.004c7160
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 0x525ce6
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x525d12
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 0x525da6
mov ecx, dword [ebp + 0x8c]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 7
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebp + 0xbc]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 6
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
lea edi, [ebp + 0xb0]
lea ecx, [ebp + 0xb8]
call fcn.00416c90
lea edi, [ebp + 0xa8]
mov ecx, eax
call fcn.00416c90
lea ecx, [esp + 0x50]
push ecx
lea edx, [ebp + 0xcc]
push edx
call fcn.0042c5a0
mov eax, dword [esp + 0x54]
push 1
push eax
mov dword [esp + 0x58], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004c7160
mov edi, eax
call fcn.0040ae80
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x46
jl 0x525eba
cmp eax, 0x4b
jge 0x525eba
mov ecx, dword [0x87b40c]
cmp byte [ecx + 0x240ee], 2
je 0x525eba
mov edx, dword [ebp + 0xd0]
mov dword [esp + 0x20], edx
call fcn.004c7160
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 0x525dfa
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x525e26
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 0x525eba
mov ecx, dword [ebp + 0x8c]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 8
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebp + 0xbc]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 7
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
lea edi, [ebp + 0xb0]
lea ecx, [ebp + 0xb8]
call fcn.00416c90
lea edi, [ebp + 0xa8]
mov ecx, eax
call fcn.00416c90
lea ecx, [esp + 0x58]
push ecx
lea edx, [ebp + 0xcc]
push edx
call fcn.0042c5a0
mov eax, dword [esp + 0x5c]
push 1
push eax
mov dword [esp + 0x60], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004c7160
mov edi, eax
call fcn.0040ae80
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x50
jl 0x525fce
cmp eax, 0x54
jge 0x525fce
mov ecx, dword [0x87b40c]
cmp byte [ecx + 0x240ee], 2
je 0x525fce
mov edx, dword [ebp + 0xd0]
mov dword [esp + 0x20], edx
call fcn.004c7160
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 0x525f0e
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x525f3a
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 0x525fce
mov ecx, dword [ebp + 0x8c]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 9
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebp + 0xbc]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 8
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
lea edi, [ebp + 0xb0]
lea ecx, [ebp + 0xb8]
call fcn.00416c90
lea edi, [ebp + 0xa8]
mov ecx, eax
call fcn.00416c90
lea ecx, [esp + 0x20]
push ecx
lea edx, [ebp + 0xcc]
push edx
call fcn.0042c5a0
mov eax, dword [esp + 0x24]
push 1
push eax
mov dword [esp + 0x28], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004c7160
mov edi, eax
call fcn.0040ae80
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x5a
jl 0x5260de
cmp eax, 0x5c
jge 0x5260de
mov ecx, dword [0x87b40c]
cmp byte [ecx + 0x240ee], 2
je 0x5260de
mov edx, dword [ebp + 0xd0]
mov dword [esp + 0x20], edx
call fcn.004c7160
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 0x526022
mov eax, dword [esp + 0x78]
push eax
call ebx
jmp 0x526048
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 0x5260de
mov edx, dword [ebp + 0x8c]
push 1
lea ecx, [esp + 0x7c]
push ecx
push edx
mov dword [esp + 0x84], 0xa
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov ecx, dword [ebp + 0xbc]
push 1
lea eax, [esp + 0x7c]
lea ebx, [ebp + 0xb8]
push eax
push ecx
mov dword [esp + 0x84], 9
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
lea edi, [ebp + 0xb0]
mov ecx, ebx
call fcn.00416c90
lea edi, [ebp + 0xa8]
mov ecx, eax
call fcn.00416c90
lea edx, [esp + 0x18]
push edx
lea eax, [ebp + 0xcc]
push eax
call fcn.0042c5a0
mov ecx, dword [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x20], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004c7160
mov edi, eax
call fcn.0040ae80
mov ecx, dword [esp + 0x68]
pop edi
pop esi
mov dword [ebp + 0xc0], 0
mov dword [ebp + 0xc4], 1
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4