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

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
mov eax, ecx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
xor edi, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
jmp 0x1008c460
cmp edi, 5
ja case.0x1008c465.0
jmp dword [edi*4 + 0x1008c6c4]
mov edi, dword [esi + 8]
lea ecx, [eax + 0x78]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x24], eax
jmp 0x1008c4e3
mov edi, dword [esi + 8]
lea ecx, [eax + 0x60]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x24], eax
jmp 0x1008c4e3
mov edi, dword [esi + 8]
lea ecx, [eax + 0x68]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x24], eax
jmp 0x1008c4e3
mov edi, dword [esi + 8]
lea ecx, [eax + 0x70]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x24], eax
jmp 0x1008c4e3
cmp dword [esp + 0x10], 5
lea ecx, [eax + 0x58]
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 8]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x24], eax
je 0x1008c6a4
push dword [ecx + 4]
call fcn.10022ca0
mov ebp, eax
neg ebp
lea ecx, [ebp + 0x270f]
cmp ecx, 0x270e
ja 0x1008c509
push ebx
call sub.lua51.dll_lua_gettop
inc ebp
add esp, 4
add ebp, eax
cmp byte [esi + 5], 0
mov ecx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ecx
je 0x1008c560
mov edx, dword [esi + 0x3c]
mov ebp, dword [esp + 0x28]
test edx, edx
jne 0x1008c529
mov eax, dword [esi + 0x34]
jmp 0x1008c537
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx + ebp]
mov eax, dword [eax + edx]
add eax, ecx
add eax, dword [esi + 0x34]
push dword [esi + 0x2c]
lea ecx, [esp + 0x1c]
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [esi + 0x20]
push ecx
push dword [esi + 0x1c]
lea ecx, [eax + ebp]
mov eax, dword [esi + 0x30]
push dword [esp + 0x28]
push ebx
call eax
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
cmp byte [esi], 0
je 0x1008c584
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x1008c699
cmp eax, 3
je 0x1008c699
cmp eax, 2
je 0x1008c699
cmp byte [esi + 1], 0
jne 0x1008c699
cmp byte [esi + 2], 0
jne 0x1008c699
cmp byte [esi + 3], 0
jne 0x1008c699
cmp byte [esi + 4], 0
jne 0x1008c699
cmp byte [esi + 6], 0
je 0x1008c5ed
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x1008c5c0
mov edi, 0x101a88bc
jmp 0x1008c5c8
cmp dword [edi + 0x14], 0x10
jb 0x1008c5c8
mov edi, dword [edi]
push eax
push edi
push ebx
call sub.lua51.dll_lua_pushlstring
push 0
push 0xffffffffffffffff
push ebx
call sub.lua51.dll_lua_tolstring
push 0
push dword [esi + 0x10]
push ebx
call sub.lua51.dll_lua_pushcclosure
add esp, 0x24
jmp 0x1008c682
cmp byte [esi + 7], 0
je 0x1008c631
mov eax, dword [esi + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x1008c608
mov edi, 0x101a88bc
jmp 0x1008c610
cmp dword [edi + 0x14], 0x10
jb 0x1008c610
mov edi, dword [edi]
push eax
push edi
push ebx
call sub.lua51.dll_lua_pushlstring
push 0
push 0xffffffffffffffff
push ebx
call sub.lua51.dll_lua_tolstring
mov ecx, dword [esp + 0x40]
add esp, 0x18
push ebx
call fcn.10022ca0
jmp 0x1008c682
mov eax, dword [esi + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x1008c646
mov edi, 0x101a88bc
jmp 0x1008c64e
cmp dword [edi + 0x14], 0x10
jb 0x1008c64e
mov edi, dword [edi]
push eax
push edi
push ebx
call sub.lua51.dll_lua_pushlstring
push 0
push 0xffffffffffffffff
push ebx
call sub.lua51.dll_lua_tolstring
push ebx
call sub.lua51.dll_lua_pushnil
mov eax, dword [esp + 0x40]
push dword [eax + 8]
push ebx
call sub.lua51.dll_lua_pushlightuserdata
push 2
push dword [esp + 0x50]
push ebx
call sub.lua51.dll_lua_pushcclosure
add esp, 0x30
push ebp
push ebx
call sub.lua51.dll_lua_rawset
push 0xfffffffffffffffe
push dword [esp + 0x28]
call sub.lua51.dll_lua_settop
add esp, 0x10
jmp 0x1008c6a4
push 0xfffffffffffffffe
push ecx
call sub.lua51.dll_lua_settop
add esp, 8
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc edi
mov dword [esp + 0x10], edi
cmp edi, 6
jl 0x1008c460
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8