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

Disassembly:
mov ecx, dword [0x647d6c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xac]
cmp eax, dword [ecx + 8]
jbe 0x500dd1
sub esp, 0x12c
mov eax, dword [esp + 0x130]
mov dword [esp], eax
lea ecx, str.C__:SM
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
call sym.main.importSpec
mov eax, dword [esp + 0xc]
test eax, eax
je 0x500dc2
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea eax, [esp + 0x58]
mov dword [esp], eax
mov eax, dword [esp + 0x130]
mov dword [esp + 4], eax
call sym.main.typecheck
mov eax, dword [esp + 8]
mov dword [esp + 0x14], eax
mov byte [esp + 0x13], 0
lea edi, [esp + 0x84]
xor eax, eax
call fcn.00465a49
lea edi, [esp + 0xa0]
call fcn.00465a2d
lea ecx, [esp + 0xa0]
mov dword [esp + 0x90], ecx
call sym.runtime.fastrand
mov eax, dword [esp]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
lea eax, [sym.main.typefix.func1]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x134]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x50], ecx
lea edx, [esp + 0x84]
mov dword [esp + 0x54], edx
lea ebx, [0x5233a0]
mov dword [esp], ebx
mov ebp, dword [esp + 0x130]
mov dword [esp + 4], ebp
lea esi, [0x545edc]
mov dword [esp + 8], esi
lea edi, [esp + 0x48]
mov dword [esp + 0xc], edi
call sym.main.walkBeforeAfter
mov eax, dword [esp + 0x84]
test eax, eax
jle 0x500d3f
lea eax, [0x517360]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x500c7d
lea ecx, [0x56af00]
jmp 0x500c81
xor ecx, ecx
xor eax, eax
mov ecx, dword [ecx + 0x28]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
lea edx, [0x51a2a0]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x2c]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x500ccb
lea ebx, [0x56af00]
jmp 0x500ccf
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x18], ecx
lea edi, [esp + 0x68]
mov ebp, eax
xor eax, eax
call fcn.00465a49
lea ecx, [sym.main.typefix.func2]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ebp
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0x84]
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x13]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], edx
lea ecx, [0x5233a0]
mov dword [esp], ecx
mov edx, dword [esp + 0x130]
mov dword [esp + 4], edx
lea ebx, [0x545edc]
mov dword [esp + 8], ebx
lea ebp, [esp + 0x68]
mov dword [esp + 0xc], ebp
call sym.main.walkBeforeAfter
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
lea eax, [sym.main.typefix.func3]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x134]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x13]
mov dword [esp + 0x44], eax
lea eax, [0x5233a0]
mov dword [esp], eax
mov eax, dword [esp + 0x130]
mov dword [esp + 4], eax
lea eax, [0x545edc]
mov dword [esp + 8], eax
lea eax, [esp + 0x38]
mov dword [esp + 0xc], eax
call sym.main.walkBeforeAfter
movzx eax, byte [esp + 0x13]
mov byte [esp + 0x138], al
add esp, 0x12c
ret
mov byte [esp + 0x138], 0
add esp, 0x12c
ret
call sym.runtime.morestack_noctxt
jmp sym.main.typefix