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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x64]
xor ebp, ebp
mov ebx, ebp
mov dword [esp + 0x24], ebx
cmp dword [edi + 0x44], ebp
je 0x101683a4
cmp dword [edi + 0x34], ebp
jne 0x101683a4
test dword [edi + 4], 0x100000
jne 0x101683a4
mov esi, dword [esp + 0x60]
push esi
call fcn.1014a41d
mov ebx, dword [esi]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x44]
push ebp
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 4]
push 0x50
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x4c], eax
call fcn.10141c12
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x10168074
push 7
push ebx
call fcn.10143484
pop ecx
pop ecx
jmp 0x101683a6
lea eax, [esp + 0x40]
push esi
push eax
call fcn.1013adfd
lea eax, [esp + 0x48]
push edi
push eax
call fcn.10163f18
mov eax, dword [edi + 4]
xor ecx, ecx
and eax, 0xfffffff7
mov dword [edi + 0x20], ecx
or eax, 0x100000
mov dword [edi + 0x24], ecx
mov dword [edi + 4], eax
mov eax, dword [esp + 0x24]
push 1
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
push dword [eax + 8]
push ecx
push esi
call fcn.10129fae
mov ecx, dword [esp + 0x34]
push 1
push dword [ecx + 0xc]
push eax
push esi
call fcn.10129fae
mov edx, eax
add esp, 0x30
mov dword [esp + 0x20], edx
test edx, edx
je 0x10168118
mov eax, dword [edi + 0x30]
test eax, eax
je 0x10168118
mov ecx, dword [edx]
mov eax, dword [eax]
mov dword [esp + 0x28], ecx
cmp eax, ecx
jg 0x10168118
push 0xffffffffffffffff
mov dword [edx], eax
push dword [edi + 0x30]
push edx
call fcn.1014647d
add esp, 0xc
test eax, eax
jne 0x1016810e
cmp dword [edi + 0x30], eax
je 0x1016810a
push dword [edi + 0x30]
push ebx
call fcn.1012a078
pop ecx
pop ecx
and dword [edi + 0x30], 0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x30], eax
lea eax, [esp + 0x10]
add dword [esi + 0x28], 4
push eax
push ebp
push dword [edi + 0x1c]
push dword [esp + 0x24]
push ebx
push esi
call fcn.1014ecdb
lea eax, [esp + 0x28]
push eax
push ebp
push dword [edi + 0x30]
push dword [esp + 0x3c]
push ebx
push esi
call fcn.1014ecdb
mov eax, dword [esp + 0x40]
add esp, 0x30
test eax, eax
je 0x1016815d
mov ecx, dword [eax]
jmp 0x1016815f
xor ecx, ecx
push 0
push dword [ebx + 8]
mov dword [ebx + 0x4c], ecx
push eax
push esi
call fcn.10129fae
push 0
push dword [ebx + 0xc]
push eax
push esi
call fcn.10129fae
mov edx, dword [esp + 0x34]
mov ebx, eax
add esp, 0x20
mov dword [esp + 0x10], ebx
mov edi, edx
mov eax, dword [edi + 0x48]
mov ecx, dword [eax + 0x14]
mov eax, dword [edi + 0x2c]
test dword [eax + 4], 0x100000
je 0x101681c7
lea eax, [esp + 0x10]
push eax
push ebp
push ecx
push dword [esp + 0x24]
push edx
push esi
call fcn.1014ecdb
mov ebx, dword [esp + 0x28]
add esp, 0x18
test ebx, ebx
je 0x101681bc
mov eax, dword [ebx]
jmp 0x101681be
xor eax, eax
mov dword [edi + 0x50], eax
mov byte [edi + 0x60], 1
jmp 0x101681e7
test ebx, ebx
je 0x101681cf
mov eax, dword [ebx]
jmp 0x101681d1
xor eax, eax
push 0
push ecx
push ebx
push esi
mov dword [edi + 0x50], eax
call fcn.10129fae
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x10], ebx
cmp dword [edi + 0x28], 0
je 0x1016820c
push 0
push dword [edi + 0x28]
push dword [esp + 0x24]
call fcn.101458f3
push eax
push ebx
push esi
call fcn.101462ca
mov ebx, eax
add esp, 0x18
mov dword [esp + 0x10], ebx
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x34], eax
inc dword [esi + 0x2c]
push dword [edi + 0x34]
mov eax, dword [esi + 0x2c]
push 0
push 0x48
push dword [esp + 0x38]
mov dword [edi + 0x38], eax
call fcn.101596d3
mov edi, dword [edi + 0x24]
add esp, 0x10
mov edx, dword [esp + 0x14]
test edi, edi
jne 0x10168189
mov edi, dword [esp + 0x64]
test ebx, ebx
jne 0x10168269
push 0x10266800
push 0x98
push dword [esp + 0x24]
call fcn.1014ecdb
push eax
push 0
push esi
call fcn.101462ca
add esp, 0x18
mov ebx, eax
push 0
push 0
push dword [esp + 0x28]
push dword [esp + 0x3c]
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esp + 0x30]
push ebx
push esi
call fcn.10155644
mov ebx, eax
xor eax, eax
push eax
push eax
push eax
push esi
call fcn.10155914
add esp, 0x34
mov dword [edi + 0x20], eax
test eax, eax
je 0x10168365
mov dword [eax + 0x1c], ebx
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x38], ecx
test ecx, ecx
je 0x101682f1
xor eax, eax
mov dword [esp + 0x64], eax
cmp dword [ecx], eax
jle 0x101682f1
lea edx, [ecx + 0x34]
cmp dword [edx], 0
jge 0x101682e5
mov eax, dword [esi + 0x28]
mov dword [edx], eax
inc dword [esi + 0x28]
mov eax, dword [edx - 0x18]
test eax, eax
je 0x101682e1
push dword [eax + 0x20]
push esi
call fcn.10155b0f
pop ecx
pop ecx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x64]
inc eax
add edx, 0x48
mov dword [esp + 0x64], eax
cmp eax, dword [ecx]
jl 0x101682be
or dword [ebx + 4], 0x40
push 0x40
push ebx
push esi
call fcn.10152f15
mov ecx, dword [esp + 0x48]
add esp, 0xc
and ecx, 8
mov dword [esp + 0x64], eax
or dword [ebx + 4], ecx
test eax, eax
jne 0x10168318
push 7
pop ebx
jmp 0x10168375
push 0x50
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
or dword [ebp + 0x24], 2
mov eax, dword [edi + 0x20]
push 0x1c
push 0
mov dword [eax + 0x18], ebp
lea eax, [esp + 0x54]
mov ebp, dword [esp + 0x78]
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [esp + 0x58]
mov dword [esp + 0x5c], 0x10167f10
push ebx
push eax
mov dword [esp + 0x68], 0x10164060
mov dword [esp + 0x6c], 0x10164050
call fcn.10163f18
add esp, 0x20
jmp 0x10168371
push ebx
push dword [esp + 0x20]
call fcn.101553e2
pop ecx
pop ecx
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x51], 0
je 0x10168386
push 7
pop ebx
test ebp, ebp
je 0x10168393
push ebp
push eax
call fcn.10141a5b
pop ecx
pop ecx
test ebx, ebx
je 0x101683a4
cmp dword [esi + 0x24], 0
jne 0x101683a4
push 7
push dword [esi]
call fcn.10143484
pop ecx
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret