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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ecx + 4], 0
mov dword [ecx], 0x102b41d4
mov eax, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, dword [ebp + 8]
call ebx
mov dword [esi + 8], eax
mov edx, 8
cmp dword [edi + 4], 0x30a2
je 0x100133a5
movzx ecx, byte [edi + 0x120b]
mov ebx, dword [edi + 0xc]
cmp ebx, 3
jl 0x10013395
mov edx, dword [edi + 0x10]
test edx, edx
je 0x100139e1
cmp edx, 2
je 0x100139f0
cmp edx, 1
jne 0x10013395
xor edx, edx
test cl, cl
setne dl
or edx, 4
jmp 0x100133a5
cmp ebx, 1
mov edx, 2
cmovne edx, ecx
test cl, cl
cmovne edx, ecx
mov dword [ebp - 0x10], eax
mov dword [esi + 0xc], edx
mov ecx, dword [eax]
mov ebx, dword [ecx + 4]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, dword [ebp - 0x10]
call ebx
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
mov ebx, dword [ebp + 0x10]
add ebx, 0x2dc
push 0x248
push 0
mov dword [ebp - 0x14], ecx
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x10], ebx
push ebx
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
je 0x100133f8
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
add esp, 4
mov eax, dword [0x10398290]
test eax, eax
jne 0x1001341b
xor eax, eax
cmp byte [0x1039bc64], 0
jne 0x1001341b
call fcn.1023f920
mov byte [0x1039bc64], al
mov eax, dword [0x10398290]
inc eax
mov dword [0x10398290], eax
push dword [ebp - 0x10]
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
test eax, eax
je 0x10013439
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
add esp, 4
push dword [ebp - 0x14]
call fcn.102b1f60
add esp, 4
mov eax, dword [edi + 0x230]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x234]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x28c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x170]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x290]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x180]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x23c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x30], eax
movzx eax, byte [edi + 0x11cf]
mov dword [esi + 0x34], eax
movzx eax, byte [edi + 0x11af]
mov dword [esi + 0x4c], eax
movzx eax, byte [edi + 0x11d0]
mov dword [esi + 0x54], eax
movzx eax, byte [edi + 0x1240]
mov dword [esi + 0x94], eax
movzx eax, byte [edi + 0x11e0]
mov dword [esi + 0x38], eax
movzx eax, byte [edi + 0x11e1]
mov dword [esi + 0x3c], eax
movzx eax, byte [edi + 0x11eb]
mov dword [esi + 0x40], eax
movzx eax, byte [edi + 0x11ee]
mov dword [esi + 0x68], eax
movzx eax, byte [edi + 0x121f]
mov dword [esi + 0x44], eax
movzx eax, byte [edi + 0x1243]
mov dword [esi + 0x90], eax
movzx eax, byte [edi + 0x1241]
mov dword [esi + 0x88], eax
movzx eax, byte [edi + 0x1242]
mov dword [esi + 0x8c], eax
movzx eax, byte [edi + 0x122a]
mov dword [esi + 0x98], eax
movzx eax, byte [edi + 0x11ac]
mov dword [esi + 0x9c], eax
movzx eax, byte [edi + 0x1236]
mov dword [esi + 0xa0], eax
movzx eax, byte [edi + 0x1237]
mov dword [esi + 0xa4], eax
movzx eax, byte [edi + 0x123c]
mov dword [esi + 0xa8], eax
movzx eax, byte [edi + 0x1245]
mov dword [esi + 0xb0], eax
movzx eax, byte [edi + 0x124e]
mov dword [esi + 0xc0], eax
movzx eax, byte [edi + 0x124f]
mov dword [esi + 0xc4], eax
mov dword [esi + 0xe0], 1
movzx eax, byte [edi + 0x11d2]
mov dword [esi + 0x50], eax
movzx eax, byte [edi + 0x11d3]
mov dword [esi + 0x70], eax
movzx eax, byte [edi + 0x11d8]
mov dword [esi + 0x74], eax
mov eax, dword [edi + 0x11d4]
mov dword [esi + 0xf8], eax
movzx eax, byte [edi + 0x11ca]
mov dword [esi + 0x78], eax
movzx eax, byte [edi + 0x11cb]
mov dword [esi + 0x7c], eax
movzx eax, byte [edi + 0x1244]
mov dword [esi + 0xac], eax
movzx eax, byte [edi + 0x1247]
mov dword [esi + 0xb4], eax
movzx eax, byte [edi + 0x1248]
mov dword [esi + 0xb8], eax
movzx eax, byte [edi + 0x1249]
mov dword [esi + 0xbc], eax
movzx eax, byte [edi + 0x1255]
mov dword [esi + 0xcc], eax
movzx eax, byte [edi + 0x1256]
mov dword [esi + 0xd0], eax
movzx eax, byte [edi + 0x1257]
mov dword [esi + 0x80], eax
movzx eax, byte [edi + 0x11d1]
mov dword [esi + 0x60], eax
movzx eax, byte [edi + 0x1258]
mov dword [esi + 0xd8], eax
mov eax, dword [edi + 0x238]
lea ecx, [eax + 3]
test eax, eax
cmovns ecx, eax
sar ecx, 2
mov dword [esi + 0xe4], ecx
mov eax, dword [edi + 0x240]
lea ecx, [eax + 3]
test eax, eax
cmovns ecx, eax
sar ecx, 2
mov dword [esi + 0xe8], ecx
mov eax, dword [edi + 0x24c]
mov dword [esi + 0xec], eax
mov eax, dword [edi + 0x250]
mov dword [esi + 0xf0], eax
movzx eax, byte [edi + 0x122d]
mov dword [esi + 0x48], eax
mov eax, dword [edi + 0x1230]
mov dword [esi + 0xf4], eax
mov eax, dword [edi + 0x318]
mov dword [esi + 0x208], eax
mov eax, dword [edi + 0x31c]
mov dword [esi + 0x20c], eax
mov eax, dword [edi + 0x320]
mov dword [esi + 0x210], eax
movzx eax, byte [edi + 0x1250]
mov dword [esi + 0xd4], eax
mov eax, dword [edi + 0x2d4]
mov dword [esi + 0x11c], eax
mov eax, dword [edi + 0x248]
mov dword [esi + 0x114], eax
mov eax, dword [edi + 0x244]
mov dword [esi + 0x110], eax
mov eax, dword [edi + 0x2ac]
mov dword [esi + 0x118], eax
mov eax, dword [edi + 0x1e8]
mov dword [esi + 0x120], eax
mov eax, dword [edi + 0x1f8]
mov dword [esi + 0x124], eax
mov eax, dword [edi + 0x1fc]
mov dword [esi + 0x128], eax
mov eax, dword [edi + 0x2b0]
mov dword [esi + 0x12c], eax
mov eax, dword [edi + 0x294]
mov dword [esi + 0x134], eax
mov eax, dword [edi + 0x298]
mov dword [esi + 0x130], eax
mov eax, dword [edi + 0x254]
mov dword [esi + 0x138], eax
mov eax, dword [edi + 0x260]
mov dword [esi + 0x144], eax
mov eax, dword [edi + 0x258]
mov dword [esi + 0x13c], eax
mov eax, dword [edi + 0x264]
mov dword [esi + 0x148], eax
mov eax, dword [edi + 0x25c]
mov dword [esi + 0x140], eax
mov eax, dword [edi + 0x268]
mov dword [esi + 0x14c], eax
mov eax, dword [edi + 0x1b4]
mov dword [esi + 0x150], eax
mov eax, dword [edi + 0x184]
mov dword [esi + 0x154], eax
mov eax, dword [edi + 0x1e4]
mov dword [esi + 0x158], eax
mov eax, dword [edi + 0x1cc]
mov dword [esi + 0x15c], eax
mov eax, dword [edi + 0x1d0]
mov dword [esi + 0x160], eax
mov eax, dword [edi + 0x1e0]
mov dword [esi + 0x164], eax
mov eax, dword [edi + 0x2a8]
mov dword [esi + 0x168], eax
mov eax, dword [edi + 0x29c]
mov dword [esi + 0x16c], eax
mov eax, dword [edi + 0x1b8]
mov dword [esi + 0x170], eax
mov eax, dword [edi + 0x1c8]
mov dword [esi + 0x174], eax
mov eax, dword [edi + 0x2a4]
mov dword [esi + 0x178], eax
mov eax, dword [edi + 0x2a0]
mov dword [esi + 0x17c], eax
mov eax, dword [edi + 0x274]
mov dword [esi + 0x180], eax
mov eax, dword [edi + 0x2b4]
mov dword [esi + 0x184], eax
movss xmm0, dword [edi + 0x50]
movss dword [esi + 0x188], xmm0
cmp dword [edi + 0xc], 2
jne 0x10013847
cmp byte [edi + 0x11af], 0
jne 0x10013847
mov dword [esi + 0x30], 1
movzx eax, byte [edi + 0x1220]
mov dword [esi + 0x84], eax
mov eax, dword [edi + 0x1ac]
mov dword [esi + 0x18c], eax
mov eax, dword [edi + 0x164]
mov dword [esi + 0x190], eax
mov eax, dword [edi + 0x2e0]
mov dword [esi + 0x194], eax
mov eax, dword [edi + 0x2e4]
mov dword [esi + 0x198], eax
mov eax, dword [edi + 0x2e8]
mov dword [esi + 0x19c], eax
mov eax, dword [edi + 0x2ec]
mov dword [esi + 0x1a0], eax
mov eax, dword [edi + 0x17c]
mov dword [esi + 0x1a4], eax
mov eax, dword [edi + 0x1c4]
mov dword [esi + 0x1a8], eax
mov eax, dword [edi + 0x1dc]
mov dword [esi + 0x1ac], eax
mov eax, dword [edi + 0x194]
mov dword [esi + 0x1b0], eax
mov eax, dword [edi + 0x2f0]
mov dword [esi + 0x1b4], eax
mov eax, dword [edi + 0x1f4]
mov dword [esi + 0x1b8], eax
movzx eax, byte [edi + 0x1253]
mov dword [esi + 0xc8], eax
mov eax, dword [edi + 0x2f4]
mov dword [esi + 0x1bc], eax
mov eax, dword [edi + 0x2f8]
mov dword [esi + 0x1c0], eax
mov eax, dword [edi + 0x174]
mov dword [esi + 0x1c4], eax
mov eax, dword [edi + 0x1a4]
mov dword [esi + 0x1c8], eax
mov eax, dword [edi + 0x2fc]
mov dword [esi + 0x1cc], eax
mov eax, dword [edi + 0x1ec]
mov dword [esi + 0x1d0], eax
mov eax, dword [edi + 0x1d4]
mov dword [esi + 0x1d4], eax
mov eax, dword [edi + 0x1bc]
mov dword [esi + 0x1d8], eax
mov eax, dword [edi + 0x300]
mov dword [esi + 0x1dc], eax
mov eax, dword [edi + 0x304]
mov dword [esi + 0x1e0], eax
mov eax, dword [edi + 0x308]
mov dword [esi + 0x1e4], eax
mov eax, dword [edi + 0x30c]
mov dword [esi + 0x1e8], eax
mov eax, dword [edi + 0x310]
mov dword [esi + 0x1ec], eax
mov eax, dword [edi + 0x178]
mov dword [esi + 0x1f0], eax
mov eax, dword [edi + 0x1a8]
mov dword [esi + 0x1f4], eax
mov eax, dword [edi + 0x1f0]
mov dword [esi + 0x1f8], eax
mov eax, dword [edi + 0x1d8]
mov dword [esi + 0x1fc], eax
mov eax, dword [edi + 0x1c0]
mov dword [esi + 0x200], eax
mov eax, dword [edi + 0x314]
mov dword [esi + 0x204], eax
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
xor edx, edx
test cl, cl
setne dl
or edx, 2
jmp 0x100133a5
mov edx, 6
jmp 0x100133a5