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

Disassembly:
sub esp, 0x38
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov ebp, ecx
mov ecx, ebx
push esi
mov eax, dword [ebx]
push edi
mov edi, dword [ebp + 4]
mov esi, dword [ebp + 0x18]
call dword [eax + 4]
lea ecx, [ebx + 8]
push esi
mov dword [esp + 0x14], ecx
mov ecx, edi
push eax
call fcn.100fec10
mov ebx, dword [esp + 0x4c]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x100ec3d6
mov eax, dword [eax]
cmp dword [eax + 0x14], 0x10
jb 0x100ec3c0
mov eax, dword [eax]
push 0x10177368
push eax
push str.built_in_functions_cannot_be_redefined
lea ecx, [ebp + 0x54]
push ebx
call fcn.1003b4f0
jmp 0x100ec3da
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x50]
mov edi, dword [ebp + 4]
mov esi, dword [ebp + 0x18]
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push esi
push eax
mov ecx, edi
call fcn.100feb10
mov esi, eax
mov dword [esp + 0x14], esi
cmp byte [esi + 0x3c], 0
je 0x100ec424
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
cmp dword [ecx + 0x14], 0x10
jb 0x100ec410
mov ecx, dword [ecx]
push 0x10177368
push ecx
push str.function_already_has_a_body
push ebx
lea ecx, [ebp + 0x54]
call fcn.1003b4f0
mov eax, dword [esi + 4]
mov byte [esi + 0x3c], 1
mov esi, dword [esp + 0x50]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x100ec442
mov eax, dword [edi]
push 4
push str.main
push dword [edi + 0x10]
push eax
call fcn.1001c310
add esp, 0x10
test al, al
je 0x100ec4ae
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x24]
sar eax, 3
test eax, eax
je 0x100ec486
cmp dword [edi + 0x14], 0x10
jb 0x100ec46e
mov edi, dword [edi]
push 0x10177368
push edi
push str.function_cannot_take_any_parameter_s_
lea edi, [ebp + 0x54]
push ebx
mov ecx, edi
call fcn.1003b4f0
jmp 0x100ec489
lea edi, [ebp + 0x54]
mov eax, dword [esi + 0x30]
mov eax, dword [eax]
test eax, eax
je 0x100ec4ae
push eax
call fcn.100fecf0
add esp, 4
mov ecx, edi
push str.main_function_cannot_return_a_value
push eax
push 0x10177368
push ebx
call fcn.1003b4f0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x30]
mov dword [ebp + 0x2c], eax
mov byte [ebp + 0x30], 0
push dword [0x101b7ae8]
call fcn.1002e140
add esp, 4
mov ecx, eax
push 0x9c
call fcn.100e4650
test eax, eax
je 0x100ec4e7
mov ecx, eax
call fcn.10035730
mov dword [esp + 0x10], eax
jmp 0x100ec4ef
mov dword [esp + 0x10], 0
mov eax, dword [esi + 0x28]
xor edx, edx
mov ecx, dword [esi + 0x24]
sub eax, ecx
sar eax, 3
mov dword [esp + 0x14], edx
test eax, eax
je 0x100ec6ac
nop dword [eax + eax]
cmp dword [ecx + edx*8], 0
lea ebx, [ecx + edx*8]
lea edi, [ebx + 4]
je 0x100ec635
push dword [0x101b7ae8]
call fcn.1002e140
add esp, 4
mov ecx, eax
push 0x7c
call fcn.100e4650
mov esi, eax
test esi, esi
je 0x100ec57c
mov edx, dword [edi]
mov ecx, dword [ebx]
mov dword [esi + 8], ecx
lea ecx, [esi + 0x24]
push edx
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0xf
mov dword [esi], 0x1019f2e8
call fcn.10021500
mov byte [esi + 0x74], 0
mov dword [esi + 0x78], 0
jmp 0x100ec57e
xor esi, esi
mov eax, dword [ebp + 4]
push esi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
mov ecx, dword [ecx + eax*4 - 4]
call fcn.100ff710
test al, al
jne 0x100ec60d
mov eax, dword [esi + 8]
cmp dword [eax + 0x14], 0x10
jb 0x100ec5a4
mov eax, dword [eax]
mov ebx, dword [esp + 0x4c]
lea ecx, [ebp + 0x54]
push 0x10177368
push eax
push str.redefinition
push ebx
call fcn.1003b4f0
mov esi, dword [ebp]
lea eax, [esp + 0x18]
push ebx
push dword [edi]
mov ecx, esi
mov dword [esp + 0x20], 0
push eax
push 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0xf
call fcn.100cf1f0
mov edi, dword [esp + 0x10]
mov ecx, esi
push ebx
push eax
push edi
call fcn.100d4b00
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xf
mov byte [esp + 0x18], 0
jmp 0x100ec688
mov ebx, dword [esp + 0x4c]
lea eax, [esi + 0x24]
mov ecx, dword [ebp]
push ebx
push eax
push dword [esi + 8]
push dword [esi + 4]
call fcn.100cf1f0
mov edi, dword [esp + 0x10]
mov ecx, dword [ebp]
push ebx
push eax
push edi
call fcn.100d4b00
jmp 0x100ec688
mov ebx, dword [esp + 0x4c]
lea eax, [esp + 0x30]
mov esi, dword [ebp]
mov ecx, esi
push ebx
push dword [edi]
mov dword [esp + 0x38], 0
push eax
push 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0xf
call fcn.100cf1f0
mov edi, dword [esp + 0x10]
mov ecx, esi
push ebx
push eax
push edi
call fcn.100d4b00
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0xf
mov byte [esp + 0x30], 0
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
inc edx
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
sub eax, ecx
sar eax, 3
cmp edx, eax
jb 0x100ec510
mov edi, dword [esp + 0x10]
mov ecx, dword [ebp]
push ebx
push 4
push edi
call fcn.100d8cc0
mov eax, dword [esp + 0x54]
mov dword [eax], edi
pop edi
pop esi
mov dword [ebp + 0x20], 0
pop ebp
pop ebx
add esp, 0x38
ret 0xc