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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x270
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 0x108
lea eax, [ebp - 0x270]
push eax
push dword [ebp + 8]
call fcn.01075313
movzx eax, word [ebp - 0x26a]
lea eax, [eax + eax*4]
shl eax, 3
push 0x42
add ebx, 0x108
lea ecx, [eax + ebx]
mov dword [ebp - 0x54], ecx
pop ecx
lea esi, [ebp - 0x270]
lea edi, [ebp - 0x168]
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 0x1076dcb
mov dword [ebp - 4], 8
jmp 0x1077dff
movzx eax, word [ebp - 0x26a]
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 - 0x26a]
lea eax, [eax + eax*4]
shl eax, 3
push eax
push esi
push dword [ebp + 8]
call fcn.01075313
movzx eax, word [ebp - 0x26a]
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 0x1076e48
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 0x1076e3f
mov edi, dword [ecx - 4]
add edi, edx
add ecx, 0x28
dec eax
jne 0x1076e34
mov dword [ebp - 0x60], edi
mov eax, dword [ebp + 0x14]
and dword [ebp - 0x18], 0
mov ebx, dword [eax + 0x10]
jmp 0x1076efb
mov edi, dword [ebx + 0x10]
test edi, edi
jne 0x1076e67
cmp dword [ebx + 0xc], edi
je 0x1076ef9
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 0x1076ec2
inc dword [ebp - 0x30]
test eax, eax
je 0x1076e9d
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 0x1076eb1
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 0x1076e82
mov eax, dword [ebx + 0xc]
xor ecx, ecx
jmp 0x1076ef5
inc dword [ebp - 0x30]
test ecx, ecx
je 0x1076ee1
mov edx, dword [eax + 4]
mov cx, word [ecx + 4]
cmp cx, word [edx + 4]
je 0x1076ee4
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 0x1076ecd
mov ebx, dword [ebx]
test ebx, ebx
jne 0x1076e57
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax + 0xc]
jmp 0x1076f9a
mov edi, dword [ebx + 0x10]
test edi, edi
jne 0x1076f1a
cmp dword [ebx + 0xc], edi
je 0x1076f98
inc dword [ebp - 0x34]
xor eax, eax
jmp 0x1076f61
inc dword [ebp - 0x30]
test eax, eax
je 0x1076f3c
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 0x1076f50
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 0x1076f21
mov eax, dword [ebx + 0xc]
xor ecx, ecx
jmp 0x1076f94
inc dword [ebp - 0x30]
test ecx, ecx
je 0x1076f80
mov edx, dword [eax + 4]
mov cx, word [ecx + 4]
cmp cx, word [edx + 4]
je 0x1076f83
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 0x1076f6c
mov ebx, dword [ebx]
test ebx, ebx
jne 0x1076f0e
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 0x1077061
lea eax, [ebx + 0x28]
cmp eax, dword [ebp - 0x38]
push 0x28
jne 0x1077029
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 0x1077055
cmp eax, dword [ebp - 0x28]
mov eax, ebx
jae 0x1077016
sub eax, esi
cdq
pop esi
idiv esi
test ecx, ecx
mov dword [ebp - 0x1c], eax
je 0x1077045
mov eax, dword [ebx + 0x34]
sub eax, dword [ebx + 0xc]
jmp 0x107704a
mov eax, SysReAllocString
cmp edi, eax
mov dword [ebp - 4], eax
ja 0x107718e
cmp dword [ebp - 0x18], eax
jbe 0x1077068
lea eax, [ebx + 0x28]
cmp ecx, eax
jne 0x107707a
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 0x10770f2
cmp dword [ebp - 0x38], 0
push 0x28
pop esi
je 0x1077086
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 0x107706b
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x10770a5
cmp dword [edi + 0xc], eax
je 0x10770f0
test eax, eax
mov dword [ebp - 0xc], eax
je 0x10770c9
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 0x10770ac
mov eax, dword [edi + 0xc]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x10770f0
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 0x10770d3
mov edi, dword [edi]
test edi, edi
jne 0x1077099
mov edi, dword [ebx + 0xc]
jmp 0x1077154
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x1077107
cmp dword [edi + 0xc], eax
je 0x1077152
test eax, eax
mov dword [ebp - 0xc], eax
je 0x107712b
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 0x107710e
mov eax, dword [edi + 0xc]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x1077152
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 0x1077135
mov edi, dword [edi]
test edi, edi
jne 0x10770fb
cmp dword [ebp - 8], edi
jne 0x1077163
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 0x1077196
cmp dword [ebp - 0x1b8], 0
je 0x107718e
lea eax, [esi - 0x28]
cmp ebx, eax
je 0x1077196
push 0xd
pop eax
jmp 0x1077e02
and dword [ebp - 0x58], 0
cmp edi, esi
mov eax, edi
jae 0x10771c4
mov ecx, dword [eax + 0xc]
cmp dword [ebp - 0x1b8], ecx
jb 0x10771b8
mov edx, dword [eax + 0x10]
add edx, ecx
cmp dword [ebp - 0x1b8], edx
jb 0x10771c1
add eax, 0x28
cmp eax, esi
jb 0x10771a0
jmp 0x10771c4
mov dword [ebp - 0x58], eax
push 0x1014d9c
push esi
push edi
call fcn.01075425
cmp dword [ebp - 0x1c], 0xffffffff
mov ecx, eax
jne 0x10771ff
test ecx, ecx
je 0x10771de
jmp 0x10771e4
test ebx, ebx
je 0x10771ee
mov eax, ebx
sub eax, edi
push 0x28
cdq
pop esi
idiv esi
jmp 0x10771f5
movzx eax, word [ebp - 0x162]
inc word [ebp - 0x162]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x1077248
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x107721d
sub eax, edi
push 0x28
cdq
pop ecx
idiv ecx
dec word [ebp - 0x162]
jmp 0x107723c
test ecx, ecx
je 0x1077225
mov eax, ecx
jmp 0x107722b
test ebx, ebx
je 0x1077235
mov eax, ebx
sub eax, edi
push 0x28
cdq
pop ecx
idiv ecx
jmp 0x107723c
movzx eax, word [ebp - 0x162]
inc word [ebp - 0x162]
mov dword [ebp - 0x2c], eax
jmp 0x1077255
cmp dword [ebp - 0x38], 0
je 0x1077255
dec word [ebp - 0x162]
movzx ecx, word [ebp - 0x26a]
movzx eax, word [ebp - 0x162]
sub eax, ecx
lea ecx, [ecx + ecx*4]
shl ecx, 3
mov edx, ecx
mov ecx, dword [ebp - 0x21c]
sub ecx, edx
sub ecx, dword [ebp + 0x10]
lea eax, [eax + eax*4]
shl eax, 3
sub ecx, 0x108
cmp eax, ecx
jbe 0x10772b3
sub eax, ecx
xor esi, esi
lea ecx, [ebp + esi*8 - 0xe0]
mov edx, dword [ecx]
test edx, edx
je 0x10772a5
cmp edx, dword [ebp - 0x114]
jae 0x10772a5
add edx, eax
mov dword [ecx], edx
inc esi
cmp esi, 0x10
jl 0x107728c
add dword [ebp - 0x114], eax
jmp 0x10772d8
test eax, eax
jbe 0x10772d8
xor esi, esi
lea ecx, [ebp + esi*8 - 0xe0]
mov edx, dword [ecx]
test edx, edx
je 0x10772d2
cmp edx, dword [ebp - 0x21c]
jae 0x10772d2
add edx, eax
mov dword [ecx], edx
inc esi
cmp esi, 0x10
jl 0x10772b9
movzx edi, word [ebp - 0x162]
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 0x1077317
mov dword [ebp - 4], 8
jmp 0x1077de3
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 0x1077458
add eax, 0xc
mov dword [ebp - 0x14], eax
lea ecx, [eax - 0xc]
cmp ecx, dword [ebp - 0x38]
jne 0x107737a
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x1077443
lea ecx, [eax + 0x1c]
cmp ecx, dword [ebp - 0x28]
jae 0x1077443
mov esi, dword [eax]
sub esi, dword [ecx + 0xc]
add ebx, esi
jmp 0x1077443
cmp edx, dword [ebp - 0x1c]
jne 0x107750a
mov eax, dword [ebp - 0x12c]
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 0x10773e6
mov eax, dword [ebp - 0x130]
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 0x1077424
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 0x1077407
xor ebx, ebx
jmp 0x1077424
mov esi, dword [ebp - 0x130]
lea edi, [edi + esi - 1]
dec esi
not esi
and edi, esi
add ebx, edi
cmp ecx, dword [ebp - 0x28]
jae 0x1077424
mov eax, dword [eax]
sub eax, dword [ecx + 0xc]
add ebx, eax
add edx, 0x28
cmp dword [ebp - 0x50], 0
jne 0x1077440
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 0x1077350
movzx eax, word [ebp - 0x162]
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 - 0x130]
lea ecx, [ecx + eax - 1]
dec eax
not eax
and ecx, eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x118], ecx
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call fcn.010483c0
test eax, eax
mov dword [ebp - 0x14], eax
je 0x107730b
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 0x10777dc
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x10775b2
lea eax, [eax + eax*4]
lea eax, [esi + eax*8]
cmp edx, eax
jne 0x10775b2
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 0x107756b
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 - 0x130]
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 0x10775aa
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 - 0x130]
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 0x107742d
cmp edx, dword [ebp - 0x1c]
jae 0x107742d
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 0x1077440
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 0x1077726
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 0x1077680
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 0x10776e6
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 0x1077660
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0xc]
and dword [ebp - 8], 0
test edx, edx
mov dword [ebp - 0xc], edx
je 0x10777d7
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 0x1077760
mov ecx, dword [edx + 4]
mov ax, word [eax + 4]
cmp ax, word [ecx + 4]
je 0x107779a
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 0x107774c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x10775d0
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
jmp 0x10779ce
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 0x1077918
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 0x1077872
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 0x10778d8
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 0x1077852
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0xc]
and dword [ebp - 8], 0
test edx, edx
mov dword [ebp - 0xc], edx
je 0x10779c9
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 0x1077952
mov ecx, dword [edx + 4]
mov ax, word [eax + 4]
cmp ax, word [ecx + 4]
je 0x107798c
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 0x107793e
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x10777f2
mov ecx, dword [ebp - 0x34]
cmp edi, ecx
jae 0x10779ef
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, 0x108
push eax
push edi
push esi
call fcn.0107533a
mov eax, dword [ebp - 0x114]
sub eax, dword [ebp - 0x21c]
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 - 0x21c]
sub eax, dword [ebp - 0x4c]
push eax
push edi
push esi
call fcn.0107533a
mov eax, dword [ebp - 0x12c]
lea ecx, [eax - 1]
mov edx, ecx
and edx, dword [ebp - 0x114]
sub eax, edx
and eax, ecx
mov esi, eax
add dword [ebp - 0x114], esi
cmp esi, 0x10
jl 0x1077a7e
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 0x1077a6d
push esi
push dword [0x10a776c]
push edi
call fcn.010752ec
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x21c]
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 - 0x148], 0
cmp ebx, eax
mov esi, dword [ebp - 0x40]
jae 0x1077c5f
cmp ebx, dword [ebp - 0x38]
jne 0x1077ac9
add ebx, 0x28
cmp esi, dword [ebp - 0x1c]
jne 0x1077b81
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 - 0x12c]
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 0x1077b66
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 - 0x148], eax
cmp dword [ebp - 0x50], 0
jne 0x1077c50
add esi, 0x28
jmp 0x1077c13
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x1077bee
mov ecx, dword [ebp - 0x40]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
cmp esi, eax
jne 0x1077bee
push edi
call fcn.010752b7
push dword [ebp - 0x54]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
push dword [ebp - 0x12c]
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 - 0x148], eax
jmp 0x1077b79
cmp esi, dword [ebp - 0x1c]
jae 0x1077c13
cmp dword [ebx + 0x14], 0
je 0x1077c39
mov eax, dword [ebx + 0x14]
push edi
mov dword [ebp - 0x4c], eax
call fcn.010752b7
cmp dword [ebp - 0x4c], eax
je 0x1077c13
push dword [ebp - 0x4c]
push edi
call fcn.010752d1
cmp dword [ebx + 0x14], 0
je 0x1077c39
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 0x1077c41
mov dword [ebp - 0x24], esi
test byte [esi + 0x24], 0x40
je 0x1077c50
mov eax, dword [esi + 0x10]
add dword [ebp - 0x148], eax
add ebx, 0x28
add esi, 0x28
cmp ebx, dword [ebp - 0x28]
jb 0x1077ac1
mov eax, dword [ebp - 0x38]
xor ebx, ebx
cmp eax, ebx
je 0x1077c71
mov eax, dword [eax + 0x10]
sub dword [ebp - 0x148], eax
movzx eax, word [ebp - 0x162]
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 0x1077c9a
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x10]
add eax, 0x108
push eax
push edi
call fcn.010752d1
movzx eax, word [ebp - 0x162]
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 - 0x162]
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 - 0x168]
push ecx
lea ecx, [ebp - 0x270]
push ecx
push dword [ebp - 0x24]
push dword [ebp - 0x58]
push eax
push dword [ebp - 0x5c]
push edi
push dword [ebp + 8]
call fcn.010757a8
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1077d4d
mov eax, dword [ebp - 0x50]
cmp eax, ebx
jne 0x1077d29
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
jmp 0x1077d32
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x1c]
sub eax, dword [ecx + 0x10]
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x168]
push ecx
push eax
push esi
push edi
push dword [ebp + 8]
call fcn.01075aad
mov dword [ebp - 4], eax
cmp dword [ebp - 0x58], ebx
je 0x1077d9e
cmp dword [ebp - 0x5c], ebx
jne 0x1077d9e
cmp dword [ebp - 0xac], ebx
je 0x1077d9e
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 - 0x15c], ebx
je 0x1077d86
sub eax, dword [ebp - 8]
add dword [ebp - 0x15c], 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 0x108
lea eax, [ebp - 0x168]
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 0x1077dff
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