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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x94
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [0x1026ec48]
sub eax, dword [0x1026ec44]
push ebx
sar eax, 2
push esi
push edi
test eax, eax
je 0x1002eede
cmp eax, 0x3fffffff
ja 0x1002f37c
lea esi, [eax*4]
cmp esi, 0x1000
jb 0x1002ee9a
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x1002f381
push eax
call fcn.101832c9
add esp, 4
test eax, eax
je 0x1002ee94
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x1002eead
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
test esi, esi
je 0x1002eeab
push esi
call fcn.101832c9
add esp, 4
mov ebx, eax
jmp 0x1002eead
xor ebx, ebx
lea eax, [ebx + esi]
mov dword [esp + 0x14], ebx
mov esi, dword [0x1026ec48]
mov dword [esp + 0x78], eax
mov eax, dword [0x1026ec44]
sub esi, eax
push esi
push eax
push ebx
mov dword [esp + 0x7c], ebx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
sar esi, 2
lea eax, [ebx + esi*4]
mov dword [esp + 0x74], eax
mov eax, dword [0x1026ec50]
mov ecx, dword [0x1026ec58]
sub ecx, dword [0x1026ec54]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x7c], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, 0x2aaaaaab
imul ecx
mov dword [esp + 0x28], 0
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x1002ef7d
cmp esi, 0xaaaaaaa
ja 0x1002f386
push esi
call fcn.10016d60
mov edi, dword [0x1026ec58]
lea ecx, [esi + esi*2]
mov esi, dword [0x1026ec54]
mov ebx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ebx
lea ecx, [eax + ecx*8]
mov dword [esp + 0x30], ecx
cmp esi, edi
je 0x1002ef6c
push esi
mov ecx, ebx
call fcn.100140f0
add esi, 0x18
add ebx, 0x18
cmp esi, edi
jne 0x1002ef56
mov dword [esp + 0x18], ebx
push ecx
mov edx, ebx
mov ecx, ebx
call fcn.10004d80
add esp, 4
mov dword [esp + 0x2c], ebx
mov eax, dword [0x1026ec44]
cmp eax, dword [0x1026ec48]
je 0x1002ef8f
mov dword [0x1026ec48], eax
mov esi, dword [0x1026ec38]
mov edi, dword [0x1026ec3c]
mov dword [0x1026ec50], 0
cmp esi, edi
je 0x1002efc8
nop dword [eax]
mov ecx, esi
call fcn.100047c0
add esi, 0x18
cmp esi, edi
jne 0x1002efb0
mov eax, dword [0x1026ec38]
mov dword [0x1026ec3c], eax
mov ecx, dword [0x1026ec54]
mov edx, dword [0x1026ec58]
cmp ecx, edx
je 0x1002efeb
push ecx
call fcn.10004d80
mov eax, dword [0x1026ec54]
add esp, 4
mov dword [0x1026ec58], eax
cmp dword [0x1023968c], 0xf
lea ecx, [esp + 0x80]
push dword [0x10239688]
mov eax, 0x10239678
mov byte [esp + 0x20], 0
cmova eax, dword [0x10239678]
push eax
push dword [esp + 0x24]
call fcn.10025e90
add esp, 8
mov dword [esp + 0x24], 0
lea edx, [esp + 0x84]
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x24]
call fcn.10024ca0
add esp, 4
lea ecx, [esp + 0x80]
test eax, eax
jne 0x1002f38b
call fcn.100047c0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x1002f060
lock inc dword [ebx + 4]
mov esi, dword [esp + 0x20]
mov edi, ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
test ebx, ebx
je 0x1002f09b
lock inc dword [ebx + 4]
test ebx, ebx
je 0x1002f09b
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1002f09b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x1002f09b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test esi, esi
je 0x1002f316
mov byte [esp + 0x1c], 0
nop dword [eax + eax]
push 4
push str..lua
push dword [esp + 0x24]
lea ecx, [esp + 0x60]
call fcn.10025e90
add esp, 0xc
lea eax, [esp + 0x80]
lea edi, [esi + 0x20]
mov ecx, edi
push eax
call fcn.1002a1f0
cmp dword [esp + 0x68], 7
lea ecx, [esp + 0x54]
push dword [esp + 0x64]
cmova ecx, dword [esp + 0x58]
push ecx
mov ecx, eax
call fcn.1002a070
lea ecx, [esp + 0x80]
mov esi, eax
call fcn.100047c0
lea ecx, [esp + 0x54]
call fcn.100047c0
test esi, esi
jne 0x1002f2f9
push edi
lea ecx, [esp + 0x58]
call fcn.10021240
cmp dword [esp + 0x68], 7
lea ecx, [esp + 0x54]
mov eax, dword [esp + 0x64]
cmova ecx, dword [esp + 0x54]
lea esi, [ecx + eax*2]
mov edx, esi
call fcn.10020e30
sub esi, eax
mov dword [esp + 0x90], 0
sar esi, 1
lea ecx, [esp + 0x80]
push esi
xorps xmm0, xmm0
mov dword [esp + 0x98], 0
push eax
movaps xmmword [esp + 0x88], xmm0
call fcn.10014fb0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x84]
call fcn.10021090
lea ecx, [esp + 0x80]
call fcn.100047c0
mov ecx, dword [esp + 0x18]
mov eax, 0x2aaaaaab
mov edi, dword [esp + 0x28]
sub ecx, edi
imul ecx
mov byte [esp + 0x13], 0
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
js 0x1002f2a5
xor esi, esi
test ebx, ebx
jle 0x1002f23c
cmp ebx, esi
jbe 0x1002f377
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x1002f1ca
mov eax, dword [edi]
cmp dword [esp + 0x50], 0xf
lea ecx, [esp + 0x3c]
push dword [edi + 0x10]
cmova ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x50]
push eax
call fcn.100165e0
add esp, 8
test al, al
je 0x1002f22c
cmp dword [esp + 0x6c], esi
jbe 0x1002f398
mov ecx, dword [esp + 0x14]
mov eax, esi
shr eax, 5
lea edx, [ecx + eax*4]
mov ecx, esi
and ecx, 0x1f
mov eax, 1
shl eax, cl
mov ecx, 0x1026ec44
test dword [edx], eax
lea eax, [esp + 0x13]
push eax
setne byte [esp + 0x17]
call fcn.1002f8e0
mov al, 1
mov byte [esp + 0x13], al
jmp 0x1002f230
mov al, byte [esp + 0x13]
inc esi
add edi, 0x18
cmp ebx, esi
jg 0x1002f1ba
test al, al
jne 0x1002f250
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push eax
mov ecx, 0x1026ec44
call fcn.1002f8e0
mov eax, dword [0x1026ec3c]
lea ecx, [esp + 0x54]
push ecx
cmp eax, dword [0x1026ec40]
je 0x1002f272
mov ecx, eax
call fcn.10021240
add dword [0x1026ec3c], 0x18
jmp 0x1002f278
push eax
call fcn.10034fe0
mov eax, dword [0x1026ec58]
lea ecx, [esp + 0x3c]
push ecx
cmp eax, dword [0x1026ec5c]
je 0x1002f29a
mov ecx, eax
call fcn.100140f0
add dword [0x1026ec58], 0x18
jmp 0x1002f2a5
push eax
mov ecx, 0x1026ec54
call fcn.10035230
mov ecx, dword [esp + 0x50]
cmp ecx, 0xf
jbe 0x1002f2db
mov edx, dword [esp + 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002f2d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ee94
push ecx
push edx
call fcn.10183618
add esp, 8
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0xf
mov byte [esp + 0x3c], 0
call fcn.100047c0
lea ecx, [esp + 0x34]
call fcn.10021cc0
mov esi, dword [esp + 0x34]
test esi, esi
jne 0x1002f0b0
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
or esi, 0xffffffff
test edi, edi
je 0x1002f33c
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1002f33c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x1002f33c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test ebx, ebx
je 0x1002f35e
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x1002f35e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x1002f35e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
lea ecx, [esp + 0x28]
call fcn.10004740
lea ecx, [esp + 0x70]
call fcn.10007500
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10024920
call fcn.100074f0
call fcn.10003c10
call fcn.100074f0
push ecx
mov edx, eax
mov ecx, str.directory_iterator::directory_iterator
call fcn.1002a280
call fcn.1002fd90
int3