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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
push edi
push 0x60
lea eax, [esp + 0x24]
mov ebx, edx
push 0
push eax
mov dword [esp + 0x28], ebx
mov esi, ecx
call fcn.10030f60
add esp, 0xc
mov dword [esp + 0x2c], ebx
cmp byte [esi + 0x31], 0
mov dword [esp + 0x20], esi
mov byte [esi + 7], 0
je 0x1002b815
mov edi, dword [esi + 0x370]
mov ebx, dword [edi]
add ebx, 8
cmp dword [edi + 0x18], 8
je 0x1002b806
cmp ebx, dword [edi + 8]
jbe 0x1002b806
mov edx, ebx
mov ecx, edi
call fcn.1001c470
cmp dword [edi + 0x24], 1
mov dword [edi], ebx
jge 0x1002b815
mov dword [edi + 0x24], 1
xor edi, edi
cmp dword [esi + 0x334], edi
jle 0x1002b83f
xor ebx, ebx
mov eax, dword [esi + 0x330]
push dword [eax + ebx]
push esi
call sym.tcc32_64.dll_tcc_add_library_err
inc edi
lea ebx, [ebx + 4]
add esp, 8
cmp edi, dword [esi + 0x334]
jl 0x1002b821
lea edx, [esp + 0x20]
mov ecx, esi
call fcn.1002b410
mov eax, dword [esi + 0x378]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
add eax, ecx
lea edi, [ecx + 0x18]
cmp edi, eax
jae 0x1002b8ef
mov eax, 0xfff2
cmp word [edi + 6], ax
jne 0x1002b8d4
mov ebx, dword [esi + 0x364]
mov ecx, dword [edi + 8]
mov eax, ecx
neg eax
mov dword [esp + 0x10], ecx
mov edx, dword [ebx]
dec edx
add edx, ecx
and edx, eax
mov eax, dword [edi + 0x10]
add eax, edx
mov dword [esp + 0x18], edx
cmp dword [ebx + 0x18], 8
mov dword [esp + 0x14], eax
je 0x1002b8b2
cmp eax, dword [ebx + 8]
jbe 0x1002b8b2
mov edx, eax
mov ecx, ebx
call fcn.1001c470
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov dword [ebx], eax
cmp ecx, dword [ebx + 0x24]
jle 0x1002b8bc
mov dword [ebx + 0x24], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], 0
mov eax, dword [esi + 0x364]
mov ax, word [eax + 0x14]
mov word [edi + 6], ax
mov eax, dword [esi + 0x378]
add edi, 0x18
mov ecx, dword [eax + 4]
add ecx, dword [eax]
mov eax, 0xfff2
cmp edi, ecx
jb 0x1002b867
mov ecx, esi
call fcn.1001d900
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], 0
cmp eax, 1
jne 0x1002b911
mov dword [esp + 0x38], 0x10000000
jmp 0x1002b923
mov dword [esp + 0x38], 0x400000
mov ecx, 3
cmp eax, 2
jne 0x1002b928
mov ecx, 2
mov eax, dword [esi + 0x39c]
test eax, eax
cmovne ecx, eax
mov dword [esp + 0x60], ecx
cmp ecx, 1
jne 0x1002b945
mov edx, 0x20
mov edi, edx
jmp 0x1002b94f
mov edx, 0x1000
mov edi, 0x200
mov eax, dword [esi + 0x44]
test eax, eax
cmovne edx, eax
mov eax, dword [esi + 0x3a4]
test eax, eax
mov dword [esp + 0x64], edx
cmovne edi, eax
lea eax, [ecx - 0xa]
mov dword [esp + 0x68], edi
cmp eax, 2
ja 0x1002b97b
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
cmp byte [esi + 0x40], 0
je 0x1002b98f
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x20]
call fcn.1002a210
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1002baad
lea ecx, [esp + 0x20]
cmp dword [esp + 0x1c], eax
je 0x1002ba82
call fcn.10029f40
mov edx, dword [esi + 0x38c]
mov ecx, esi
push 0
call fcn.1001d1a0
mov eax, dword [esp + 0x40]
mov ebx, 1
mov ecx, dword [esp + 0x3c]
add esp, 4
mov dword [esi + 0x3b0], ecx
mov dword [esi + 0x3b4], eax
cmp dword [esi + 0x344], ebx
jle 0x1002ba12
mov edi, 4
nop
mov eax, dword [esi + 0x340]
mov edx, dword [edi + eax]
cmp dword [edx + 0x44], 0
je 0x1002ba06
mov ecx, esi
call fcn.1001d310
inc ebx
add edi, 4
cmp ebx, dword [esi + 0x344]
jl 0x1002b9f0
mov edx, dword [esp + 0x40]
mov ecx, esi
push 1
push 1
call fcn.1001c920
sub eax, dword [esp + 0x40]
add esp, 8
cmp dword [esi + 0xe4], 0
mov dword [esp + 0x44], eax
je 0x1002ba3f
mov dword [esp + 0x10], 0xffffffff
jmp 0x1002ba4c
lea ecx, [esp + 0x20]
call fcn.10028940
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
mov edi, ebx
test esi, esi
je 0x1002ba77
nop word [eax + eax]
mov eax, dword [edi]
test eax, eax
je 0x1002ba6f
push eax
call fcn.1003ba4d
add esp, 4
add edi, 4
sub esi, 1
jne 0x1002ba60
push ebx
call fcn.1003ba4d
add esp, 4
jmp 0x1002baad
mov eax, dword [esi + 0x35c]
mov dword [esp + 0x28], eax
call fcn.10029170
mov eax, dword [esp + 0x40]
mov edx, str..pdata
mov ecx, esi
mov dword [esi + 0x3c4], eax
call fcn.1001c4d0
mov dword [esi + 0x3b8], eax
mov ebx, dword [esp + 0x78]
xor eax, eax
mov dword [esp + 0x14], eax
test ebx, ebx
jle 0x1002bb07
nop dword [eax + eax]
mov ecx, dword [esp + 0x74]
mov esi, dword [ecx + eax*4]
cmp dword [esi + 4], 0
mov edi, dword [esi + 8]
je 0x1002bae8
mov eax, dword [edi]
test eax, eax
je 0x1002badf
push eax
call fcn.1003ba4d
add esp, 4
add edi, 4
add dword [esi + 4], 0xffffffff
jne 0x1002bad0
push dword [esi + 8]
call fcn.1003ba4d
mov eax, dword [esp + 0x18]
add esp, 4
inc eax
mov dword [esi + 8], 0
mov dword [esp + 0x14], eax
cmp eax, ebx
jl 0x1002bac0
mov eax, dword [esp + 0x74]
mov esi, eax
test ebx, ebx
je 0x1002bb32
mov edi, ebx
mov eax, dword [esi]
test eax, eax
je 0x1002bb24
push eax
call fcn.1003ba4d
add esp, 4
mov ebx, edi
add esi, 4
add ebx, 0xffffffff
mov edi, ebx
jne 0x1002bb13
mov eax, dword [esp + 0x74]
push eax
call fcn.1003ba4d
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret