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

Disassembly:
sub esp, 0x268
push ebx
mov edx, dword [esp + 0x278]
push ebp
push esi
mov esi, dword [esp + 0x284]
push edi
lea ecx, [esp + 0x70]
mov dword [esp + 0x3c], 0
mov eax, dword [esi]
shl eax, 5
add eax, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x280]
add eax, 0x2c
push eax
push ecx
call fcn.10033da9
lea edx, [esp + 0x78]
push edx
call fcn.10033dce
mov ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
mov dword [esp + 0x34], ecx
sar edx, 3
mov eax, edx
add esp, 0xc
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov edi, edx
mov ecx, 0xf
cdq
idiv ecx
mov dword [esp + 0x18], edi
test edx, edx
je 0x1017258f
inc edi
mov dword [esp + 0x18], edi
add edi, 2
shl edi, 5
push edi
mov dword [esp + 0x50], edi
call fcn.101d175d
mov ecx, edi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
mov ebx, dword [esp + 0x280]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esi]
mov ecx, dword [esp + 0x28c]
inc edx
mov eax, edx
mov dword [esi], edx
cmp eax, ecx
jbe 0x1017260e
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x24]
mov edx, dword [esp + 0x284]
mov dword [eax], ecx
mov edi, dword [ebx + 0x28]
mov ecx, 0x10000
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esi], 1
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x290], eax
mov eax, dword [ebx + 0x10]
inc eax
mov dword [esp + 0x38], edx
mov dword [ebx + 0x24], 1
mov dword [ebx + 0x10], eax
mov cl, byte [esp + 0x18]
mov eax, dword [esp + 0x280]
inc cl
mov byte [ebp], 0x85
mov byte [ebp + 1], cl
mov cl, byte [eax]
test cl, 0x10
je 0x1017262d
or byte [ebp + 4], 0x10
test byte [eax], 0x20
je 0x10172636
or byte [ebp + 4], 0x20
test byte [eax], 2
je 0x1017263f
or byte [ebp + 4], 2
test byte [eax], 1
je 0x10172648
or byte [ebp + 4], 1
test byte [eax], 4
je 0x10172651
or byte [ebp + 4], 4
mov edi, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea edx, [esp + 0x30]
add eax, 4
push edx
push eax
call edi
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
mov cx, word [ebp + 0xa]
mov eax, dword [esp + 0x14]
xor cx, ax
and ecx, 0x1ff
xor ecx, eax
mov word [ebp + 0xa], cx
mov edx, dword [esp + 0x14]
mov eax, ecx
xor eax, edx
and eax, 0x1e0
xor eax, ecx
mov word [ebp + 0xa], ax
mov cl, byte [esp + 0x14]
mov dl, al
xor dl, cl
mov cx, word [ebp + 8]
and edx, 0x1f
xor edx, eax
mov word [ebp + 0xa], dx
mov eax, dword [esp + 0x10]
xor cx, ax
and ecx, 0x7ff
xor ecx, eax
mov word [ebp + 8], cx
mov edx, dword [esp + 0x10]
mov eax, ecx
xor eax, edx
and eax, 0x7e0
xor eax, ecx
mov word [ebp + 8], ax
mov dl, byte [esp + 0x10]
mov cl, al
xor cl, dl
and ecx, 0x1f
xor ecx, eax
mov eax, 0x66666667
mov word [ebp + 8], cx
mov ecx, dword [esp + 0x6a]
and ecx, 0xffff
imul ecx
sar edx, 2
mov eax, edx
lea ecx, [esp + 0x30]
shr eax, 0x1f
add edx, eax
push ecx
mov byte [ebp + 0x14], dl
mov edx, dword [esp + 0x284]
add edx, 0x14
push edx
call edi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov cx, word [ebp + 0xe]
mov eax, dword [esp + 0x14]
xor cx, ax
and ecx, 0x1ff
xor ecx, eax
mov word [ebp + 0xe], cx
mov edx, dword [esp + 0x14]
mov eax, ecx
xor eax, edx
and eax, 0x1e0
xor eax, ecx
mov word [ebp + 0xe], ax
mov cl, byte [esp + 0x14]
mov dl, al
xor dl, cl
mov cx, word [ebp + 0xc]
and edx, 0x1f
xor edx, eax
mov word [ebp + 0xe], dx
mov eax, dword [esp + 0x10]
xor cx, ax
and ecx, 0x7ff
xor ecx, eax
mov word [ebp + 0xc], cx
mov edx, dword [esp + 0x10]
mov eax, ecx
xor eax, edx
and eax, 0x7e0
xor eax, ecx
mov word [ebp + 0xc], ax
mov dl, byte [esp + 0x10]
mov cl, al
xor cl, dl
and ecx, 0x1f
xor ecx, eax
mov eax, 0x66666667
mov word [ebp + 0xc], cx
mov ecx, dword [esp + 0x6a]
and ecx, 0xffff
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov byte [ebp + 0x15], dl
mov cx, word [ebp + 0x16]
mov dl, byte [ebx + 0x2c]
mov al, cl
xor al, dl
and eax, 0x7f
xor eax, ecx
mov word [ebp + 0x16], ax
mov dl, byte [ebx + 0x2c]
mov cl, al
xor cl, dl
lea edx, [esp + 0x30]
and ecx, 0x80
push edx
xor ecx, eax
mov al, cl
mov word [ebp + 0x16], cx
mov byte [ebp + 0x18], al
mov byte [ebp + 0x17], al
mov eax, dword [esp + 0x284]
add eax, 0xc
push eax
call edi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ax, word [ebp + 0x12]
mov ecx, dword [esp + 0x14]
xor ax, cx
and eax, 0x1ff
xor eax, ecx
mov word [ebp + 0x12], ax
mov ecx, dword [esp + 0x14]
xor ecx, eax
and ecx, 0x1e0
xor ecx, eax
mov word [ebp + 0x12], cx
mov dl, byte [esp + 0x14]
mov al, cl
xor al, dl
and eax, 0x1f
xor eax, ecx
mov cx, word [ebp + 0x10]
mov word [ebp + 0x12], ax
mov eax, dword [esp + 0x10]
xor cx, ax
and ecx, 0x7ff
xor ecx, eax
mov word [ebp + 0x10], cx
mov edi, dword [esp + 0x10]
mov eax, ecx
xor eax, edi
and eax, 0x7e0
xor eax, ecx
mov word [ebp + 0x10], ax
mov dl, byte [esp + 0x10]
mov cl, al
xor cl, dl
mov edx, dword [esp + 0x28c]
and ecx, 0x1f
xor ecx, eax
mov word [ebp + 0x10], cx
mov ecx, dword [esi]
inc ecx
mov eax, ecx
mov dword [esi], ecx
cmp eax, edx
jbe 0x1017290c
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x24]
mov edx, dword [esp + 0x290]
mov dword [eax], ecx
mov edi, dword [ebx + 0x28]
mov ecx, 0x10000
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esi], 1
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x290], eax
inc eax
mov dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x10]
inc eax
mov dword [esp + 0x3c], edx
mov dword [ebx + 0x10], eax
lea eax, [ebp + 0x20]
mov dword [esp + 0x2c], eax
xor eax, eax
mov ax, word [ebx + 2]
cdq
mov ecx, eax
xor eax, eax
mov ax, word [ebx]
mov edi, edx
cdq
push edx
push eax
push edi
push ecx
call fcn.10034a70
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
mov dl, byte [esp + 0x28]
lea eax, [edi + 1]
mov byte [edi + 3], dl
mov dword [esp + 0x54], eax
mov byte [edi], 0xc0
mov byte [eax], 3
lea eax, [edi + 3]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x24]
lea ecx, [edi + 0x14]
mov dword [esp + 0x50], edi
mov dword [esp + 0x48], ecx
mov dword [ecx], eax
mov eax, dword [esp + 0x280]
test byte [eax], 0x10
je 0x101729d0
mov ecx, dword [esp + 0x294]
push ebx
push ecx
call fcn.1016c2f0
mov edx, eax
xor eax, eax
mov ecx, edx
add esp, 8
or ecx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
jne 0x101729a3
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x48]
mov dword [edi + 0x18], edx
mov dword [edi + 8], edx
mov dword [edi + 0x1c], eax
mov dword [edi + 0xc], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x10172ab1
lea edx, [edi + 2]
mov dword [esp + 0x18], eax
jmp 0x101729e8
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
jmp 0x101729a7
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esp + 0x28c]
cmp dword [esi], eax
jbe 0x10172a3b
mov edi, dword [ecx]
inc edi
mov dword [ecx], edi
mov ecx, dword [ebx + 0x28]
mov eax, dword [ebx + 0x24]
mov dword [ecx], eax
mov edi, dword [ebx + 0x28]
mov ecx, 0x10000
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x290]
mov dword [esi], 1
mov eax, dword [ebx + 0x24]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x290], eax
inc eax
mov dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x10]
inc eax
mov dword [esp + 0x3c], ecx
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x28]
add edi, 0x20
add edx, 0x20
cmp eax, 0xf
mov dword [esp + 0x2c], edi
mov byte [edi], 0xc1
mov byte [edx - 1], 0
jle 0x10172a78
mov esi, dword [esp + 0x24]
mov ecx, 7
mov edi, edx
sub eax, 0xf
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
add eax, 0x1e
movsw word es:[edi], word [esi]
mov dword [esp + 0x24], eax
jmp 0x10172a97
mov esi, dword [esp + 0x24]
lea ecx, [eax + eax]
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x28], 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x288]
dec eax
mov dword [esp + 0x18], eax
jne 0x101729e0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.1003fef0
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
mov dword [ebx + 0x14], edi
call fcn.1003ff60
or eax, edx
je 0x10172aec
inc edi
mov dword [ebx + 0x14], edi
mov eax, dword [esp + 0x280]
test byte [eax], 0x10
je 0x10172b1a
mov eax, dword [ebx + 0x14]
mov ecx, 1
cmp eax, ecx
jbe 0x10172b0d
mov eax, dword [esp + 0x54]
and word [eax], 0xfffd
mov dword [ebx + 0x14], ecx
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x290], ecx
lea edx, [esp + 0x70]
push edx
call fcn.10146648
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x74]
mov cl, byte [eax]
push ecx
push edx
call fcn.1016c470
mov ecx, dword [esp + 0x5c]
mov word [ecx + 4], ax
mov dl, byte [ebp + 1]
push edx
push ebp
call fcn.1016c420
mov word [ebp + 2], ax
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebx + 0x10]
add esp, 0x14
add edi, ecx
xor eax, eax
test ecx, ecx
mov dword [ebx + 0x10], edi
jbe 0x10172b72
mov ecx, dword [ebx + 0x24]
mov edx, dword [ebx + 0x28]
add ecx, eax
mov dword [edx + eax*4], ecx
mov ecx, dword [ebx + 0x14]
inc eax
cmp eax, ecx
jb 0x10172b5f
mov eax, dword [ebx + 0x14]
test eax, eax
jbe 0x10172b84
mov ecx, dword [ebx + 0x28]
mov edx, dword [ecx + eax*4 - 4]
inc edx
mov dword [ebx + 0x24], edx
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10172bd0
mov eax, dword [esi]
mov edi, dword [esp + 0x38]
shl eax, 5
mov ecx, eax
mov eax, dword [esp + 0x4c]
sub eax, ecx
mov esi, ebp
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x288]
mov edi, dword [esp + 0x284]
lea esi, [eax + ebp]
mov ecx, dword [ecx]
shl ecx, 5
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x10172be3
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x38]
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.101d1786
mov eax, dword [esp + 0x294]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x268
ret