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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3ac
mov eax, dword [0x101025ec]
xor eax, esp
mov dword [esp + 0x3a8], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x74], ebx
push edi
mov edi, ecx
mov dword [esp + 0x1c], edi
cmp esi, 0xffffffff
jl 0x10017362
mov ecx, dword [edi]
cmp esi, dword [ecx + 4]
jge 0x10017362
cmp dword [edi + 4], 0xffffffff
je 0x10016d0c
call fcn.10016a80
mov dword [edi + 4], 0xffffffff
cmp esi, dword [edi + 0x238]
jne 0x10016d45
cmp esi, 0xffffffff
je 0x10016d4a
lea esi, [edi + 8]
mov ecx, 0x8c
mov edi, ebx
xor eax, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret 8
cmp esi, 0xffffffff
jne 0x10016da4
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [ebx], eax
xor eax, eax
mov word [ebx + 4], ax
mov dword [ebx + 0x20c], eax
mov dword [ebx + 0x210], eax
mov dword [ebx + 0x214], eax
mov dword [ebx + 0x218], eax
mov dword [ebx + 0x21c], eax
mov dword [ebx + 0x220], eax
mov dword [ebx + 0x224], eax
mov dword [ebx + 0x228], eax
mov dword [ebx + 0x22c], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi]
cmp esi, dword [ecx + 0x10]
jge 0x10016db0
call fcn.10016270
mov eax, dword [edi]
cmp dword [eax + 0x10], esi
jge 0x10016e14
mov ebx, esi
lea esp, [esp]
mov esi, dword [edi]
test esi, esi
je 0x10016e09
cmp dword [esi + 0x18], 0
je 0x10016e09
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x10016e09
mov ecx, dword [esi + 0x50]
sub esp, 0x10
mov eax, dword [esi + 0x48]
add ecx, dword [esi + 0x4c]
add eax, 0x2e
add eax, ecx
mov dword [esi + 0x10], edx
add dword [esi + 0x14], eax
lea edx, [esi + 0x28]
push 0
lea eax, [esi + 0x78]
mov ecx, esi
push 0
push eax
call fcn.10015dc0
add esp, 0x1c
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x10016dc0
mov ebx, dword [esp + 0x78]
mov ecx, dword [edi]
lea eax, [esp + 0xa0]
sub esp, 0x10
lea edx, [esp + 0x30]
push 0x104
push eax
push 0
call fcn.10015dc0
mov ecx, dword [edi]
lea eax, [esp + 0x2c]
add esp, 0x1c
lea edx, [esp + 0x78]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.10016440
add esp, 8
test eax, eax
je 0x10016e6c
mov eax, 0x700
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
mov ecx, dword [eax]
cmp byte [ecx], 0
je 0x10016e92
cmp byte [ecx + 1], 0
je 0x10016ed1
mov eax, dword [ecx + 0xc]
add eax, dword [esp + 0xc]
push 0
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x10016e99
mov eax, dword [esp + 0xc]
mov dword [ecx + 0x1c], eax
push dword [esp + 0x10]
call fcn.1002f7cc
mov ecx, dword [edi]
add esp, 4
mov esi, eax
mov edx, 1
mov dword [esp + 0xc], esi
push dword [ecx]
mov ecx, esi
push dword [esp + 0x14]
call fcn.10015730
add esp, 8
cmp eax, dword [esp + 0x10]
je 0x10016eed
push esi
call fcn.1002f7b8
add esp, 4
mov eax, 0x800
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
push 0x104
mov eax, dword [eax + 0x10]
mov dword [ebx], eax
lea eax, [esp + 0x1ac]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0xac]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [esp + 0x1a8]
nop
movzx eax, word [esi]
test ax, ax
je 0x10016f34
cmp word [esi + 2], 0x3a
jne 0x10016f34
add esi, 4
jmp 0x10016f20
cmp eax, 0x5c
jne 0x10016f3e
add esi, 2
jmp 0x10016f20
cmp eax, 0x2f
jne 0x10016f48
add esi, 2
jmp 0x10016f20
push 0x100f1e6c
push esi
call fcn.1003295d
add esp, 8
test eax, eax
je 0x10016f5f
lea esi, [eax + 8]
jmp 0x10016f20
push str..._
push esi
call fcn.1003295d
add esp, 8
test eax, eax
je 0x10016f76
lea esi, [eax + 8]
jmp 0x10016f20
push 0x100f1e84
push esi
call fcn.1003295d
add esp, 8
test eax, eax
je 0x10016f8d
lea esi, [eax + 8]
jmp 0x10016f20
push str._.._
push esi
call fcn.1003295d
add esp, 8
test eax, eax
je 0x10016fa7
lea esi, [eax + 8]
jmp 0x10016f20
push 0x104
push esi
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edx, dword [esp + 0x54]
mov eax, edx
shr eax, 0x1e
mov ecx, edx
and eax, 0xffffff01
shr ecx, 0x17
mov dword [esp + 0x74], eax
not cl
mov eax, dword [esp + 0x20]
and cl, 1
shr eax, 8
mov byte [esp + 0x14], 0
mov byte [esp + 0x78], 0
mov byte [esp + 0x18], 1
test eax, eax
je 0x10016ffc
cmp eax, 7
je 0x10016ffc
cmp eax, 0xb
je 0x10016ffc
cmp eax, 0xe
jne 0x10017035
mov eax, edx
mov cl, dl
shr eax, 1
and cl, 1
and eax, 0xffffff01
mov dword [esp + 0x14], eax
mov eax, edx
shr eax, 2
and eax, 0xffffff01
mov dword [esp + 0x78], eax
mov eax, edx
shr eax, 4
and al, 1
mov byte [esp + 0x74], al
mov eax, edx
shr eax, 5
and eax, 0xffffff01
mov dword [esp + 0x18], eax
xor eax, eax
mov edx, 0x10
cmp byte [esp + 0x74], al
cmovne eax, edx
cmp byte [esp + 0x18], 0
mov dword [ebx + 0x20c], eax
je 0x10017057
or dword [ebx + 0x20c], 0x20
cmp byte [esp + 0x14], 0
je 0x10017065
or dword [ebx + 0x20c], 2
test cl, cl
je 0x10017070
or dword [ebx + 0x20c], 1
cmp byte [esp + 0x78], 0
je 0x1001707e
or dword [ebx + 0x20c], 4
mov edx, dword [esp + 0x30]
mov esi, 0x7bc
mov eax, dword [esp + 0x38]
mov ecx, edx
mov dword [ebx + 0x228], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x22c], eax
shr ecx, 0x10
mov ax, cx
shr ax, 9
add ax, si
mov word [esp + 0x80], ax
mov eax, ecx
shr eax, 5
and ecx, 0x1f
and eax, 0xf
mov word [esp + 0x86], cx
mov word [esp + 0x82], ax
mov ax, dx
shr ax, 0xb
mov word [esp + 0x88], ax
mov eax, edx
shr eax, 5
and edx, 0x1f
and eax, 0x3f
add edx, edx
mov word [esp + 0x8a], ax
xor eax, eax
mov word [esp + 0x8e], ax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x84]
mov word [esp + 0x90], dx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ecx, dword [esp + 0x90]
xor esi, esi
cmp dword [esp + 0x10], 4
mov eax, dword [esp + 0x94]
mov dword [ebx + 0x210], ecx
mov dword [ebx + 0x214], eax
mov dword [ebx + 0x218], ecx
mov dword [ebx + 0x21c], eax
mov dword [ebx + 0x220], ecx
mov dword [ebx + 0x224], eax
jbe 0x1001731f
mov eax, dword [esp + 0xc]
mov byte [esp + 0x76], 0
lea edx, [eax + 1]
jmp 0x10017194
mov eax, dword [esp + 0xc]
movzx eax, byte [esi + eax]
mov ecx, 0x100f1e9c
mov byte [esp + 0x74], al
movzx eax, byte [esi + edx]
mov byte [esp + 0x75], al
lea eax, [esp + 0x74]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100171d0
test dl, dl
je 0x100171cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100171d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100171b0
xor eax, eax
jmp 0x100171d5
sbb eax, eax
or eax, 1
test eax, eax
je 0x100171f8
mov ecx, dword [esp + 0xc]
movzx eax, byte [esi + ecx + 2]
lea edx, [ecx + 1]
add eax, 4
add esi, eax
lea eax, [esi + 4]
cmp eax, dword [esp + 0x10]
jb 0x10017190
jmp 0x10017323
mov edx, dword [esp + 0xc]
movzx eax, byte [esi + edx + 4]
add esi, 5
mov ecx, eax
mov dword [esp + 0x10], eax
shr dword [esp + 0x10], 2
and byte [esp + 0x10], 1
shr ecx, 1
and ecx, 0xffffff01
mov dword [esp + 0x78], ecx
test al, 1
je 0x10017279
movzx eax, byte [esi + edx + 3]
movzx ecx, byte [esi + edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx]
shl eax, 8
add esi, 4
or eax, ecx
cdq
add eax, 0xb6109100
push 0
push 0x989680
adc edx, 2
push edx
push eax
call fcn.100352a0
mov ecx, edx
mov dword [ebx + 0x224], edx
mov edx, dword [esp + 0xc]
sar ecx, 0x1f
mov ecx, dword [esp + 0x78]
mov dword [ebx + 0x220], eax
test cl, cl
je 0x100172ca
movzx eax, byte [esi + edx + 3]
movzx ecx, byte [esi + edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx]
shl eax, 8
add esi, 4
or eax, ecx
cdq
add eax, 0xb6109100
push 0
push 0x989680
adc edx, 2
push edx
push eax
call fcn.100352a0
mov ecx, edx
mov dword [ebx + 0x210], eax
sar ecx, 0x1f
mov dword [ebx + 0x214], edx
cmp byte [esp + 0x10], 0
je 0x1001731f
mov edx, dword [esp + 0xc]
push 0
push 0x989680
movzx eax, byte [esi + edx + 3]
movzx ecx, byte [esi + edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx]
shl eax, 8
or eax, ecx
cdq
add eax, 0xb6109100
adc edx, 2
push edx
push eax
call fcn.100352a0
mov ecx, edx
mov dword [ebx + 0x218], eax
sar ecx, 0x1f
mov dword [ebx + 0x21c], edx
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x10017330
push ecx
call fcn.1002f7b8
add esp, 4
mov eax, dword [esp + 0x1c]
add edi, 8
mov ecx, 0x8c
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x238], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x3b4]
mov eax, 0x10000
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret 8