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

Disassembly:
sub esp, 0x58
mov ecx, dword [0xaa60a8]
push ebx
xor eax, eax
push ebp
push esi
cmp ecx, eax
push edi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], SysReAllocString
mov dword [esp + 0x14], eax
jle 0x6987a8
mov dword [esp + 0x10], eax
mov eax, dword [0xaa609c]
mov ecx, dword [esp + 0x10]
add ecx, eax
push 0
push 0
mov edx, dword [ecx]
mov dword [esp + 0x38], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x3c], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x40], edx
lea edx, [esp + 0x38]
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x48], eax
call fcn.0041fdf0
mov edx, dword [eax]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x34]
mov edx, dword [eax + 8]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x30]
mov eax, dword [eax + 0xc]
test edi, edi
mov dword [esp + 0x2c], eax
jle 0x698640
test ebp, ebp
jle 0x698640
mov eax, dword [esp + 0x74]
test eax, eax
jle 0x698632
mov eax, dword [esp + 0x78]
test eax, eax
jle 0x698632
mov esi, ebp
mov ebp, dword [esp + 0x6c]
cmp edx, ebp
mov eax, edi
jle 0x6985d8
sub eax, ebp
add eax, edx
mov edx, ebp
mov ebx, dword [esp + 0x70]
cmp ecx, ebx
jle 0x6985e6
sub ecx, ebx
add esi, ecx
mov ecx, ebx
mov ebx, dword [esp + 0x74]
add ebx, ebp
lea ebp, [eax + edx]
cmp ebp, ebx
jge 0x698601
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x6c]
sub eax, edx
lea eax, [eax + ebx + 1]
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x78]
add ebx, ebp
lea ebp, [esi + ecx]
cmp ebp, ebx
jge 0x698620
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + 0x78]
sub esi, ecx
lea esi, [esi + ebx + 1]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x44], ecx
jmp 0x698658
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
mov eax, edi
mov esi, ebp
jmp 0x698658
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x78]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
jle 0x698779
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jle 0x698779
mov ecx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x20]
cmp ebx, ecx
jne 0x6986c7
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x70]
cmp ecx, ebx
jne 0x6986c7
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x74]
cmp ecx, ebx
jne 0x6986c7
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x78]
cmp ecx, ebx
jne 0x6986c7
mov al, byte [esp + 0x7c]
test al, al
je 0x6988b8
mov edx, dword [0xaa609c]
mov eax, dword [esp + 0x10]
mov cl, byte [eax + edx + 0x10]
test cl, cl
jne 0x6988b8
jmp 0x698779
cmp dword [esp + 0x20], edx
jne 0x698752
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
cmp ecx, edx
jne 0x698752
cmp dword [esp + 0x28], edi
jne 0x698752
cmp dword [esp + 0x2c], ebp
jne 0x698752
mov al, byte [esp + 0x7c]
test al, al
jne 0x698703
mov edx, dword [0xaa609c]
mov eax, dword [esp + 0x10]
mov cl, byte [eax + edx + 0x10]
test cl, cl
jne 0x698779
mov eax, dword [0xaa60a8]
mov ebx, dword [esp + 0x14]
cmp ebx, eax
jge 0x698740
dec eax
mov edx, ebx
cmp ebx, eax
mov dword [0xaa60a8], eax
jge 0x698740
mov eax, dword [esp + 0x10]
mov ecx, dword [0xaa609c]
inc edx
lea esi, [eax + ecx + 0x14]
lea edi, [eax + ecx]
mov ecx, 5
add eax, 0x14
rep movsd dword es:[edi], dword [esi]
cmp edx, dword [0xaa60a8]
jl 0x698720
mov eax, dword [esp + 0x10]
dec ebx
sub eax, 0x14
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
jmp 0x698779
mov ecx, dword [esp + 0x78]
imul ebp, edi
imul ecx, dword [esp + 0x74]
imul eax, esi
add ecx, ebp
cmp eax, ecx
jge 0x698779
cmp eax, dword [esp + 0x1c]
jge 0x698779
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, dword [0xaa60a8]
inc eax
add esi, 0x14
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
jl 0x69853f
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
jne 0x698844
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x5c], eax
mov al, byte [esp + 0x7c]
mov byte [esp + 0x64], al
mov eax, dword [0xaa60a0]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x78]
cmp ecx, eax
mov dword [esp + 0x60], edx
jl 0x698814
mov cl, byte [0xaa60a5]
test cl, cl
jne 0x6987eb
test eax, eax
jne 0x6988b8
mov ecx, dword [0xaa60ac]
test ecx, ecx
jle 0x6988b8
mov edx, dword [0xaa6098]
add eax, ecx
push 0
push eax
mov ecx, 0xaa6098
call dword [edx + 8]
test al, al
je 0x6988b8
mov ecx, dword [0xaa60a8]
lea esi, [esp + 0x54]
mov eax, ecx
inc ecx
mov dword [0xaa60a8], ecx
mov ecx, dword [0xaa609c]
lea eax, [eax + eax*4]
lea edi, [ecx + eax*4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x14
mov cl, byte [esp + 0x7c]
test cl, cl
jne 0x698860
lea edx, [eax + eax*4]
mov eax, dword [0xaa609c]
mov cl, byte [eax + edx*4 + 0x10]
test cl, cl
jne 0x698860
xor ebx, ebx
jmp 0x698865
mov ebx, 1
mov esi, dword [esp + 0x18]
mov ecx, dword [0xaa609c]
lea esi, [esi + esi*4]
shl esi, 2
lea edx, [esi + ecx]
lea ecx, [esp + 0x54]
push edx
lea edx, [esp + 0x70]
call fcn.0045ec50
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0xc]
mov eax, dword [0xaa609c]
mov dword [esp + 0x48], ecx
mov ecx, 5
mov dword [esp + 0x4c], edx
lea edi, [esi + eax]
lea esi, [esp + 0x40]
mov byte [esp + 0x50], bl
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x14