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

Disassembly:
sub esp, 0x7c
mov edx, dword [esp + 0x80]
xor eax, eax
or dword [esp + 0x24], 0xffffffff
inc eax
push ebx
push ebp
mov ebx, dword [edx]
push esi
mov esi, dword [edx + 0xc]
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 4]
add ebp, 8
mov dword [esp + 0x10], ebx
movzx eax, byte [esi + 0x10]
imul ecx, eax, 0x48
mov eax, dword [edx + 4]
push edi
xor edi, edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x18], eax
add ebp, ecx
mov dword [esp + 0x24], ebp
mov ebx, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x10], ecx
test ebx, ebx
jne 0x1016fa05
test byte [ecx + 0x24], 0x80
je 0x1016f992
mov ebx, dword [ecx + 8]
jmp 0x1016fa05
push 0x48
lea eax, [esp + 0x48]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x1c]
xor eax, eax
inc eax
mov byte [esp + 0x86], 5
mov word [esp + 0x82], ax
add esp, 0xc
mov word [esp + 0x78], ax
lea eax, [esp + 0x34]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov ax, word [ecx + 0x30]
or dword [esp + 0x7c], 3
mov word [esp + 0x74], ax
mov ax, word [ecx + 0x2e]
mov word [esp + 0x28], ax
xor eax, eax
mov word [esp + 0x2a], ax
test byte [ebp + 0x28], 1
jne 0x1016fa01
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0x58], eax
lea ebx, [esp + 0x44]
movzx eax, word [ecx + 0x2e]
push eax
mov dword [esp + 0x34], eax
call fcn.10128383
pop ecx
mov ecx, dword [esp + 0x90]
movzx eax, ax
mov dword [esp + 0x2c], eax
cmp dword [ecx + 0x10], edi
jne 0x1016fb6f
mov eax, dword [esp + 0x14]
test byte [eax + 0x28], 0x20
jne 0x1016fb6f
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
and eax, 0x8000
or eax, 0
je 0x1016fb6f
cmp dword [ebp + 0x44], edi
jne 0x1016fb6f
test byte [ebp + 0x28], 1
jne 0x1016fb6f
mov eax, dword [esp + 0x10]
test byte [eax + 0x24], 0x80
jne 0x1016fb6f
test byte [ebp + 0x28], 0x28
jne 0x1016fb6f
mov edx, dword [esp + 0x18]
imul eax, dword [edx + 0xc], 0x30
mov ebp, dword [edx + 0x14]
add eax, ebp
mov dword [esp + 0x1c], eax
cmp ebp, eax
jae 0x1016fb64
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
and ecx, dword [ebp + 0x20]
and eax, dword [ebp + 0x24]
or ecx, eax
jne 0x1016fb50
push ecx
push ecx
push dword [esp + 0x2c]
push ebp
call fcn.1021b520
add esp, 0x10
test eax, eax
je 0x1016fb50
mov edx, dword [esp + 0x2c]
xor eax, eax
and dword [esi + 0x20], eax
xor ecx, ecx
mov word [esi + 0x2a], ax
inc ecx
mov eax, dword [esi + 0x30]
mov word [esi + 0x18], cx
mov word [esi + 0x28], cx
mov ecx, dword [esp + 0x30]
mov dword [eax], ebp
add ecx, edx
mov eax, dword [esp + 0x10]
mov word [esi + 0x12], cx
cmp dword [eax + 0xc], 0
jne 0x1016faf7
test byte [eax + 0x24], 2
lea eax, [ecx + 0x1c]
je 0x1016fafa
lea eax, [ecx - 0xa]
movzx eax, ax
mov word [esi + 0x12], ax
test ax, ax
jns 0x1016fb0c
xor eax, eax
mov word [esi + 0x12], ax
push 0x2b
pop eax
push eax
push edx
mov word [esi + 0x16], ax
call fcn.1014cdff
mov ecx, dword [esp + 0x9c]
mov word [esi + 0x14], ax
mov dword [esi + 0x24], 0x4000
mov eax, dword [ebp + 0x24]
or ecx, dword [ebp + 0x20]
or eax, dword [esp + 0xa0]
push esi
push dword [esp + 0x9c]
mov dword [esi], ecx
mov dword [esi + 4], eax
call fcn.1021b520
add esp, 0x10
mov edi, eax
mov eax, dword [esp + 0x1c]
add ebp, 0x30
test edi, edi
je 0x1016fa8a
jmp 0x1016fe0b
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x90]
test ebx, ebx
je 0x1016fe0b
movzx eax, byte [ebp + 0x24]
shr eax, 5
and eax, 1
cmp dword [ebx + 0x24], 0
je 0x1016fba9
push dword [ebx + 0x24]
push dword [esp + 0x1c]
push eax
push dword [ebp + 0x2c]
call fcn.10172df6
mov ecx, dword [esp + 0xa0]
add esp, 0x10
test eax, eax
je 0x1016fdf2
test dword [ebx + 0x38], 0x100
jne 0x1016fdf2
mov eax, dword [ebx + 8]
movzx edi, word [eax]
xor eax, eax
mov dword [esi + 0x18], eax
mov word [esi + 0x1c], ax
mov dword [esi + 0x28], eax
mov byte [esi + 0x11], al
mov word [esi + 0x12], ax
mov eax, dword [esp + 0x94]
mov dword [esi], eax
mov eax, dword [esp + 0x98]
mov dword [esi + 4], eax
mov word [esi + 0x16], di
mov dword [esi + 0x20], ebx
push dword [ebp + 0x2c]
mov dword [esp + 0x20], edi
push ebx
push ecx
call fcn.1012e080
mov ecx, dword [ebx + 0x38]
add esp, 0xc
and ecx, 3
mov dword [esp + 0x2c], eax
cmp cl, 3
jne 0x1016fc2e
mov ecx, dword [esp + 0x20]
xor edx, edx
test eax, eax
movzx ecx, cl
lea eax, [edi + 0x10]
mov dword [esi + 0x24], 0x100
cmovne edx, ecx
mov word [esi + 0x14], ax
mov byte [esi + 0x11], dl
push edi
jmp 0x1016fd98
test byte [ebx + 0x38], 0x20
je 0x1016fc50
xorps xmm0, xmm0
mov eax, 0x240
movlpd qword [esp + 0x3c], xmm0
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x30], edx
jmp 0x1016fc6e
mov edi, dword [ebx + 0x40]
and edi, dword [ebp + 0x38]
mov edx, dword [ebx + 0x44]
mov eax, edi
and edx, dword [ebp + 0x3c]
or eax, edx
mov dword [esp + 0x30], edx
mov eax, 0x240
je 0x1016fc6e
add eax, 0xffffffc0
cmp dword [esp + 0x2c], 0
mov dword [esi + 0x24], eax
jne 0x1016fcd9
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x24], 0x80
jne 0x1016fcd9
cmp dword [ebx + 0x24], 0
jne 0x1016fcd9
test byte [ebp + 0x28], 2
jne 0x1016fcd9
mov eax, edi
or eax, edx
jne 0x1016fdc0
test byte [ebx + 0x38], 4
jne 0x1016fdc0
mov ax, word [ebx + 0x30]
cmp ax, word [ecx + 0x30]
jge 0x1016fdc0
mov eax, dword [esp + 0x14]
test byte [eax + 0x28], 4
jne 0x1016fdc0
cmp byte [0x1030db37], 0
je 0x1016fdc0
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x4c], 0x20
jne 0x1016fdc0
mov eax, dword [esp + 0x20]
xor ecx, ecx
cmp dword [esp + 0x2c], ecx
movzx eax, al
cmovne ecx, eax
mov byte [esi + 0x11], cl
movsx eax, word [ebx + 0x30]
mov ecx, dword [esp + 0x10]
imul eax, eax, 0xf
movsx ecx, word [ecx + 0x30]
cdq
idiv ecx
mov ecx, dword [esp + 0x1c]
inc eax
add eax, ecx
or edi, dword [esp + 0x30]
mov word [esi + 0x14], ax
je 0x1016fd97
and dword [esp + 0x30], 0
lea eax, [ecx + 0x10]
mov ecx, dword [ebp + 0x2c]
movzx edi, ax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
cmp dword [eax + 0x5c], 0
jle 0x1016fd82
mov esi, dword [esp + 0x30]
xor ebp, ebp
mov eax, dword [eax + 0x64]
add eax, ebp
push ebx
push ecx
mov dword [esp + 0x38], eax
push dword [eax]
call fcn.1021b520
add esp, 0xc
test eax, eax
je 0x1016fd7a
mov eax, dword [esp + 0x30]
movzx ecx, word [eax + 8]
test cx, cx
jg 0x1016fd5f
add edi, ecx
jmp 0x1016fd69
dec edi
test byte [eax + 0xc], 0x82
je 0x1016fd69
sub edi, 0x13
mov eax, dword [esp + 0x14]
inc esi
mov ecx, dword [esp + 0x2c]
add ebp, 0x30
cmp esi, dword [eax + 0x5c]
jl 0x1016fd35
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x24]
movzx eax, word [esi + 0x14]
push edi
push eax
call fcn.1014cdff
pop ecx
pop ecx
mov ecx, dword [esp + 0x1c]
mov word [esi + 0x14], ax
push ecx
push esi
push dword [esp + 0x20]
call fcn.101713e9
push esi
push dword [esp + 0xa0]
call fcn.1021b520
mov edi, eax
add esp, 0x14
mov eax, dword [esp + 0x1c]
mov word [esi + 0x16], ax
test edi, edi
jne 0x1016fe0b
mov eax, dword [esp + 0x90]
push 0
push ebx
push ebp
push eax
mov byte [eax + 0x14], 0
call fcn.1016fe15
mov ecx, dword [esp + 0xa0]
add esp, 0x10
mov edi, eax
cmp byte [ecx + 0x14], 1
jne 0x1016fdf2
mov eax, dword [esp + 0x10]
or dword [eax + 0x24], 0x100
cmp dword [ebp + 0x44], 0
je 0x1016fdfc
xor ebx, ebx
jmp 0x1016fdff
mov ebx, dword [ebx + 0x14]
inc dword [esp + 0x20]
test edi, edi
je 0x1016fb6f
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret