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

Disassembly:
push 0xffffffffffffffff
push 0x43c2d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov eax, dword [esp + 0x98]
push ebp
test eax, eax
mov dword [esp + 0x44], ecx
je 0x415ff6
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
mov ebp, dword [edx - 8]
test ebp, ebp
jle 0x415ff6
mov eax, dword [eax + 4]
push ebx
push esi
lea esi, [ebp + 1]
push edi
mov dword [esp + 0x20], eax
lea ebx, [esi*4]
push ebx
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x1c], edi
push ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x40], edi
push esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
lea esi, [ebp + ebp]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
mov dword [esp + 0x64], ebx
rep stosb byte es:[edi], al
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, esi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x30]
and ecx, 3
add esp, 0x10
rep stosb byte es:[edi], al
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x74]
mov dword [esp + 0x58], edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0xac]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x78], ebx
lea edx, [esp + 0x74]
xor ebx, ebx
push 0x40000a
mov dword [esp + 0x80], eax
mov eax, dword [edi]
push edx
push ebx
push ebp
mov dword [esp + 0x84], 0x24
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], ecx
mov dword [esp + 0xa0], ebp
push eax
push esi
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
test eax, eax
jne 0x415c67
mov eax, dword [esp + 0x18]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x28]
mov edi, dword [edi]
push ecx
push ebx
push ebx
lea edx, [esp + 0x3e]
push ebx
lea eax, [esp + 0x6c]
push edx
push eax
push ebx
push 0x10a0
push ebx
push ebp
push ebp
push edi
push esi
mov dword [esp + 0x90], ebx
mov word [esp + 0x66], bx
call sub.USP10.dll_ScriptStringAnalyse
cmp dword [esp + 0x28], ebx
je 0x415faf
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CPtrArray::CPtrArray
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x68]
mov dword [esp + 0xa8], ebx
call sub.MFC42.DLL_CPtrArray::SetSize
xor edi, edi
cmp ebp, ebx
jle 0x415d80
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
push 0x10
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, ebx
je 0x415cf2
mov dword [eax], 0xffffffff
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [esp + 0x14], eax
jmp 0x415cf6
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [edx], edi
je 0x415d0c
mov eax, dword [esp + 0x10]
mov esi, dword [eax]
jmp 0x415d0e
mov esi, edi
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx + esi*4]
cmp ecx, ebx
jne 0x415d4f
push 0x14
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebx
mov byte [esp + 0xa0], 1
je 0x415d3c
mov ecx, eax
call sub.MFC42.DLL_CPtrArray::CPtrArray
jmp 0x415d3e
xor eax, eax
mov edx, dword [esp + 0x64]
mov byte [esp + 0xa0], 0
mov ecx, eax
mov dword [edx + esi*4], eax
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
push edx
push eax
call sub.MFC42.DLL_CPtrArray::SetAtGrow
cmp esi, edi
je 0x415d6c
mov eax, dword [esp + 0x50]
mov dword [eax + 0x28], 1
mov ecx, dword [esp + 0x10]
inc edi
add ecx, 4
cmp edi, ebp
mov dword [esp + 0x10], ecx
jl 0x415ccf
mov ecx, dword [esp + 0xb8]
push 0xffffffffffffffff
push ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x34], ebx
call sub.MFC42.DLL_CUIntArray::SetSize
mov eax, dword [esp + 0x68]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x20], esi
jle 0x415f85
mov ecx, dword [esp + 0x64]
mov edi, dword [ecx + esi*4]
cmp edi, ebx
mov dword [esp + 0x48], edi
je 0x415f85
mov eax, dword [edi + 8]
mov dword [esp + 0x44], ebx
cmp eax, ebx
jle 0x415f61
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], ebx
imul eax, dword [esp + 0xb4]
mov dword [esp + 0x4c], eax
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x14]
mov esi, dword [eax + edx]
cmp esi, ebx
je 0x415f3e
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov edx, dword [esi]
push ecx
push ebx
push edx
push eax
call sub.USP10.dll_ScriptStringCPtoX
mov edx, dword [esi]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push ecx
push 1
push edx
push eax
call sub.USP10.dll_ScriptStringCPtoX
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
cmp ebp, ebx
mov ecx, ebp
jl 0x415e38
mov ecx, ebx
cmp ebp, ebx
mov eax, ebp
jg 0x415e40
mov eax, ebx
mov edx, dword [esi]
mov edi, dword [esp + 0x38]
mov edi, dword [edi + edx*4]
test edi, edi
jg 0x415e51
mov edi, eax
sub edi, ecx
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x50]
cmp dword [edi + 0x28], 0
jne 0x415e7b
cmp dword [esp + 0x10], ecx
je 0x415e7b
cmp dword [esp + 0x3c], ebp
jne 0x415e71
cmp dword [esp + 0x2c], ebx
je 0x415e7b
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
add eax, ecx
mov ebx, dword [esp + 0xac]
mov edi, dword [ebx]
cmp byte [edi + edx], 9
jne 0x415e93
mov eax, dword [esp + 0xb4]
add eax, ecx
mov edi, dword [esp + 0x4c]
add eax, edi
lea ebp, [edi + ecx]
mov ecx, dword [esp + 0xb0]
add ebp, ecx
add eax, ecx
mov dword [esi + 4], ebp
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
xor eax, eax
cmp ecx, ebp
setl al
mov dword [esi + 0xc], eax
mov ecx, dword [ebx]
cmp byte [ecx + edx], 9
jne 0x415edd
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0xb4]
inc edx
add edi, ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x4c], edi
mov ecx, dword [esp + 0xbc]
test eax, eax
mov edi, dword [ecx + 8]
je 0x415ef4
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x415ef4
dec edi
push 1
push esi
push edi
call sub.MFC42.DLL_CPtrArray::InsertAt
mov edx, dword [esp + 0xb8]
mov esi, dword [esi]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 4]
mov dword [eax + esi*4], edi
mov eax, dword [esp + 0x24]
cmp ecx, eax
mov ecx, dword [esp + 0x1c]
jne 0x415f22
cmp dword [esp + 0x2c], ecx
je 0x415f30
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x10]
add esi, edx
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ecx
xor ebx, ebx
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 8]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x14], edx
jl 0x415de7
mov esi, dword [esp + 0x20]
push 0xffffffffffffffff
push ebx
mov ecx, edi
call sub.MFC42.DLL_CPtrArray::SetSize
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
mov eax, dword [esp + 0x68]
inc esi
cmp esi, eax
mov dword [esp + 0x20], esi
jl 0x415db1
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CPtrArray::SetSize
lea ecx, [esp + 0x28]
push ecx
call sub.USP10.dll_ScriptStringFree
lea ecx, [esp + 0x60]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0043a5bc
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x415fc0
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x415fd1
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x415fe2
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x58]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x415ff6
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x8c]
pop ebp
mov dword fs:[0], ecx
add esp, 0x94
ret 0x18