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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x57a040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
test ecx, ecx
js 0x4aa273
cmp ecx, 0x1194
jge 0x4aa273
mov eax, dword [ecx*4 + 0x20a514c]
cmp dword [eax + 4], 3
jne 0x4aa273
movzx edx, word [eax + 0x78]
cmp edx, 1
je 0x4a9ef3
cmp edx, 6
jne 0x4aa273
cmp byte [eax + 0xa], 0
jg 0x4aa273
cmp byte [eax + 0x9c0], 0
jne 0x4aa273
test byte [edi + 0x384], 3
jne 0x4aa273
cmp dword [edi + 0x3e0], 0
je 0x4a9f3f
push 5
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0xbc05c1
push eax
push ecx
mov byte [esp + 0x20], 0
call fcn.005192f0
jmp 0x4aa273
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x28]
push 0
push 0xa
push eax
xorps xmm0, xmm0
mov word [esp + 0x3c], 0
push esi
movq qword [esp + 0x38], xmm0
call fcn.00434b50
push 1
push esi
call fcn.00434ac0
mov ebx, eax
lea eax, [esp + 0x28]
push str.bless
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4a9f88
xor esi, esi
jmp 0x4aa089
lea eax, [esp + 0x28]
push str.soul
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4a9fa6
lea esi, [eax + 1]
jmp 0x4aa089
lea eax, [esp + 0x28]
push str.life
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4a9fc4
lea esi, [eax + 2]
jmp 0x4aa089
lea eax, [esp + 0x28]
push str.creation
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4a9fe2
lea esi, [eax + 3]
jmp 0x4aa089
lea eax, [esp + 0x28]
push str.guardian
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4aa000
lea esi, [eax + 4]
jmp 0x4aa089
lea eax, [esp + 0x28]
push 0x55c230
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4aa01b
lea esi, [eax + 5]
jmp 0x4aa089
lea eax, [esp + 0x28]
push str.harmony
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4aa036
lea esi, [eax + 6]
jmp 0x4aa089
lea eax, [esp + 0x28]
push str.chaos
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4aa051
lea esi, [eax + 7]
jmp 0x4aa089
lea eax, [esp + 0x28]
push str.lowstone
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4aa06c
lea esi, [eax + 8]
jmp 0x4aa089
lea eax, [esp + 0x28]
push str.highstone
push eax
call fcn.0052fff1
add esp, 8
test eax, eax
jne 0x4aa1fa
lea esi, [eax + 9]
cmp ebx, 0xa
jne 0x4aa092
xor al, al
jmp 0x4aa0a6
cmp ebx, 0x14
jne 0x4aa09b
mov al, 1
jmp 0x4aa0a6
cmp ebx, 0x1e
jne 0x4aa1fa
mov al, 2
push esi
mov byte [esp + 0x14], al
mov dword [edi + 0x3e0], 1
call fcn.004a98d0
push 0
push eax
push edi
mov dword [esp + 0x24], eax
call fcn.0049cf10
cmp eax, ebx
jge 0x4aa11e
lea eax, [esp + 0x18]
mov dword [edi + 0x3e0], 0
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x336
push eax
mov ecx, 0xa9b83c
call fcn.00405650
mov eax, dword [esp + 0x24]
mov ecx, dword [0xa9b83c]
cmp byte [eax + 0xd], 0
jne 0x4aa10a
cmp dword [eax + 0x10], 0x336
jle 0x4aa10c
mov eax, ecx
cmp eax, ecx
jne 0x4aa254
push 0x336
jmp 0x4aa23a
push ebx
push 0
push dword [esp + 0x20]
push edi
call fcn.0049f4e0
push 0
push 0xff
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push dword [esp + 0x40]
push esi
call fcn.004a9970
mov ecx, dword [edi]
mov dl, 0xeb
push eax
push 0
push 0
call fcn.00472500
add esp, 0x40
mov dword [edi + 0x3e0], 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x337
mov ecx, 0xa9b83c
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00405650
mov eax, dword [esp + 0x24]
mov ecx, dword [0xa9b83c]
cmp byte [eax + 0xd], 0
jne 0x4aa1a0
cmp dword [eax + 0x10], 0x337
jle 0x4aa1a2
mov eax, ecx
cmp eax, ecx
jne 0x4aa1c5
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 0x4aa1c8
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 + 0x28]
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x334
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 0x4aa22f
cmp dword [eax + 0x10], 0x334
jle 0x4aa231
mov eax, ecx
cmp eax, ecx
jne 0x4aa254
push 0x334
push str.Could_not_find_message__d_
push 0xa9b7bc
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, 0xa9b7bc
jmp 0x4aa257
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 + 0x34]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 8