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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.100e46e0
mov ebx, eax
cmp dword [ebx + 0x14], 0x10
jb 0x100a096e
mov ebx, dword [ebx]
push ebx
push 0xffffd8ee
push edi
call sub.lua51.dll_lua_getfield
push 0xffffffffffffffff
push edi
call sub.lua51.dll_lua_type
push 0xffffffffffffffff
push edi
call sub.lua51.dll_lua_type
add esp, 0x1c
cmp eax, 7
je 0x100a099f
push 0xfffffffffffffffe
push edi
call sub.lua51.dll_lua_settop
add esp, 8
jmp 0x100a09d7
push 0xffffffffffffffff
push edi
call sub.lua51.dll_lua_touserdata
push 0xfffffffffffffffe
push edi
mov esi, eax
call sub.lua51.dll_lua_settop
mov ecx, esi
add esp, 0x10
neg ecx
and ecx, 7
add ecx, esi
call fcn.100e1e40
push edi
call sub.lua51.dll_lua_pushnil
push ebx
push 0xffffd8ee
push edi
call sub.lua51.dll_lua_setfield
add esp, 0x10
push edi
call fcn.10081b80
mov ebx, eax
add esp, 4
lea ecx, [ebx + 0x90]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
push dword [ecx + 4]
call fcn.10022ca0
push edi
call sub.lua51.dll_lua_gettop
add esp, 4
mov esi, eax
call fcn.100e46e0
cmp dword [eax + 0x14], 0x10
jb 0x100a0a10
mov eax, dword [eax]
fld qword [0x101bf1e8]
sub esp, 8
mov dword [esp + 0x24], eax
fstp qword [esp]
push edi
call sub.lua51.dll_lua_pushnumber
lea eax, [esp + 0x28]
push eax
push edi
call fcn.10094340
push esi
push edi
call sub.lua51.dll_lua_settable
add esp, 0x1c
call fcn.100e95b0
cmp dword [eax + 0x14], 0x10
jb 0x100a0a48
mov eax, dword [eax]
fld qword [0x101abbb0]
sub esp, 8
mov dword [esp + 0x24], eax
fstp qword [esp]
push edi
call sub.lua51.dll_lua_pushnumber
lea eax, [esp + 0x28]
push eax
push edi
call fcn.10094340
push esi
push edi
call sub.lua51.dll_lua_settable
add esp, 0x1c
call fcn.100ee8d0
cmp dword [eax + 0x14], 0x10
jb 0x100a0a80
mov eax, dword [eax]
fld qword [0x101bf1e0]
sub esp, 8
mov dword [esp + 0x24], eax
fstp qword [esp]
push edi
call sub.lua51.dll_lua_pushnumber
lea eax, [esp + 0x28]
push eax
push edi
call fcn.10094340
push esi
push edi
call sub.lua51.dll_lua_settable
add esp, 0x1c
call fcn.100ecb60
cmp dword [eax + 0x14], 0x10
jb 0x100a0ab8
mov eax, dword [eax]
fld1
sub esp, 8
mov dword [esp + 0x24], eax
fstp qword [esp]
push edi
call sub.lua51.dll_lua_pushnumber
lea eax, [esp + 0x28]
push eax
push edi
call fcn.10094340
push esi
push edi
call sub.lua51.dll_lua_settable
add esp, 0x1c
call fcn.100f32a0
cmp dword [eax + 0x14], 0x10
jb 0x100a0aec
mov eax, dword [eax]
fld qword [0x101bf1d8]
sub esp, 8
mov dword [esp + 0x24], eax
fstp qword [esp]
push edi
call sub.lua51.dll_lua_pushnumber
lea eax, [esp + 0x28]
push eax
push edi
call fcn.10094340
push esi
push edi
call sub.lua51.dll_lua_settable
add esp, 0x1c
call fcn.100f4a40
cmp dword [eax + 0x14], 0x10
jb 0x100a0b24
mov eax, dword [eax]
fldz
sub esp, 8
mov dword [esp + 0x24], eax
fstp qword [esp]
push edi
call sub.lua51.dll_lua_pushnumber
lea eax, [esp + 0x28]
push eax
push edi
call fcn.10094340
push esi
push edi
call sub.lua51.dll_lua_settable
push 0xfffffffffffffffe
push edi
call sub.lua51.dll_lua_settop
add esp, 0x24
lea ecx, [ebx + 0x88]
push dword [ecx + 4]
call fcn.10022ca0
mov esi, eax
neg esi
lea ecx, [esi + 0x270f]
cmp ecx, 0x270e
ja 0x100a0b7f
push edi
call sub.lua51.dll_lua_gettop
inc esi
add esp, 4
add esi, eax
call fcn.1008bb60
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x100a0b92
mov eax, 0x101a88bc
jmp 0x100a0b9a
cmp dword [eax + 0x14], 0x10
jb 0x100a0b9a
mov eax, dword [eax]
push ecx
push eax
push edi
call sub.lua51.dll_lua_pushlstring
push 0
push 0xffffffffffffffff
push edi
call sub.lua51.dll_lua_tolstring
push str.name
push esi
push edi
call sub.lua51.dll_lua_setfield
push 0
push 0x1008e240
push edi
call sub.lua51.dll_lua_pushcclosure
push 0x101aa85c
push esi
push edi
call sub.lua51.dll_lua_setfield
push 0xfffffffffffffffe
push edi
call sub.lua51.dll_lua_settop
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 0
mov dword [esp + 0x74], eax
add esp, 0x44
lea eax, [ebp + 0xc]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], eax
xor esi, esi
lea eax, [esp + 0x24]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x3c], eax
lea esp, [esp]
cmp esi, 5
ja case.0x100a0c15.0
jmp dword [esi*4 + 0x100a0ccc]
lea eax, [ebx + 0x78]
push eax
push esi
push edi
lea ecx, [esp + 0x38]
call fcn.100d3f60
inc esi
jmp 0x100a0c10
lea eax, [ebx + 0x60]
push eax
push esi
push edi
lea ecx, [esp + 0x38]
call fcn.100d3f60
inc esi
jmp 0x100a0c10
lea eax, [ebx + 0x68]
push eax
push esi
push edi
lea ecx, [esp + 0x38]
call fcn.100d3f60
inc esi
jmp 0x100a0c10
lea eax, [ebx + 0x70]
push eax
push esi
push edi
lea ecx, [esp + 0x38]
call fcn.100d3f60
inc esi
jmp 0x100a0c10
lea eax, [ebx + 0x58]
push eax
push esi
push edi
lea ecx, [esp + 0x38]
call fcn.100d3f60
inc esi
cmp esi, 6
jl 0x100a0c10
jmp 0x100a0c8d
lea eax, [ebx + 0x80]
push eax
push esi
push edi
lea ecx, [esp + 0x38]
call fcn.100d3f60
cmp byte [ebp + 0xc], 0
je 0x100a0cad
lea eax, [esp + 0x1b]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
push edi
call fcn.100b5800
push dword [ebx + 0x9c]
lea ecx, [ebx + 0x98]
call fcn.10022ca0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret