Function at 0x1075c4a
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x250
or dword [ebp - 0x1c], 0xffffffff
or dword [ebp - 0x2c], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor eax, eax
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 8], eax
call fcn.010752d1
push 0xf8
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call fcn.01075313
movzx eax, word [ebp - 0x24a]
lea eax, [eax + eax*4]
shl eax, 3
push 0x3e
add ebx, 0xf8
lea ecx, [eax + ebx]
mov dword [ebp - 0x54], ecx
pop ecx
lea esi, [ebp - 0x250]
lea edi, [ebp - 0x158]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword fs:[0x18]
push eax
mov eax, dword [ecx + 0x30]
push 0
push dword [eax + 0x18]
call fcn.010483c0
test eax, eax
mov dword [ebp - 0x44], eax
jne 0x1075ce9
mov dword [ebp - 4], 8
jmp 0x1076d1d
movzx eax, word [ebp - 0x24a]
mov esi, dword [ebp - 0x44]
lea ecx, [eax + eax*4]
shl ecx, 3
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
push dword [ebp + 8]
and ecx, 3
rep stosb byte es:[edi], al
call fcn.010752d1
movzx eax, word [ebp - 0x24a]
lea eax, [eax + eax*4]
shl eax, 3
push eax
push esi
push dword [ebp + 8]
call fcn.01075313
movzx eax, word [ebp - 0x24a]
lea eax, [eax + eax*4]
lea eax, [esi + eax*8]
xor edi, edi
cmp esi, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x60], edi
jae 0x1075d66
sub eax, esi
push 0x28
dec eax
xor edx, edx
pop ebx
div ebx
lea ecx, [esi + 0x14]
inc eax
mov edx, dword [ecx]
cmp edx, edi
jbe 0x1075d5d
mov edi, dword [ecx - 4]
add edi, edx
add ecx, 0x28
dec eax
jne 0x1075d52
mov dword [ebp - 0x60], edi
mov eax, dword [ebp + 0x14]
and dword [ebp - 0x18], 0
mov ebx, dword [eax + 0x10]
jmp 0x1075e19
mov edi, dword [ebx + 0x10]
test edi, edi
jne 0x1075d85
cmp dword [ebx + 0xc], edi
je 0x1075e17
mov eax, dword [ebx + 4]
movzx eax, word [eax + 0xe]
mov ecx, dword [ebp - 0x24]
inc dword [ebp - 0x34]
inc dword [ebp - 0x3c]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x24], eax
xor eax, eax
jmp 0x1075de0
inc dword [ebp - 0x30]
test eax, eax
je 0x1075dbb
mov ecx, dword [edi + 4]
push dword [ecx + 0x10]
push dword [eax + 0x10]
call sub.msvcrt.dll_wcscmp
test eax, eax
pop ecx
pop ecx
je 0x1075dcf
mov eax, dword [edi + 4]
movzx eax, word [eax + 0xe]
mov ecx, dword [ebp - 0x10]
inc dword [ebp - 0x20]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x14]
add eax, 3
and eax, 0xfffffffc
add dword [ebp - 0x18], eax
mov eax, dword [edi + 4]
mov edi, dword [edi]
test edi, edi
jne 0x1075da0
mov eax, dword [ebx + 0xc]
xor ecx, ecx
jmp 0x1075e13
inc dword [ebp - 0x30]
test ecx, ecx
je 0x1075dff
mov edx, dword [eax + 4]
mov cx, word [ecx + 4]
cmp cx, word [edx + 4]
je 0x1075e02
inc dword [ebp - 0x20]
mov ecx, dword [eax + 0x14]
add ecx, 3
and ecx, 0xfffffffc
add dword [ebp - 0x18], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax]
test eax, eax
jne 0x1075deb
mov ebx, dword [ebx]
test ebx, ebx
jne 0x1075d75
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax + 0xc]
jmp 0x1075eb8
mov edi, dword [ebx + 0x10]
test edi, edi
jne 0x1075e38
cmp dword [ebx + 0xc], edi
je 0x1075eb6
inc dword [ebp - 0x34]
xor eax, eax
jmp 0x1075e7f
inc dword [ebp - 0x30]
test eax, eax
je 0x1075e5a
mov ecx, dword [edi + 4]
push dword [ecx + 0x10]
push dword [eax + 0x10]
call sub.msvcrt.dll_wcscmp
test eax, eax
pop ecx
pop ecx
je 0x1075e6e
mov eax, dword [edi + 4]
movzx eax, word [eax + 0xe]
mov ecx, dword [ebp - 0x10]
inc dword [ebp - 0x20]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x14]
add eax, 3
and eax, 0xfffffffc
add dword [ebp - 0x18], eax
mov eax, dword [edi + 4]
mov edi, dword [edi]
test edi, edi
jne 0x1075e3f
mov eax, dword [ebx + 0xc]
xor ecx, ecx
jmp 0x1075eb2
inc dword [ebp - 0x30]
test ecx, ecx
je 0x1075e9e
mov edx, dword [eax + 4]
mov cx, word [ecx + 4]
cmp cx, word [edx + 4]
je 0x1075ea1
inc dword [ebp - 0x20]
mov ecx, dword [eax + 0x14]
add ecx, 3
and ecx, 0xfffffffc
add dword [ebp - 0x18], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax]
test eax, eax
jne 0x1075e8a
mov ebx, dword [ebx]
test ebx, ebx
jne 0x1075e2c
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
lea edx, [eax + ecx]
add edx, dword [ebp - 0x34]
push 0x1004680
push dword [ebp - 0x28]
lea edx, [eax + edx*2 + 2]
mov eax, dword [ebp - 0x10]
add edx, ecx
mov ecx, dword [ebp - 0x24]
add edx, dword [ebp - 0x34]
lea edi, [ecx + eax]
neg edi
and edi, 3
add edi, ecx
lea edi, [edi + edx*8]
add edi, eax
add dword [ebp - 0x18], edi
push esi
mov dword [ebp - 0x48], edi
call fcn.01075425
push 0x1014da4
push dword [ebp - 0x28]
mov ebx, eax
push esi
mov dword [ebp - 0x50], ebx
call fcn.01075425
push 0x1014d9c
push dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
push esi
call fcn.01075425
test ebx, ebx
mov ecx, eax
je 0x1075f7f
lea eax, [ebx + 0x28]
cmp eax, dword [ebp - 0x38]
push 0x28
jne 0x1075f47
mov eax, ebx
sub eax, esi
cdq
pop esi
idiv esi
mov dword [ebp - 0x1c], eax
mov eax, SysReAllocString
mov dword [ebp - 4], eax
jmp 0x1075f73
cmp eax, dword [ebp - 0x28]
mov eax, ebx
jae 0x1075f34
sub eax, esi
cdq
pop esi
idiv esi
test ecx, ecx
mov dword [ebp - 0x1c], eax
je 0x1075f63
mov eax, dword [ebx + 0x34]
sub eax, dword [ebx + 0xc]
jmp 0x1075f68
mov eax, SysReAllocString
cmp edi, eax
mov dword [ebp - 4], eax
ja 0x10760ac
cmp dword [ebp - 0x18], eax
jbe 0x1075f86
lea eax, [ebx + 0x28]
cmp ecx, eax
jne 0x1075f98
mov dword [ebp - 4], SysReAllocStringLen
mov esi, dword [ebp - 8]
mov ebx, dword [ebp + 0x14]
and dword [ebp - 8], 0
mov dword [ebp - 0x18], edi
mov edi, dword [ebx + 0x10]
jmp 0x1076010
cmp dword [ebp - 0x38], 0
push 0x28
pop esi
je 0x1075fa4
mov ecx, dword [ebp - 0x38]
mov eax, ecx
sub eax, dword [ebp - 0x44]
cdq
idiv esi
mov esi, dword [ecx + 0xc]
sub esi, dword [ebx + 0xc]
mov dword [ebp - 0x2c], eax
jmp 0x1075f89
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x1075fc3
cmp dword [edi + 0xc], eax
je 0x107600e
test eax, eax
mov dword [ebp - 0xc], eax
je 0x1075fe7
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push dword [ebp - 0x18]
push esi
push eax
call fcn.0107547a
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x18], eax
jne 0x1075fca
mov eax, dword [edi + 0xc]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x107600e
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push dword [ebp - 0x18]
push esi
push eax
call fcn.0107547a
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x18], eax
jne 0x1075ff1
mov edi, dword [edi]
test edi, edi
jne 0x1075fb7
mov edi, dword [ebx + 0xc]
jmp 0x1076072
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x1076025
cmp dword [edi + 0xc], eax
je 0x1076070
test eax, eax
mov dword [ebp - 0xc], eax
je 0x1076049
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push dword [ebp - 0x18]
push esi
push eax
call fcn.0107547a
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x18], eax
jne 0x107602c
mov eax, dword [edi + 0xc]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x1076070
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push dword [ebp - 0x18]
push esi
push eax
call fcn.0107547a
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x18], eax
jne 0x1076053
mov edi, dword [edi]
test edi, edi
jne 0x1076019
cmp dword [ebp - 8], edi
jne 0x1076081
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x44]
push 0x1014d94
push esi
push edi
call fcn.01075425
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x5c], ebx
je 0x10760b4
cmp dword [ebp - 0x1a8], 0
je 0x10760ac
lea eax, [esi - 0x28]
cmp ebx, eax
je 0x10760b4
push 0xd
pop eax
jmp 0x1076d20
and dword [ebp - 0x58], 0
cmp edi, esi
mov eax, edi
jae 0x10760e2
mov ecx, dword [eax + 0xc]
cmp dword [ebp - 0x1a8], ecx
jb 0x10760d6
mov edx, dword [eax + 0x10]
add edx, ecx
cmp dword [ebp - 0x1a8], edx
jb 0x10760df
add eax, 0x28
cmp eax, esi
jb 0x10760be
jmp 0x10760e2
mov dword [ebp - 0x58], eax
push 0x1014d9c
push esi
push edi
call fcn.01075425
cmp dword [ebp - 0x1c], 0xffffffff
mov ecx, eax
jne 0x107611d
test ecx, ecx
je 0x10760fc
jmp 0x1076102
test ebx, ebx
je 0x107610c
mov eax, ebx
sub eax, edi
push 0x28
cdq
pop esi
idiv esi
jmp 0x1076113
movzx eax, word [ebp - 0x152]
inc word [ebp - 0x152]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x1076166
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x107613b
sub eax, edi
push 0x28
cdq
pop ecx
idiv ecx
dec word [ebp - 0x152]
jmp 0x107615a
test ecx, ecx
je 0x1076143
mov eax, ecx
jmp 0x1076149
test ebx, ebx
je 0x1076153
mov eax, ebx
sub eax, edi
push 0x28
cdq
pop ecx
idiv ecx
jmp 0x107615a
movzx eax, word [ebp - 0x152]
inc word [ebp - 0x152]
mov dword [ebp - 0x2c], eax
jmp 0x1076173
cmp dword [ebp - 0x38], 0
je 0x1076173
dec word [ebp - 0x152]
movzx ecx, word [ebp - 0x24a]
movzx eax, word [ebp - 0x152]
sub eax, ecx
lea ecx, [ecx + ecx*4]
shl ecx, 3
mov edx, ecx
mov ecx, dword [ebp - 0x1fc]
sub ecx, edx
sub ecx, dword [ebp + 0x10]
lea eax, [eax + eax*4]
shl eax, 3
sub ecx, 0xf8
cmp eax, ecx
jbe 0x10761d1
sub eax, ecx
xor esi, esi
lea ecx, [ebp + esi*8 - 0xe0]
mov edx, dword [ecx]
test edx, edx
je 0x10761c3
cmp edx, dword [ebp - 0x104]
jae 0x10761c3
add edx, eax
mov dword [ecx], edx
inc esi
cmp esi, 0x10
jl 0x10761aa
add dword [ebp - 0x104], eax
jmp 0x10761f6
test eax, eax
jbe 0x10761f6
xor esi, esi
lea ecx, [ebp + esi*8 - 0xe0]
mov edx, dword [ecx]
test edx, edx
je 0x10761f0
cmp edx, dword [ebp - 0x1fc]
jae 0x10761f0
add edx, eax
mov dword [ecx], edx
inc esi
cmp esi, 0x10
jl 0x10761d7
movzx edi, word [ebp - 0x152]
mov ecx, dword [ebp - 0x54]
add ecx, eax
lea edi, [edi + edi*4]
shl edi, 3
movsx eax, di
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
mov dword [ebp - 0x4c], ecx
call fcn.010483c0
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x1076235
mov dword [ebp - 4], 8
jmp 0x1076d01
mov esi, dword [ebp - 0x40]
mov ecx, edi
mov edx, ecx
xor eax, eax
shr ecx, 2
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax*4]
lea eax, [esi + eax*8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x44]
xor ebx, ebx
cmp eax, dword [ebp - 0x28]
mov edx, esi
jae 0x1076376
add eax, 0xc
mov dword [ebp - 0x14], eax
lea ecx, [eax - 0xc]
cmp ecx, dword [ebp - 0x38]
jne 0x1076298
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x1076361
lea ecx, [eax + 0x1c]
cmp ecx, dword [ebp - 0x28]
jae 0x1076361
mov esi, dword [eax]
sub esi, dword [ecx + 0xc]
add ebx, esi
jmp 0x1076361
cmp edx, dword [ebp - 0x1c]
jne 0x1076428
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 8]
lea ecx, [ecx + eax - 1]
dec eax
not eax
and ecx, eax
cmp dword [ebp - 0x50], 0
mov dword [ebp - 4], ecx
mov edi, edx
push 0xa
jne 0x1076304
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 8]
lea ebx, [ecx + eax - 1]
dec eax
not eax
and ebx, eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x14]
mov esi, 0x1004680
mov edi, edx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [eax]
mov dword [edx + 0xc], ecx
mov eax, dword [eax + 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edx + 0x24], 0x40000040
mov dword [edx + 8], eax
jmp 0x1076342
mov eax, dword [ebp - 0x14]
lea esi, [eax - 0xc]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
lea ecx, [eax + 0x1c]
mov dword [edx + 0x10], esi
mov dword [edx + 8], edi
cmp esi, dword [ecx - 0x18]
jne 0x1076325
xor ebx, ebx
jmp 0x1076342
mov esi, dword [ebp - 0x120]
lea edi, [edi + esi - 1]
dec esi
not esi
and edi, esi
add ebx, edi
cmp ecx, dword [ebp - 0x28]
jae 0x1076342
mov eax, dword [eax]
sub eax, dword [ecx + 0xc]
add ebx, eax
add edx, 0x28
cmp dword [ebp - 0x50], 0
jne 0x107635e
mov esi, dword [ebp - 0x14]
push 0xa
add esi, 0xfffffff4
mov edi, edx
pop ecx
add edx, 0x28
rep movsd dword es:[edi], dword [esi]
add dword [edx - 0x1c], ebx
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x40]
add eax, 0x28
lea ecx, [eax - 0xc]
cmp ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
jb 0x107626e
movzx eax, word [ebp - 0x152]
push dword [ebp - 0x48]
lea eax, [eax + eax*4]
lea eax, [esi + eax*8 - 0x28]
mov ecx, dword [eax + 0x10]
add ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x120]
lea ecx, [ecx + eax - 1]
dec eax
not eax
and ecx, eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x108], ecx
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call fcn.010483c0
test eax, eax
mov dword [ebp - 0x14], eax
je 0x1076229
mov ecx, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x34]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, esi
sub eax, dword [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
push 0
push ebx
call fcn.010753f0
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x30]
lea eax, [eax + esi*2]
add ebx, 0x10
mov dword [ebp - 0x3c], ebx
lea ebx, [ebx + esi*8]
lea esi, [ebx + eax*8]
mov eax, dword [ebp - 0x20]
lea eax, [edi + eax*2]
lea eax, [esi + eax*8]
mov dword [ebp - 4], eax
shl edi, 4
add edi, eax
mov eax, dword [ebp - 0x24]
add eax, edi
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x10]
jmp 0x10766fa
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x10764d0
lea eax, [eax + eax*4]
lea eax, [esi + eax*8]
cmp edx, eax
jne 0x10764d0
push 0xa
xor eax, eax
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x38]
test ecx, ecx
mov esi, 0x1014da4
mov edi, edx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jne 0x1076489
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
mov dword [edx + 0xc], eax
mov dword [edx + 0x24], 0x40000040
mov eax, dword [ebp - 0x120]
lea ebx, [eax + ecx - 1]
dec eax
not eax
and ebx, eax
mov eax, dword [ebp - 0x1c]
add ebx, dword [eax + 0xc]
sub ebx, dword [edx + 0xc]
jmp 0x10764c8
mov eax, dword [ecx + 0xc]
mov esi, dword [ebp - 0x50]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x24], 0x40000040
mov esi, dword [esi + 0xc]
sub esi, dword [ecx + 0xc]
mov eax, dword [eax]
add esi, dword [ebp - 0x18]
mov ecx, eax
sub ecx, dword [edx + 0xc]
cmp esi, ecx
mov ecx, dword [ebp - 0x120]
mov esi, dword [ebp - 0x18]
lea ebx, [ecx + esi - 1]
dec ecx
not ecx
and ebx, ecx
mov ecx, dword [ebp - 0x1c]
add ebx, dword [ecx + 0xc]
sub ebx, eax
add edx, 0x28
jmp 0x107634b
cmp edx, dword [ebp - 0x1c]
jae 0x107634b
mov esi, dword [ebp - 0x14]
push 0xa
add esi, 0xfffffff4
mov edi, edx
pop ecx
rep movsd dword es:[edi], dword [esi]
add edx, 0x28
jmp 0x107635e
mov ecx, dword [ebp - 0x3c]
mov edx, edi
sub edx, dword [ebp - 0x14]
mov eax, SysReAllocStringLen
or edx, eax
mov dword [ecx], edx
mov edx, ebx
sub edx, dword [ebp - 0x14]
add ecx, 8
or edx, eax
mov eax, dword [ebp - 0x20]
mov dword [ecx - 4], edx
mov dword [ebp - 0x3c], ecx
mov ecx, dword [eax + 4]
mov cx, word [ecx + 0xe]
mov word [edi], cx
mov eax, dword [eax + 4]
movzx ecx, word [eax + 0xe]
push ecx
push dword [eax + 0x10]
lea eax, [edi + 2]
push eax
call sub.msvcrt.dll_wcsncpy
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
movzx ecx, word [ecx + 0xe]
lea edi, [edi + ecx*2 + 2]
xor ecx, ecx
mov cx, word [eax + 0x14]
movzx eax, word [eax + 0x18]
add esp, 0xc
push ecx
push eax
push 0
push ebx
call fcn.010753f0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
and dword [ebp - 8], 0
add ebx, 0x10
test eax, eax
mov dword [ebp - 0xc], eax
je 0x1076644
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, esi
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0
je 0x107659e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
call sub.msvcrt.dll_wcscmp
test eax, eax
pop ecx
pop ecx
je 0x1076604
mov ecx, edi
sub ecx, dword [ebp - 0x14]
mov eax, SysReAllocStringLen
or ecx, eax
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x10]
or ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [eax + 4]
mov cx, word [ecx + 0xe]
mov word [edi], cx
mov eax, dword [eax + 4]
movzx ecx, word [eax + 0xe]
push ecx
push dword [eax + 0x10]
lea eax, [edi + 2]
push eax
add ebx, 8
call sub.msvcrt.dll_wcsncpy
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 4]
movzx edx, word [eax + 0xe]
mov dword [ebp - 8], eax
xor eax, eax
mov ax, word [ecx + 0x1e]
add esp, 0xc
lea edi, [edi + edx*2 + 2]
push eax
push 0
push 0
push esi
call fcn.010753f0
add esi, 0x10
add dword [ebp - 0x10], 0x10
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 0x20]
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 0x10], 8
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
push dword [edx + 0x14]
add eax, dword [ecx + 0xc]
add esi, 8
push eax
push dword [ebp - 4]
call fcn.010753c9
mov edx, dword [edx]
add dword [ebp - 4], 0x10
add dword [ebp - 0x24], 0x10
test edx, edx
mov dword [ebp - 0xc], edx
jne 0x107657e
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0xc]
and dword [ebp - 8], 0
test edx, edx
mov dword [ebp - 0xc], edx
je 0x10766f5
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, esi
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x107667e
mov ecx, dword [edx + 4]
mov ax, word [eax + 4]
cmp ax, word [ecx + 4]
je 0x10766b8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
movzx ecx, word [ecx + 4]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x10]
or ecx, 0x80000000
mov dword [ebx + 4], ecx
mov ecx, dword [eax + 4]
movzx eax, word [eax + 0x1e]
push eax
push 0
push 0
push esi
add ebx, 8
mov dword [ebp - 8], ecx
call fcn.010753f0
mov edx, dword [ebp - 0xc]
add esi, 0x10
add dword [ebp - 0x10], 0x10
movzx eax, word [edx + 0x20]
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 0x10], 8
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
push dword [edx + 0x14]
add eax, dword [ecx + 0xc]
add esi, 8
push eax
push dword [ebp - 4]
call fcn.010753c9
mov edx, dword [edx]
add dword [ebp - 4], 0x10
add dword [ebp - 0x24], 0x10
test edx, edx
mov dword [ebp - 0xc], edx
jne 0x107666a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x10764ee
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
jmp 0x10768ec
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
movzx edx, word [ecx + 4]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], edx
mov edx, ebx
sub edx, dword [ebp - 0x14]
add ecx, 8
or edx, 0x80000000
mov dword [ecx - 4], edx
mov dword [ebp - 0x3c], ecx
xor ecx, ecx
mov cx, word [eax + 0x14]
movzx eax, word [eax + 0x18]
push ecx
push eax
push 0
push ebx
call fcn.010753f0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
and dword [ebp - 8], 0
add ebx, 0x10
test eax, eax
mov dword [ebp - 0xc], eax
je 0x1076836
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, esi
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0
je 0x1076790
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
call sub.msvcrt.dll_wcscmp
test eax, eax
pop ecx
pop ecx
je 0x10767f6
mov ecx, edi
sub ecx, dword [ebp - 0x14]
mov eax, SysReAllocStringLen
or ecx, eax
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x10]
or ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [eax + 4]
mov cx, word [ecx + 0xe]
mov word [edi], cx
mov eax, dword [eax + 4]
movzx ecx, word [eax + 0xe]
push ecx
push dword [eax + 0x10]
lea eax, [edi + 2]
push eax
add ebx, 8
call sub.msvcrt.dll_wcsncpy
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 4]
movzx edx, word [eax + 0xe]
mov dword [ebp - 8], eax
xor eax, eax
mov ax, word [ecx + 0x1e]
add esp, 0xc
lea edi, [edi + edx*2 + 2]
push eax
push 0
push 0
push esi
call fcn.010753f0
add esi, 0x10
add dword [ebp - 0x10], 0x10
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 0x20]
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 0x10], 8
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
push dword [edx + 0x14]
add eax, dword [ecx + 0xc]
add esi, 8
push eax
push dword [ebp - 4]
call fcn.010753c9
mov edx, dword [edx]
add dword [ebp - 4], 0x10
add dword [ebp - 0x24], 0x10
test edx, edx
mov dword [ebp - 0xc], edx
jne 0x1076770
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0xc]
and dword [ebp - 8], 0
test edx, edx
mov dword [ebp - 0xc], edx
je 0x10768e7
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, esi
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x1076870
mov ecx, dword [edx + 4]
mov ax, word [eax + 4]
cmp ax, word [ecx + 4]
je 0x10768aa
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
movzx ecx, word [ecx + 4]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x10]
or ecx, 0x80000000
mov dword [ebx + 4], ecx
mov ecx, dword [eax + 4]
movzx eax, word [eax + 0x1e]
push eax
push 0
push 0
push esi
add ebx, 8
mov dword [ebp - 8], ecx
call fcn.010753f0
mov edx, dword [ebp - 0xc]
add esi, 0x10
add dword [ebp - 0x10], 0x10
movzx eax, word [edx + 0x20]
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 0x10], 8
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
push dword [edx + 0x14]
add eax, dword [ecx + 0xc]
add esi, 8
push eax
push dword [ebp - 4]
call fcn.010753c9
mov edx, dword [edx]
add dword [ebp - 4], 0x10
add dword [ebp - 0x24], 0x10
test edx, edx
mov dword [ebp - 0xc], edx
jne 0x107685c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x1076710
mov ecx, dword [ebp - 0x34]
cmp edi, ecx
jae 0x107690d
sub ecx, edi
dec ecx
shr ecx, 1
inc ecx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov esi, dword [ebp + 8]
push 0
push esi
call fcn.010752d1
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
add eax, 0xf8
push eax
push edi
push esi
call fcn.0107533a
mov eax, dword [ebp - 0x104]
sub eax, dword [ebp - 0x1fc]
add eax, dword [ebp - 0x4c]
push eax
push edi
call fcn.010752d1
push dword [ebp - 0x54]
push esi
call fcn.010752d1
mov eax, dword [ebp - 0x1fc]
sub eax, dword [ebp - 0x4c]
push eax
push edi
push esi
call fcn.0107533a
mov eax, dword [ebp - 0x11c]
lea ecx, [eax - 1]
mov edx, ecx
and edx, dword [ebp - 0x104]
sub eax, edx
and eax, ecx
mov esi, eax
add dword [ebp - 0x104], esi
cmp esi, 0x10
jl 0x107699c
mov ebx, esi
shr ebx, 4
mov eax, ebx
neg eax
shl eax, 4
add esi, eax
push 0x10
push dword [0x10a776c]
push edi
call fcn.010752ec
dec ebx
jne 0x107698b
push esi
push dword [0x10a776c]
push edi
call fcn.010752ec
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x1fc]
lea ecx, [eax + ecx - 1]
dec eax
not eax
and ecx, eax
push ecx
push dword [ebp + 8]
call fcn.010752d1
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x28]
and dword [ebp - 0x138], 0
cmp ebx, eax
mov esi, dword [ebp - 0x40]
jae 0x1076b7d
cmp ebx, dword [ebp - 0x38]
jne 0x10769e7
add ebx, 0x28
cmp esi, dword [ebp - 0x1c]
jne 0x1076a9f
push edi
call fcn.010752b7
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x18]
push edi
mov dword [ebp - 0xcc], eax
call fcn.010752b7
push dword [ebp - 0x48]
mov dword [ebp + 0xc], eax
push dword [ebp - 0x14]
push edi
call fcn.010752ec
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
sub eax, dword [ebp - 0x48]
push 0
push eax
push dword [ebp - 0x11c]
push edi
push dword [ebp + 0x14]
call fcn.010754bd
push edi
mov dword [ebp - 0x54], eax
call fcn.010752b7
cmp dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 4], eax
jne 0x1076a84
push dword [ebp + 0xc]
push edi
call fcn.010752d1
push dword [ebp - 0x48]
push dword [ebp - 0x14]
push edi
call fcn.010752ec
push dword [ebp - 4]
push edi
call fcn.010752d1
push dword [ebp + 8]
call fcn.010752b7
mov ecx, dword [ebx + 0x10]
add ecx, eax
push ecx
push dword [ebp + 8]
call fcn.010752d1
mov eax, dword [esi + 0x10]
add dword [ebp - 0x138], eax
cmp dword [ebp - 0x50], 0
jne 0x1076b6e
add esi, 0x28
jmp 0x1076b31
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x1076b0c
mov ecx, dword [ebp - 0x40]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
cmp esi, eax
jne 0x1076b0c
push edi
call fcn.010752b7
push dword [ebp - 0x54]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
push dword [ebp - 0x11c]
push edi
push dword [ebp + 0x14]
call fcn.010754bd
push edi
call fcn.010752b7
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
sub eax, dword [esi + 0x14]
push edi
mov dword [esi + 0x10], eax
mov dword [esi + 8], eax
call fcn.010752d1
push dword [ebp - 0x48]
push dword [ebp - 0x14]
push edi
call fcn.010752ec
push dword [ebp - 4]
push edi
call fcn.010752d1
mov eax, dword [esi + 0x10]
add dword [ebp - 0x138], eax
jmp 0x1076a97
cmp esi, dword [ebp - 0x1c]
jae 0x1076b31
cmp dword [ebx + 0x14], 0
je 0x1076b57
mov eax, dword [ebx + 0x14]
push edi
mov dword [ebp - 0x4c], eax
call fcn.010752b7
cmp dword [ebp - 0x4c], eax
je 0x1076b31
push dword [ebp - 0x4c]
push edi
call fcn.010752d1
cmp dword [ebx + 0x14], 0
je 0x1076b57
push edi
call fcn.010752b7
mov dword [esi + 0x14], eax
push dword [ebx + 0x14]
push dword [ebp + 8]
call fcn.010752d1
push dword [ebx + 0x10]
push edi
push dword [ebp + 8]
call fcn.0107533a
cmp ebx, dword [ebp - 0x58]
jne 0x1076b5f
mov dword [ebp - 0x24], esi
test byte [esi + 0x24], 0x40
je 0x1076b6e
mov eax, dword [esi + 0x10]
add dword [ebp - 0x138], eax
add ebx, 0x28
add esi, 0x28
cmp ebx, dword [ebp - 0x28]
jb 0x10769df
mov eax, dword [ebp - 0x38]
xor ebx, ebx
cmp eax, ebx
je 0x1076b8f
mov eax, dword [eax + 0x10]
sub dword [ebp - 0x138], eax
movzx eax, word [ebp - 0x152]
mov esi, dword [ebp - 0x40]
lea eax, [eax + eax*4]
push 0x1014d9c
lea eax, [esi + eax*8]
push eax
push esi
call fcn.01075425
cmp eax, ebx
je 0x1076bb8
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x10]
add eax, 0xf8
push eax
push edi
call fcn.010752d1
movzx eax, word [ebp - 0x152]
lea eax, [eax + eax*4]
shl eax, 3
push eax
push esi
push edi
call fcn.010752ec
push 2
push ebx
push edi
call sub.KERNEL32.dll__llseek
push ebx
push ebx
push edi
mov dword [ebp - 8], eax
call fcn.010752ec
movzx eax, word [ebp - 0x152]
lea eax, [eax + eax*4]
push 0x1014d94
lea eax, [esi + eax*8]
push eax
push esi
call fcn.01075425
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0x60]
lea ecx, [ebp - 0x158]
push ecx
lea ecx, [ebp - 0x250]
push ecx
push dword [ebp - 0x24]
push dword [ebp - 0x58]
push eax
push dword [ebp - 0x5c]
push edi
push dword [ebp + 8]
call fcn.0107563d
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1076c6b
mov eax, dword [ebp - 0x50]
cmp eax, ebx
jne 0x1076c47
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
jmp 0x1076c50
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x1c]
sub eax, dword [ecx + 0x10]
push dword [ebp - 0x1fc]
lea ecx, [ebp - 0x158]
push ecx
push eax
push esi
push edi
push dword [ebp + 8]
call fcn.01075913
mov dword [ebp - 4], eax
cmp dword [ebp - 0x58], ebx
je 0x1076cbc
cmp dword [ebp - 0x5c], ebx
jne 0x1076cbc
cmp dword [ebp - 0xac], ebx
je 0x1076cbc
push 2
push ebx
push dword [ebp + 8]
call sub.KERNEL32.dll__llseek
push 2
push ebx
push edi
mov esi, eax
call sub.KERNEL32.dll__llseek
cmp dword [ebp - 0x14c], ebx
je 0x1076ca4
sub eax, dword [ebp - 8]
add dword [ebp - 0x14c], eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.010752d1
sub esi, dword [ebp - 8]
push esi
push edi
push dword [ebp + 8]
call fcn.0107533a
push dword [ebp + 0x10]
push edi
call fcn.010752d1
push 0xf8
lea eax, [ebp - 0x158]
push eax
push edi
call fcn.010752ec
push dword [ebp - 0x44]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call fcn.010483fb
push dword [ebp - 0x14]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call fcn.010483fb
cmp dword [ebp - 0x40], 0
je 0x1076d1d
push dword [ebp - 0x40]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call fcn.010483fb
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14