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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x582232
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 0x8a3708
call fcn.0044ee40
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x544a50
push 1
sub eax, ecx
mov ecx, dword [ebp + 0xcc]
push eax
push 0x1c
push 0x1e
add ecx, 0x668a0
push ecx
push 0x8a3708
call fcn.0044ee40
push eax
push esi
call fcn.00423c00
mov ebx, dword [0x5fc7b0]
call fcn.004d3720
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 0x544aa4
mov esi, 1
jmp 0x544ab5
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.0056ce40
cdq
idiv esi
lea eax, [ebp + 0xb0]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x78], edx
jmp 0x544ae0
test byte [0x92e648], 1
jne 0x544b17
or dword [0x92e648], 1
push 0x92e600
mov dword [esp + 0x74], 0
call fcn.004d3390
push 0x589b40
call fcn.0056b241
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov edx, dword [esp + 0x10]
mov edi, dword [edx]
push 0x92e630
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [0x92e62c]
test al, al
push 0x92e630
je 0x544b3d
mov esi, 1
jmp 0x544b54
mov ecx, dword [0x92e624]
mov edx, dword [0x92e61c]
mov eax, edi
shr eax, 3
mov esi, dword [ecx + eax*4]
xor esi, dword [edx + edi*4]
call ebx
test byte [0x92e648], 1
mov dword [esp + 0x20], esi
jne 0x544b99
mov esi, dword [0x92e648]
mov eax, 1
or esi, eax
mov dword [0x92e648], esi
push 0x92e600
mov dword [esp + 0x74], eax
call fcn.004d3390
push 0x589b40
call fcn.0056b241
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, 0x92e600
call fcn.0040ae40
test byte [0x92e648], 1
jne 0x544be9
or dword [0x92e648], 1
push 0x92e600
mov dword [esp + 0x74], 2
call fcn.004d3390
push 0x589b40
call fcn.0056b241
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov edi, dword [0x5fc760]
push 0x92e630
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [0x92e62c]
test al, al
push 0x92e630
je 0x544c0f
mov esi, 1
jmp 0x544c26
mov ecx, dword [0x92e624]
mov edx, dword [0x92e61c]
mov eax, edi
shr eax, 3
mov esi, dword [ecx + eax*4]
xor esi, dword [edx + edi*4]
call ebx
call fcn.0056ce40
cdq
idiv esi
test byte [0x92e648], 1
mov dword [esp + 0x20], edx
jne 0x544c6b
or dword [0x92e648], 1
push 0x92e600
mov dword [esp + 0x74], 3
call fcn.004d3390
push 0x589b40
call fcn.0056b241
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, 0x92e600
call fcn.0040ae40
mov eax, dword [esp + 0x18]
add edi, 8
dec eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
jne 0x544ae0
test byte [0x92e648], 1
mov dword [esp + 0x20], 0
jne 0x544cd8
or dword [0x92e648], 1
push 0x92e600
mov dword [esp + 0x74], 4
call fcn.004d3390
push 0x589b40
call fcn.0056b241
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, 0x92e600
call fcn.0040ae40
test byte [0x92e648], 1
jne 0x544d27
or dword [0x92e648], 1
push 0x92e600
mov dword [esp + 0x74], 5
call fcn.004d3390
push 0x589b40
call fcn.0056b241
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 0xb0]
push 0x92e630
call edi
mov al, byte [0x92e62c]
test al, al
push 0x92e630
je 0x544d52
mov dword [esp + 0x5c], 1
jmp 0x544d6d
mov edx, dword [0x92e624]
mov ecx, esi
shr ecx, 3
mov eax, dword [edx + ecx*4]
mov ecx, dword [0x92e61c]
xor eax, dword [ecx + esi*4]
mov dword [esp + 0x5c], eax
call ebx
test byte [0x92e648], 1
jne 0x544da6
or dword [0x92e648], 1
push 0x92e600
mov dword [esp + 0x74], 6
call fcn.004d3390
push 0x589b40
call fcn.0056b241
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov edx, dword [ebp + 0xb8]
push 0x92e630
mov dword [esp + 0x24], edx
call edi
mov al, byte [0x92e62c]
test al, al
push 0x92e630
je 0x544dcc
mov esi, 1
jmp 0x544de7
mov eax, dword [esp + 0x24]
mov edx, dword [0x92e624]
mov ecx, eax
shr ecx, 3
mov esi, dword [edx + ecx*4]
mov ecx, dword [0x92e61c]
xor esi, dword [ecx + eax*4]
call ebx
cmp dword [esp + 0x58], esi
jne 0x54505e
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x20], edx
call fcn.004d3720
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 0x544e24
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], 1
push eax
jmp 0x544e44
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.004d3720
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 0x544e74
mov eax, dword [esp + 0x18]
mov esi, 1
push eax
jmp 0x544e96
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 0x54505e
call fcn.0056ce40
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.004d3720
mov esi, eax
call fcn.0040ae40
mov ecx, dword [ebp + 0xb8]
mov dword [esp + 0x20], ecx
call fcn.004d3720
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 0x544efe
mov edx, dword [esp + 0x18]
mov dword [esp + 0x58], 1
push edx
jmp 0x544f1c
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 [0x5fc760]
mov dword [esp + 0x20], ecx
call fcn.004d3720
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 0x544f47
mov esi, 1
jmp 0x544f64
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.004d3720
mov esi, eax
call fcn.0040ae40
mov edx, dword [ebp + 0xc0]
mov dword [esp + 0x20], edx
call fcn.004d3720
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 0x544fc2
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], 1
push eax
jmp 0x544fe2
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 [0x5fc760]
mov dword [esp + 0x20], edx
call fcn.004d3720
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 0x545012
mov eax, dword [esp + 0x18]
mov esi, 1
push eax
jmp 0x545034
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.004d3720
mov esi, eax
call fcn.0040ae40
cmp dword [esp + 0x78], 3
jge 0x54521e
mov edx, dword [0x89e864]
cmp byte [edx + 0x245f2], 2
je 0x54521e
mov eax, dword [ebp + 0xd4]
mov dword [esp + 0x20], eax
call fcn.004d3720
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 0x5450a7
mov ecx, dword [esp + 0x18]
push ecx
call ebx
jmp 0x5450d5
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 0x54521e
mov edx, dword [ebp + 0x90]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], 1
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov ecx, dword [ebp + 0xc0]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 0
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov edx, dword [ebp + 0xc0]
mov dword [esp + 0x20], edx
call fcn.004d3720
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 0x545147
mov eax, dword [esp + 0x18]
mov esi, 1
push eax
jmp 0x545169
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.004d3720
mov esi, eax
call fcn.0040ae40
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x20], edx
call fcn.004d3720
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 0x5451b2
mov esi, 1
jmp 0x5451c7
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.004d3720
mov esi, eax
call fcn.0040ae40
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.00432e60
mov edx, dword [esp + 0x14]
push 1
push edx
mov dword [esp + 0x18], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004d3720
mov edi, eax
call fcn.0040af40
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0xa
jl 0x5453e8
mov ecx, dword [0x89e864]
mov dl, byte [ecx + 0x245f2]
mov ecx, dword [esp + 0x78]
xor eax, eax
cmp dl, 2
sete al
lea eax, [eax + eax + 0x10]
cmp ecx, eax
jge 0x5453e8
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x20], edx
call fcn.004d3720
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 0x545278
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x5452a4
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 0x5453e8
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 2
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 1
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov ecx, dword [ebp + 0xc0]
mov dword [esp + 0x20], ecx
call fcn.004d3720
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 0x545311
mov esi, 1
jmp 0x54532e
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.004d3720
mov esi, eax
call fcn.0040ae40
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x20], edx
call fcn.004d3720
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 0x54537c
mov esi, 1
jmp 0x545391
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.004d3720
mov esi, eax
call fcn.0040ae40
lea eax, [esp + 0x28]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.00432e60
mov edx, dword [esp + 0x2c]
push 1
push edx
mov dword [esp + 0x30], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004d3720
mov edi, eax
call fcn.0040af40
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0x14
jl 0x5455b5
mov ecx, dword [0x89e864]
mov dl, byte [ecx + 0x245f2]
mov ecx, dword [esp + 0x78]
xor eax, eax
cmp dl, 2
setne al
lea eax, [eax*4 + 0x1a]
cmp ecx, eax
jge 0x5455b5
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x20], edx
call fcn.004d3720
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 0x545445
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x545471
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 0x5455b5
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 3
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 2
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov ecx, dword [ebp + 0xc0]
mov dword [esp + 0x20], ecx
call fcn.004d3720
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 0x5454de
mov esi, 1
jmp 0x5454fb
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.004d3720
mov esi, eax
call fcn.0040ae40
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x20], edx
call fcn.004d3720
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 0x545549
mov esi, 1
jmp 0x54555e
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.004d3720
mov esi, eax
call fcn.0040ae40
lea eax, [esp + 0x30]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.00432e60
mov edx, dword [esp + 0x34]
push 1
push edx
mov dword [esp + 0x38], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004d3720
mov edi, eax
call fcn.0040af40
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0x1e
jl 0x545782
mov ecx, dword [0x89e864]
mov dl, byte [ecx + 0x245f2]
mov ecx, dword [esp + 0x78]
xor eax, eax
cmp dl, 2
setne al
lea eax, [eax*4 + 0x24]
cmp ecx, eax
jge 0x545782
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x20], edx
call fcn.004d3720
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 0x545612
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x54563e
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 0x545782
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 4
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 3
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov ecx, dword [ebp + 0xc0]
mov dword [esp + 0x20], ecx
call fcn.004d3720
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 0x5456ab
mov esi, 1
jmp 0x5456c8
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.004d3720
mov esi, eax
call fcn.0040ae40
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x20], edx
call fcn.004d3720
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 0x545716
mov esi, 1
jmp 0x54572b
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.004d3720
mov esi, eax
call fcn.0040ae40
lea eax, [esp + 0x38]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.00432e60
mov edx, dword [esp + 0x3c]
push 1
push edx
mov dword [esp + 0x40], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004d3720
mov edi, eax
call fcn.0040af40
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x78], 0x28
jl 0x54594f
mov ecx, dword [0x89e864]
mov dl, byte [ecx + 0x245f2]
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 0x54594f
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x20], edx
call fcn.004d3720
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 0x5457df
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x54580b
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 0x54594f
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 5
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 4
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov ecx, dword [ebp + 0xc0]
mov dword [esp + 0x20], ecx
call fcn.004d3720
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 0x545878
mov esi, 1
jmp 0x545895
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.004d3720
mov esi, eax
call fcn.0040ae40
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x20], edx
call fcn.004d3720
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 0x5458e3
mov esi, 1
jmp 0x5458f8
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.004d3720
mov esi, eax
call fcn.0040ae40
lea eax, [esp + 0x40]
push eax
lea ecx, [ebp + 0xd0]
push ecx
call fcn.00432e60
mov edx, dword [esp + 0x44]
push 1
push edx
mov dword [esp + 0x48], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004d3720
mov edi, eax
call fcn.0040af40
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x32
jl 0x545a62
cmp eax, 0x34
jge 0x545a62
mov eax, dword [0x89e864]
cmp byte [eax + 0x245f2], 2
je 0x545a62
mov ecx, dword [ebp + 0xd4]
mov dword [esp + 0x20], ecx
call fcn.004d3720
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 0x5459a2
mov edx, dword [esp + 0x18]
push edx
call ebx
jmp 0x5459ce
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 0x545a62
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 6
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 5
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
lea edi, [ebp + 0xb4]
lea ecx, [ebp + 0xbc]
call fcn.00417f00
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417f00
lea ecx, [esp + 0x48]
push ecx
lea edx, [ebp + 0xd0]
push edx
call fcn.00432e60
mov eax, dword [esp + 0x4c]
push 1
push eax
mov dword [esp + 0x50], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004d3720
mov edi, eax
call fcn.0040af40
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x3c
jl 0x545b76
cmp eax, 0x3e
jge 0x545b76
mov ecx, dword [0x89e864]
cmp byte [ecx + 0x245f2], 2
je 0x545b76
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x20], edx
call fcn.004d3720
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 0x545ab6
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x545ae2
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 0x545b76
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 7
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 6
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
lea edi, [ebp + 0xb4]
lea ecx, [ebp + 0xbc]
call fcn.00417f00
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417f00
lea ecx, [esp + 0x50]
push ecx
lea edx, [ebp + 0xd0]
push edx
call fcn.00432e60
mov eax, dword [esp + 0x54]
push 1
push eax
mov dword [esp + 0x58], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004d3720
mov edi, eax
call fcn.0040af40
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x46
jl 0x545c8a
cmp eax, 0x4b
jge 0x545c8a
mov ecx, dword [0x89e864]
cmp byte [ecx + 0x245f2], 2
je 0x545c8a
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x20], edx
call fcn.004d3720
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 0x545bca
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x545bf6
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 0x545c8a
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 8
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 7
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
lea edi, [ebp + 0xb4]
lea ecx, [ebp + 0xbc]
call fcn.00417f00
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417f00
lea ecx, [esp + 0x58]
push ecx
lea edx, [ebp + 0xd0]
push edx
call fcn.00432e60
mov eax, dword [esp + 0x5c]
push 1
push eax
mov dword [esp + 0x60], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004d3720
mov edi, eax
call fcn.0040af40
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x50
jl 0x545d9e
cmp eax, 0x54
jge 0x545d9e
mov ecx, dword [0x89e864]
cmp byte [ecx + 0x245f2], 2
je 0x545d9e
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x20], edx
call fcn.004d3720
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 0x545cde
mov eax, dword [esp + 0x18]
push eax
call ebx
jmp 0x545d0a
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 0x545d9e
mov ecx, dword [ebp + 0x90]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], 9
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov eax, dword [ebp + 0xc0]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 8
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
lea edi, [ebp + 0xb4]
lea ecx, [ebp + 0xbc]
call fcn.00417f00
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417f00
lea ecx, [esp + 0x20]
push ecx
lea edx, [ebp + 0xd0]
push edx
call fcn.00432e60
mov eax, dword [esp + 0x24]
push 1
push eax
mov dword [esp + 0x28], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004d3720
mov edi, eax
call fcn.0040af40
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x78]
cmp eax, 0x5a
jl 0x545eae
cmp eax, 0x5c
jge 0x545eae
mov ecx, dword [0x89e864]
cmp byte [ecx + 0x245f2], 2
je 0x545eae
mov edx, dword [ebp + 0xd4]
mov dword [esp + 0x20], edx
call fcn.004d3720
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 0x545df2
mov eax, dword [esp + 0x78]
push eax
call ebx
jmp 0x545e18
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 0x545eae
mov edx, dword [ebp + 0x90]
push 1
lea ecx, [esp + 0x7c]
push ecx
push edx
mov dword [esp + 0x84], 0xa
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
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.004d3720
mov esi, eax
call fcn.0040ae40
lea edi, [ebp + 0xb4]
mov ecx, ebx
call fcn.00417f00
lea edi, [ebp + 0xac]
mov ecx, eax
call fcn.00417f00
lea edx, [esp + 0x18]
push edx
lea eax, [ebp + 0xd0]
push eax
call fcn.00432e60
mov ecx, dword [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x20], vtable.Xenesis2::Foundation::Memory::xEncryptData_int_.0
call fcn.004d3720
mov edi, eax
call fcn.0040af40
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