Function at 0x4aa290
Capabilities:
Check for software breakpoints
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x57a040]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], edi
mov ecx, dword [edi]
test ecx, ecx
js 0x4aa77c
cmp ecx, 0x1194
jge 0x4aa77c
mov eax, dword [ecx*4 + 0x20a514c]
cmp dword [eax + 4], 3
jne 0x4aa77c
movzx edx, word [eax + 0x78]
cmp edx, 1
je 0x4aa2e7
cmp edx, 6
jne 0x4aa77c
cmp byte [eax + 0xa], 0
jg 0x4aa77c
cmp byte [eax + 0x9c0], 0
jne 0x4aa77c
test byte [edi + 0x384], 3
jne 0x4aa77c
cmp dword [edi + 0x3e0], 0
je 0x4aa333
push 5
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x1bc05c1
push eax
push ecx
mov byte [esp + 0x1c], 0
call fcn.005192f0
jmp 0x4aa77c
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x30]
push 0
push 0xa
push eax
xorps xmm0, xmm0
mov word [esp + 0x44], 0
push esi
movq qword [esp + 0x40], xmm0
call fcn.00434b50
push 1
push esi
call fcn.00434ac0
mov ebx, eax
lea eax, [esp + 0x30]
push str.bless
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4aa37c
xor esi, esi
jmp 0x4aa47d
lea eax, [esp + 0x30]
push str.soul
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4aa39a
lea esi, [eax + 1]
jmp 0x4aa47d
lea eax, [esp + 0x30]
push str.life
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4aa3b8
lea esi, [eax + 2]
jmp 0x4aa47d
lea eax, [esp + 0x30]
push str.creation
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4aa3d6
lea esi, [eax + 3]
jmp 0x4aa47d
lea eax, [esp + 0x30]
push str.guardian
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4aa3f4
lea esi, [eax + 4]
jmp 0x4aa47d
lea eax, [esp + 0x30]
push 0x55c230
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4aa40f
lea esi, [eax + 5]
jmp 0x4aa47d
lea eax, [esp + 0x30]
push str.harmony
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4aa42a
lea esi, [eax + 6]
jmp 0x4aa47d
lea eax, [esp + 0x30]
push str.chaos
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4aa445
lea esi, [eax + 7]
jmp 0x4aa47d
lea eax, [esp + 0x30]
push str.lowstone
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4aa460
lea esi, [eax + 8]
jmp 0x4aa47d
lea eax, [esp + 0x30]
push str.highstone
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4aa703
lea esi, [eax + 9]
cmp ebx, 0xa
jne 0x4aa48c
mov dword [esp + 0x14], 0
jmp 0x4aa4ac
cmp ebx, 0x14
jne 0x4aa49b
mov dword [esp + 0x14], 1
jmp 0x4aa4ac
cmp ebx, 0x1e
jne 0x4aa703
mov dword [esp + 0x14], 2
mov edx, dword [edi + 0x390]
xor ebx, ebx
add edx, 6
mov dword [esp + 0x18], 0x2000
nop
movzx ecx, word [edx - 2]
mov eax, ecx
test cx, cx
js 0x4aa4e8
cmp ax, word [esp + 0x18]
jge 0x4aa4e8
push esi
call fcn.004a9970
movsx ecx, cx
cmp ecx, eax
jne 0x4aa4e8
movsx eax, word [edx]
cmp eax, dword [esp + 0x14]
je 0x4aa540
inc ebx
add edx, 0x10c
cmp ebx, 0xec
jl 0x4aa4c0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x336
push eax
lea eax, [esp + 0x20]
mov ecx, 0xa9b83c
push eax
call fcn.00405650
mov eax, dword [esp + 0x24]
mov ecx, dword [0xa9b83c]
cmp byte [eax + 0xd], 0
jne 0x4aa52c
cmp dword [eax + 0x10], 0x336
jle 0x4aa52e
mov eax, ecx
cmp eax, ecx
jne 0x4aa75d
push 0x336
jmp 0x4aa743
test ebx, ebx
js 0x4aa4f7
cmp ebx, 0xcc
jge 0x4aa4f7
push edi
mov dword [edi + 0x3e0], 1
xor ecx, ecx
call fcn.0049cfd0
sub eax, 0xc
xor edx, edx
mov dword [esp + 0x18], eax
test eax, eax
jle 0x4aa599
mov eax, dword [edi + 0x39c]
mov edi, dword [esp + 0x18]
mov dword [esp + 0xc], ebx
mov ebx, eax
nop dword [eax + eax]
cmp byte [ebx + edx], 0xff
lea eax, [ecx + 1]
cmovne eax, ecx
inc edx
mov ecx, eax
cmp edx, edi
jl 0x4aa580
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*4]
add eax, 5
add eax, eax
mov dword [esp + 0x14], eax
cmp ecx, eax
jge 0x4aa600
lea eax, [esp + 0xc]
mov dword [edi + 0x3e0], 0
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0x338
push eax
mov ecx, 0xa9b83c
call fcn.00405650
mov eax, dword [esp + 0x24]
mov ecx, dword [0xa9b83c]
cmp byte [eax + 0xd], 0
jne 0x4aa5ec
cmp dword [eax + 0x10], 0x338
jle 0x4aa5ee
mov eax, ecx
cmp eax, ecx
jne 0x4aa75d
push 0x338
jmp 0x4aa743
push ebx
push dword [edi]
call fcn.0049de90
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push 5
mov word [esp + 0x10], 0x5c1
mov byte [esp + 0x12], 0x28
mov byte [esp + 0x13], bl
mov byte [esp + 0x14], 1
call fcn.00526480
add esp, 4
push esi
call fcn.004a98d0
mov esi, eax
push 0
push 0xff
push 0
push 0
push 0
mov ecx, dword [edi]
mov dl, 0xeb
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push 0
push esi
push 0
push 0
call fcn.00472500
add esp, 0x40
sub dword [esp + 0x14], 1
jne 0x4aa635
lea eax, [esp + 0xc]
mov dword [edi + 0x3e0], 0
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0x337
push eax
mov ecx, 0xa9b83c
call fcn.00405650
mov eax, dword [esp + 0x24]
mov ecx, dword [0xa9b83c]
cmp byte [eax + 0xd], 0
jne 0x4aa6a9
cmp dword [eax + 0x10], 0x337
jle 0x4aa6ab
mov eax, ecx
cmp eax, ecx
jne 0x4aa6ce
push 0x337
push str.Could_not_find_message__d_
push 0xa9b7bc
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, 0xa9b7bc
jmp 0x4aa6d1
add eax, 0x18
push eax
push 0
push 0
push 0
push 0
push 0
push 1
push dword [edi]
push 0xb90558
call fcn.004cdc70
add esp, 0x24
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x335
push eax
lea eax, [esp + 0x20]
mov ecx, 0xa9b83c
push eax
call fcn.00405650
mov eax, dword [esp + 0x24]
mov ecx, dword [0xa9b83c]
cmp byte [eax + 0xd], 0
jne 0x4aa738
cmp dword [eax + 0x10], 0x335
jle 0x4aa73a
mov eax, ecx
cmp eax, ecx
jne 0x4aa75d
push 0x335
push str.Could_not_find_message__d_
push 0xa9b7bc
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, 0xa9b7bc
jmp 0x4aa760
add eax, 0x18
push eax
push 0
push 0
push 0
push 0
push 0
push 1
push dword [edi]
push 0xb90558
call fcn.004cdc70
add esp, 0x24
mov ecx, dword [esp + 0x3c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 8