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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101a3a32
mov eax, dword fs:[0]
push eax
sub esp, 0x190
push ebx
push esi
push edi
mov eax, dword [0x10218460]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
mov ebx, dword [ebp + 8]
push ebx
call fcn.1005e6c0
push 1
push 0x10220588
mov esi, 0x66
mov eax, ebx
call fcn.10066a10
mov esi, eax
add esp, 8
cmp esi, 0x66
jge 0x100412b3
push 1
lea eax, [esp + 0xc0]
push eax
call fcn.1000a870
lea eax, [esp + 0x2c]
mov dword [esp + 0x1a8], 0
call fcn.1006ba70
push 1
lea ecx, [esp + 0x78]
call fcn.1004a720
push 1
lea ecx, [esp + 0x54]
call fcn.1004a720
push 1
lea ecx, [esp + 0x9c]
call fcn.1004a720
lea eax, [esp + 0x18]
call fcn.1006c630
mov byte [esp + 0x1a8], 5
cmp dword [ebx + 0xc], 2
je 0x100410a4
push ebx
lea ecx, [esp + 0xc0]
call fcn.1000bc70
push ebx
lea ecx, [esp + 0x30]
call fcn.1006bfd0
push ebx
lea ecx, [esp + 0x8c]
call fcn.1004a9e0
push ebx
lea ecx, [esp + 0x68]
call fcn.1004a9e0
push ebx
lea ecx, [esp + 0xb0]
call fcn.1004a9e0
cmp esi, 0x65
jl 0x10041091
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.1006c850
jmp 0x10041160
mov edx, dword [esp + 0x3c]
push edx
lea eax, [esp + 0x1c]
call fcn.10041560
jmp 0x10041160
mov edi, 0x101b6898
call fcn.1005b870
mov eax, dword [esp + 0xbc]
mov ebx, dword [ebp + 8]
mov edx, dword [eax + 0x10]
push ebx
lea ecx, [esp + 0xc0]
call edx
mov edi, 0x101b68a4
call fcn.1005b870
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x10]
push ebx
lea ecx, [esp + 0x30]
call edx
mov edi, str.pos_arr_
call fcn.1005b870
mov eax, dword [esp + 0x88]
mov edx, dword [eax + 0x10]
push ebx
lea ecx, [esp + 0x8c]
call edx
mov edi, str.rng_arr_
call fcn.1005b870
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 0x10]
push ebx
lea ecx, [esp + 0x68]
call edx
mov edi, str.stp_arr_
call fcn.1005b870
mov eax, dword [esp + 0xac]
mov edx, dword [eax + 0x10]
push ebx
lea ecx, [esp + 0xb0]
call edx
cmp esi, 0x65
jl 0x1004114e
mov edi, str.tag_list_
call fcn.1005b870
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call fcn.1006c850
jmp 0x1004115c
mov ecx, dword [esp + 0x3c]
push ecx
lea eax, [esp + 0x1c]
call fcn.10041560
mov edi, dword [esp + 0x10]
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
mov ecx, edi
call eax
lea ebx, [edi + 8]
lea ecx, [esp + 0xbc]
call fcn.10063cc0
xor edi, edi
xor esi, esi
cmp dword [esp + 0x3c], edi
jle 0x1004120e
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
mov edi, edi
mov eax, dword [esp + 0x20]
cmp eax, esi
jge 0x100411aa
mov ebx, dword [ebx + 0x28]
add eax, 1
cmp eax, esi
jl 0x10041198
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
jle 0x100411c2
lea esp, [esp]
mov ebx, dword [ebx + 0x24]
sub eax, 1
cmp eax, esi
jg 0x100411b0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + ecx + 8]
mov edx, dword [esp + 0x9c]
push eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x2c], ecx
lea ecx, [edi + edx]
lea edx, [edi + eax]
mov eax, dword [esp + 0x7c]
add eax, edi
push eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.10040b60
add dword [esp + 0x14], 0xc
add esi, 1
add edi, 0x10
cmp esi, dword [esp + 0x3c]
jl 0x10041190
lea esi, [esp + 0x18]
mov byte [esp + 0x1a8], 4
call fcn.10041780
lea ecx, [esp + 0x98]
mov byte [esp + 0x1a8], 3
call fcn.1004a840
mov esi, vtable.ert_RefCounter.0
lea ecx, [esp + 0x50]
mov dword [esp + 0xb4], esi
mov byte [esp + 0x1a8], 2
call fcn.1004a840
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], esi
mov byte [esp + 0x1a8], 1
call fcn.1004a840
lea ecx, [esp + 0x2c]
mov dword [esp + 0x90], esi
mov byte [esp + 0x1a8], 0
call fcn.1006bc70
lea ecx, [esp + 0x190]
mov dword [esp + 0x48], esi
mov dword [esp + 0x1a8], 0xffffffff
call fcn.1000ab00
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0xc], 2
je 0x100412c7
push ebx
lea ecx, [edi + 8]
call fcn.10063f30
lea ecx, [edi + 0x14]
jmp 0x100412eb
mov edi, str.ref_graph_ref_
call fcn.1005b870
mov esi, dword [esp + 0x10]
push ebx
lea ecx, [esi + 8]
call fcn.10063f30
mov edi, str.local_list_
call fcn.1005b870
lea ecx, [esi + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push ebx
call eax
mov eax, ebx
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4