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

Disassembly:
sub esp, 0x644
push ebx
push ebp
push esi
push edi
mov esi, eax
call fcn.0045c470
cmp dword [esi + 0x10], 0x3a
mov ebp, eax
mov dword [esp + 0x58], ebp
mov dword [esp + 0x34], 0
jne 0x46149e
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
mov eax, 0x12c
cmp dword [esi + 0x20], eax
je 0x461482
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x14], edx
mov edx, dword [esi + 0x2c]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], eax
jmp 0x461493
lea eax, [esi + 0x18]
push eax
mov eax, esi
call fcn.00472cd0
add esp, 4
mov dword [esi + 0x10], eax
mov eax, esi
call fcn.0045c470
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x30]
mov edi, dword [eax + 0x24]
mov ecx, edi
mov ebx, 5
add ecx, ebx
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax]
movzx edx, byte [ecx + 0x4f]
cmp dword [esp + 0x2c], edx
jle 0x4614db
cmp dword [esp + 0x2c], 0xfa
jl 0x4614d4
mov esi, dword [eax + 0xc]
mov edi, str.function_or_expression_too_complex
jmp fcn.00471a20
mov dl, byte [esp + 0x2c]
mov byte [ecx + 0x4f], dl
add dword [eax + 0x24], ebx
mov eax, dword [esi + 0x30]
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebp
call fcn.004747b0
mov edx, dword [esi + 0x34]
mov dword [esp + 0x34], eax
push 0x564f9c
push edx
mov eax, 9
call fcn.0046d180
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, eax
mov dword [esp + 0x28], ebx
call fcn.004747b0
mov ecx, dword [esi + 0x34]
mov ebp, eax
push 0x566e18
push ecx
mov eax, 3
call fcn.0046d180
mov ecx, dword [esi + 0x30]
lea edx, [esp + 0x30]
push edx
push ecx
mov ecx, edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], eax
call fcn.004747b0
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x34]
push 0x566e20
push eax
mov eax, 2
call fcn.0046d180
mov ecx, dword [esi + 0x30]
lea edx, [esp + 0x40]
push edx
push ecx
mov ecx, edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x50], eax
call fcn.004747b0
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x34]
push str.__index
push eax
mov eax, 7
call fcn.0046d180
mov ecx, dword [esi + 0x30]
lea edx, [esp + 0x50]
add esp, 0x40
push edx
push ecx
mov ecx, edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
call fcn.004747b0
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x30]
mov edx, dword [eax + 0xc]
mov edx, dword [edx + 8]
mov ecx, edi
shl ecx, 0x18
mov dword [esp + 0x40], ecx
push edx
or ecx, 0xa
push ecx
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
push edx
mov ecx, edi
shl ecx, 0x12
or ecx, dword [esp + 0x40]
shl ecx, 6
or ecx, 0x27
push ecx
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + 8]
lea ebx, [edi + 1]
shl ebp, 6
shl ebx, 0x18
or ebp, ebx
push ecx
or ebp, 1
push ebp
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov edx, dword [eax + 0xc]
mov edx, dword [edx + 8]
push edx
mov edx, dword [esp + 0x50]
lea ebp, [edi + 2]
mov ecx, ebp
shl ecx, 0x18
shl edx, 6
or edx, ecx
or edx, 1
push edx
mov dword [esp + 0x68], ecx
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov edx, dword [eax + 0xc]
mov edx, dword [edx + 8]
lea ecx, [edi + 1]
shl ecx, 0xf
shl ebp, 6
or ebp, ecx
or ebp, dword [esp + 0x60]
push edx
or ebp, 9
push ebp
mov dword [esp + 0x80], ecx
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
mov ecx, ebx
push edx
or ecx, 0x4a
push ecx
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + 8]
push ecx
mov ecx, dword [esp + 0x6c]
lea ebp, [edi + 4]
shl ecx, 6
mov dword [esp + 0x84], ebp
shl ebp, 0x18
or ecx, ebp
or ecx, 1
push ecx
mov dword [esp + 0x84], ebp
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov edx, dword [eax + 0xc]
mov edx, dword [edx + 8]
mov ecx, dword [esp + 0x88]
add esp, 0x40
push edx
shl ecx, 0xf
mov edx, edi
shl edx, 6
or edx, ecx
or edx, ebx
or edx, 9
push edx
mov dword [esp + 0x38], ecx
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [esp + 0x44]
mov edx, dword [eax + 0xc]
mov edx, dword [edx + 8]
shl ecx, 6
or ecx, ebp
or ecx, 1
push edx
push ecx
mov dword [esp + 0x64], ecx
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
lea ebp, [edi + 1]
shl ebp, 6
or ebp, dword [esp + 0x40]
push edx
or ebp, dword [esp + 0x4c]
or ebp, 9
push ebp
call fcn.00475ad0
mov eax, dword [esp + 0x4c]
add esp, 0x18
test eax, eax
je 0x46187f
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, eax
mov dword [esp + 0x18], 5
call fcn.004747b0
mov edx, str.getclass
mov dword [esp + 0x38], eax
call fcn.0045e190
mov edx, str.base
mov dword [esp + 0x44], eax
call fcn.0045e190
mov edx, str.setmetatable
mov dword [esp + 0x3c], eax
call fcn.0045e190
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x44]
shl ecx, 6
or ecx, ebx
push edx
or ecx, 5
push ecx
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x40]
shl ecx, 6
or ecx, dword [esp + 0x50]
push edx
or ecx, 1
push ecx
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
mov ecx, ebx
push edx
or ecx, 0x1009b
push ecx
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + 8]
push ecx
mov ecx, dword [esp + 0x58]
shl ecx, 6
or ecx, dword [esp + 0x68]
or ecx, 1
push ecx
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + 8]
push ecx
push ebp
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x84]
push ecx
push edx
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x80]
push edx
lea edx, [edi + 3]
shl edx, 0x18
shl ecx, 6
or edx, ecx
or edx, dword [esp + 0x8c]
or edx, 6
push edx
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x78]
shl ecx, 6
add esp, 0x40
or ecx, ebx
push edx
or ecx, 5
push ecx
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
mov ecx, edi
shl ecx, 0xf
or ecx, dword [esp + 0x48]
push edx
push ecx
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + 8]
push ecx
or ebx, 0x1805b
push ebx
call fcn.00475ad0
add esp, 0x18
push esi
lea eax, [esp + 0x74]
call fcn.0045cd70
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x74]
mov dword [eax + 0x40], edx
mov ecx, dword [esp + 0x74]
mov ebx, 1
mov dword [ecx + 0x44], ebx
mov edx, dword [esp + 0x74]
mov byte [edx + 0x4f], 7
add esp, 4
mov edx, str.self
call fcn.0045c770
xor edx, edx
mov eax, esi
call fcn.0045cba0
mov edx, 0x566e58
call fcn.0045c770
mov eax, dword [esi + 0x34]
push str.setprot
push eax
lea eax, [ebx + 6]
call fcn.0046d180
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0x18]
push ecx
mov ebx, 5
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
call fcn.004747b0
mov eax, dword [esi + 0x34]
push str.setmetatable
push eax
lea eax, [ebx + 7]
call fcn.0046d180
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], eax
call fcn.004747b0
mov eax, dword [esi + 0x34]
push 0x566e20
push eax
lea eax, [ebx - 3]
call fcn.0046d180
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0x38]
push ecx
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], eax
call fcn.004747b0
mov eax, dword [esi + 0x34]
push str.Init
push eax
lea eax, [ebx - 1]
call fcn.0046d180
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0x48]
push ecx
push edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], eax
call fcn.004747b0
mov eax, dword [esi + 0x34]
add esp, 0x40
push str.unpack
push eax
lea eax, [ebx + 1]
call fcn.0046d180
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
call fcn.004747b0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
push edx
push 0x200000a
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
push edx
push 0x3000005
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
push edx
push 0x4010000
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
push edx
push 0x301005b
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
push edx
push 0x3000045
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
push edx
push 0x4010000
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
add esp, 0x40
push edx
push 0x5003f06
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
push edx
push 0x301805b
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
push edx
push 0x3013f4b
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
push edx
push 0x5000105
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
push edx
push 0x6008000
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
push edx
push 0x501001b
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
push edx
push 0x300005b
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
push edx
push 0x201001d
call fcn.00475ad0
add esp, 0x40
push esi
call fcn.0045cf50
add esp, 4
lea eax, [esp + 0x10]
push eax
push esi
lea ebx, [esp + 0x78]
call fcn.0045cc70
mov eax, dword [esi + 0x30]
add edi, 1
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.00474be0
mov eax, dword [esi + 0x30]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + 8]
push ecx
mov ecx, dword [esp + 0x60]
shl ecx, 6
or ecx, dword [esp + 0x58]
or ecx, 1
push ecx
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + 8]
push ecx
push ebp
call fcn.00475ad0
mov eax, dword [esi + 0x30]
add dword [eax + 0x24], 0xfffffffb
mov eax, dword [esi + 0x10]
add esp, 0x20
cmp eax, 0x28
je 0x461b3a
cmp eax, 0x7b
je 0x461b3a
cmp eax, 0x3b
jne 0x461b30
call fcn.0045c300
test eax, eax
jne 0x461c1d
mov edi, str.syntax_error
jmp fcn.00471a20
mov eax, dword [esi + 0x30]
mov edi, dword [eax + 0x24]
mov edx, dword [eax]
movzx ebx, byte [edx + 0x4f]
mov ecx, edi
add ecx, 2
cmp ecx, ebx
jle 0x461b67
cmp ecx, 0xfa
jl 0x461b64
mov esi, dword [eax + 0xc]
mov edi, str.function_or_expression_too_complex
jmp fcn.00471a20
mov byte [edx + 0x4f], cl
add dword [eax + 0x24], 2
mov edx, str.Init
call fcn.0045e190
mov ebx, eax
mov eax, dword [esi + 0x30]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + 8]
mov edx, edi
shl edx, 0x12
or edx, dword [esp + 0x2c]
push ecx
shl edx, 6
or edx, 5
push edx
call fcn.00475ad0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
lea ecx, [edi + 1]
shl ecx, 0x18
shl ebx, 6
or ecx, ebx
push edx
or ecx, 1
push ecx
call fcn.00475ad0
mov edx, dword [esi + 0x30]
mov ecx, dword [esp + 0x68]
or eax, 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x24], edi
add edi, 1
cmp dword [esi + 0x10], 0x28
mov dword [edx + 0x5d8], ecx
mov edx, dword [esi + 4]
sete al
push edx
lea ecx, [esp + 0x70]
push ecx
mov ecx, 1
mov edx, esi
mov dword [esp + 0x28], 9
mov dword [esp + 0x30], edi
call fcn.0045dcb0
mov edx, dword [esi + 0x30]
mov dword [edx + 0x5d8], 0
mov esi, dword [esi + 0x30]
add esp, 0x18
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x10]
call fcn.00474f80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x644
ret