Function at 0x10012740
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x320
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x131]
mov byte [esp + 0x130], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebp, ebp
push 1
push 0x10001c80
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], ebp
stosb byte es:[edi], al
call fcn.10013940
add esp, 8
push 0xf003f
push ebp
push ebp
call dword [fcn.10003bcc]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push 0x10000
push 0x40
mov dword [esp + 0x2c], esi
call edi
mov ebx, eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push 0x10000
push ebx
push 3
push 0x30
push esi
call dword [0x10003b64]
push 0x104
push 0x40
call edi
mov edi, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov byte [edi], 0x82
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jbe 0x10012adc
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov eax, dword [ebx]
push 0xf01ff
push eax
push esi
mov dword [esp + 0x34], 0
call dword [fcn.10003bd0]
mov edi, eax
test edi, edi
je 0x10012abe
push 0x1000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [esp + 0x28]
mov esi, eax
push ecx
push 0x1000
push esi
push edi
call dword [0x10003b68]
mov eax, dword [ebx + 0xc]
mov ecx, 0x40
cmp eax, 1
je 0x10012870
xor eax, eax
lea edi, [esp + 0x130]
lea edx, [esp + 0x130]
push 0x10001cb4
rep stosd dword es:[edi], eax
push edx
jmp 0x10012888
xor eax, eax
lea edi, [esp + 0x130]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x130]
push 0x10001cac
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [esi + 4], 2
jne 0x100128b1
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x30]
push 0x10001ca4
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [esi + 4], 3
jne 0x100128d4
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x30]
lea edx, [esp + 0x30]
push 0x10001c9c
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [esi + 4], 4
jne 0x100128f7
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x30]
push 0x10001c94
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x231]
mov byte [esp + 0x230], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [esi + 0xc]
push ecx
call ebp
test eax, eax
jle 0x1001293a
mov edx, dword [esi + 0xc]
push edx
call ebp
mov esi, dword [esi + 0xc]
mov ecx, eax
lea edi, [esp + 0x230]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
push ecx
call ebp
lea edx, [esp + 0x230]
mov esi, eax
push edx
call ebp
add esi, eax
lea eax, [esp + 0x30]
push eax
call ebp
lea ecx, [esp + 0x130]
add esi, eax
push ecx
call ebp
mov edx, dword [ebx]
add esi, eax
push edx
call ebp
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
lea eax, [esi + eax + 6]
push edi
lea esi, [ecx + eax]
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, esi
jae 0x10012990
push 0x42
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [esp + 0x14], eax
mov edx, dword [ebx + 4]
push edx
call ebp
test eax, eax
jle 0x100129bf
mov eax, dword [ebx + 4]
push eax
call ebp
mov edx, dword [esp + 0x10]
mov esi, dword [ebx + 4]
mov ecx, eax
mov eax, dword [esp + 0x14]
inc ecx
lea edi, [edx + 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 eax, dword [ebx + 4]
push eax
call ebp
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx]
push edx
lea edi, [ecx + eax + 1]
mov dword [esp + 0x14], edi
call ebp
test eax, eax
jle 0x100129fc
mov eax, dword [ebx]
push eax
call ebp
mov edx, dword [esp + 0x14]
mov esi, dword [ebx]
mov ecx, eax
add edi, edx
inc ecx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
mov ecx, dword [ebx]
push ecx
call ebp
lea edx, [esp + 0x230]
lea edi, [edi + eax + 1]
push edx
mov dword [esp + 0x14], edi
call ebp
mov ecx, eax
mov eax, dword [esp + 0x14]
inc ecx
lea esi, [esp + 0x230]
mov edx, ecx
add edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x230]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x130]
push edx
lea edi, [ecx + eax + 1]
mov dword [esp + 0x14], edi
call ebp
mov ecx, eax
mov eax, dword [esp + 0x14]
inc ecx
lea esi, [esp + 0x130]
mov edx, ecx
add edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x130]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
lea edi, [ecx + eax + 1]
mov dword [esp + 0x14], edi
call ebp
mov ecx, eax
mov eax, dword [esp + 0x14]
inc ecx
lea esi, [esp + 0x30]
mov edx, ecx
add edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x30]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
lea edx, [ecx + eax + 1]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc eax
add ebx, 0x24
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x10012807
mov edi, dword [esp + 0x14]
xor ebp, ebp
push esi
call dword [fcn.10003bd8]
mov eax, dword [esp + 0x10]
push 0x42
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
push ebp
push 0x10001c80
mov esi, eax
call fcn.10013940
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x320
ret