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

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x10
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x1012d77d
mov edi, dword [esp + 0x24]
push 1
push edi
mov dword [eax], edi
call fcn.1012d3c0
add esp, 8
test eax, eax
je 0x1012d77d
mov eax, dword [edi + 0x3c]
lea ecx, [eax + edi + 0x78]
mov dword [esp + 0x1c], ecx
mov eax, dword [ecx]
test eax, eax
je 0x1012d77d
mov edx, dword [ecx + 4]
test edx, edx
je 0x1012d77d
mov ebp, dword [esp + 0x2c]
push eax
push edi
call ebp
mov esi, eax
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
push edx
push edi
mov dword [esp + 0x20], ecx
call ebp
mov ebx, eax
mov eax, dword [esi + 0x1c]
push eax
push edi
call ebp
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x30], eax
push ecx
push edi
call ebp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
add esp, 0x20
mov dword [esp + 0x24], 0
test eax, eax
jbe 0x1012d77d
mov edx, dword [ebx]
push edx
push edi
call ebp
mov esi, dword [esp + 0x30]
add esp, 8
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1012d760
test cl, cl
je 0x1012d75c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1012d760
add eax, 2
add esi, 2
test cl, cl
jne 0x1012d73c
xor eax, eax
jmp 0x1012d765
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1012d787
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x24], eax
jb 0x1012d72f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
xor eax, eax
mov ax, word [ecx + edx*2]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
lea eax, [ecx + eax*4]
mov ecx, dword [eax]
cmp ecx, edx
jbe 0x1012d77f
mov esi, dword [esi + 4]
add esi, edx
cmp ecx, esi
jae 0x1012d77f
add edi, ecx
push 0x10260bc0
push edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], edi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x1012d8a4
inc eax
or ecx, 0xffffffff
mov dword [esp + 0x1c], eax
mov esi, eax
xor eax, eax
sub esi, edi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esi + 4]
mov ebx, ecx
push edi
sub ebx, esi
call sub.MFC42u.DLL_operatornew
mov ecx, edi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x30]
push eax
push ebp
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edi, 0x1026e6b0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 1]
push edi
call sub.MFC42u.DLL_operatornew
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x20
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x1012d895
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
push esi
push eax
call fcn.1012d6a0
add esp, 0x10
mov dword [esp + 0x24], eax
push ebp
call sub.MFC42u.DLL_operatordelete
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 8
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret