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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
mov dword [esp], ebx
call sym._luaH_realasize
and byte [ebx + 6], 0x7f
mov dword [esp + 0x28], eax
mov dword [ebx + 8], eax
test ecx, ecx
jne 0x4101c2
mov dword [esp + 0x20], 0x470e90
xor ecx, ecx
xor edi, edi
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x78], eax
jb 0x4100d0
mov ebp, dword [ebx + 0xc]
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x28]
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x70]
mov dword [esp + 0x30], ecx
shl edx, 4
shl esi, 4
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 0x2c], edx
call sym._luaM_realloc_
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
test eax, eax
mov ebp, eax
jne 0x40ffcf
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x410242
movzx eax, byte [ebx + 7]
mov dword [ebx + 0xc], ebp
add esi, ebp
mov byte [esp + 0x2c], al
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x14], ecx
mov dword [esp + 0x34], eax
mov eax, edi
mov edi, dword [esp + 0x28]
mov byte [ebx + 7], al
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [ebx + 8], eax
lea eax, [ebp + edx]
cmp dword [esp + 0x78], edi
jbe 0x41001b
nop
mov byte [esi + 8], 0x10
add esi, 0x10
cmp eax, esi
jne 0x410010
movzx ecx, byte [esp + 0x2c]
mov eax, 1
shl eax, cl
test eax, eax
jle 0x410092
movzx ecx, byte [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x74], ebx
lea esi, [esp + 0x40]
mov eax, 0x18
mov edi, dword [esp + 0x74]
shl eax, cl
lea ebp, [eax + edx]
mov ebx, ebp
mov ebp, edx
jmp 0x410057
add ebp, 0x18
cmp ebp, ebx
je 0x410092
test byte [ebp + 8], 0xf
je 0x410050
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
movzx eax, byte [ebp + 9]
mov dword [esp + 0xc], ebp
add ebp, 0x18
mov byte [esp + 0x48], al
mov eax, dword [esp + 0x70]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._luaH_set
cmp ebp, ebx
jne 0x410057
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4100be
movzx ecx, byte [esp + 0x2c]
mov eax, 0x18
shl eax, cl
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call sym._luaM_free_
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x78]
xor ebp, ebp
mov dword [ebx + 8], eax
movzx eax, byte [ebx + 7]
mov byte [esp + 0x2c], al
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x14], ecx
xor ecx, ecx
mov dword [esp + 0x34], eax
mov eax, edi
mov edx, ecx
mov byte [ebx + 7], al
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x78]
lea esi, [eax + 1]
not eax
add eax, dword [esp + 0x28]
mov edi, eax
mov eax, esi
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x38]
add eax, 1
adc edx, 0
add edi, eax
mov eax, ebx
mov ecx, edx
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x3c]
adc ebp, ecx
mov dword [esp + 0x24], ebp
mov ebp, dword [ebx + 0xc]
jmp 0x410156
add esi, 1
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
adc edi, 0
xor ebx, edi
xor ecx, esi
or ebx, ecx
je 0x410190
mov ecx, esi
shl ecx, 4
lea ecx, [ebp + ecx - 0x10]
test byte [ecx + 8], 0xf
je 0x410140
mov dword [esp + 4], eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x10], ecx
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
call sym._luaH_setint
mov eax, dword [esp + 0x74]
mov ebp, dword [eax + 0xc]
jmp 0x410140
mov ebx, eax
mov eax, dword [esp + 0x28]
movzx edi, byte [ebx + 7]
mov ecx, dword [ebx + 0x14]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x2c]
mov byte [ebx + 7], al
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x14], eax
jmp 0x40ff87
mov dword [esp], ecx
call sym._luaO_ceillog2
mov edi, eax
cmp eax, 0x1e
jg 0x41027b
mov ebp, 1
mov ecx, eax
shl ebp, cl
cmp ebp, 0xaaaaaaa
ja 0x41027b
mov eax, dword [esp + 0x70]
mov esi, 0x18
mov dword [esp + 8], 0
shl esi, cl
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._luaM_malloc_
mov edx, eax
mov dword [esp + 0x20], eax
lea eax, [eax + 8]
lea edx, [edx + esi + 8]
test ebp, ebp
jle 0x410236
lea esi, [esi]
mov dword [eax + 4], 0
add eax, 0x18
mov byte [eax - 0x17], 0
mov byte [eax - 0x18], 0x10
cmp eax, edx
jne 0x410220
mov eax, dword [esp + 0x20]
lea ecx, [eax + esi]
jmp 0x40ff76
test ecx, ecx
je 0x410267
mov eax, 0x18
mov ecx, edi
shl eax, cl
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call sym._luaM_free_
mov eax, dword [esp + 0x70]
mov dword [esp + 4], 4
mov dword [esp], eax
call sym._luaD_throw
mov eax, dword [esp + 0x70]
mov dword [esp + 4], str.table_overflow
mov dword [esp], eax
call sym._luaG_runerror
nop