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

Disassembly:
sub esp, 0x44
mov eax, dword [esp + 0x54]
push ebx
mov word [esp + 0xa], dx
mov edx, dword [esp + 0x50]
movzx eax, word [eax + 0x59e8]
mov dword [esp + 0x40], eax
movzx eax, byte [0x1004d3ee]
mov dword [esp + 0x44], eax
push ebp
mov ebp, dword [0x1004d3f0]
push esi
push edi
mov edi, ecx
movzx ebx, word [0x1004d3fc]
mov eax, dword [edx + ebp*4]
lea ecx, [ebp*2]
mov dword [esp + 0x20], eax
add ecx, ebp
mov ax, word [0x1004d400]
mov word [esp + 0x14], ax
movzx eax, ax
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], 0x1ad2
lea esi, [eax*4]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x30], esi
mov al, byte [esi + eax]
mov byte [esp + 0x13], al
mov eax, 0x155d
sub eax, dword [0x1004d3b8]
mov dword [esp + 0x1c], eax
mov eax, dword [0x1004d41c]
mov eax, dword [eax + ecx*4]
or eax, dword [esi + edx]
xor edx, edx
movzx ecx, word [edi]
movzx esi, word [esp + 0x16]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], esi
movzx eax, word [edi + ecx*2]
div esi
mov eax, dword [0x1004d3d4]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x44], edx
mov eax, dword [eax + ecx*4]
mov edx, dword [esi + ebp*8]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x24], edx
movzx eax, word [eax + ebp*2 + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x68]
movzx eax, word [eax + 0x4378]
mov dword [esp + 0x40], eax
mov eax, 0x1b5c
mov dword [esp + 0x34], eax
movzx eax, byte [0x1004d3c6]
mov dword [esi + ecx*4 + 0x20], eax
cmp dword [esi + ebp*4], 0x108e
jne 0x1000af5e
movzx eax, word [edi]
mov ecx, dword [esp + 0x20]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + edx*4]
add dword [ecx], eax
mov eax, 0x6a
mov ecx, dword [esp + 0x30]
cdq
idiv dword [ecx + esi]
mov edx, dword [esp + 0x24]
mov cl, al
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x5c]
cmp dword [eax + edx*4], edx
jge 0x1000abc6
inc word [edi]
movzx eax, word [edi]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x34], eax
mov esi, eax
movzx eax, cl
inc cl
mov byte [esp + 0x13], cl
cmp dword [edx + esi*4], eax
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x24]
je 0x1000abc6
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
pop edi
movzx eax, word [ecx + eax*2]
mov ecx, 0x943
sub ecx, eax
mov eax, ecx
mov ecx, 0x1298
cdq
idiv ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
or dword [esi + ecx*4], edx
mov edx, dword [eax]
add edx, dword [0x1004d3c8]
pop esi
pop ebp
pop ebx
mov al, byte [edx]
mov cl, al
add al, al
add cl, al
mov eax, 0x1106
shl cl, 4
mov byte [edx], cl
add esp, 0x44
ret
mov eax, dword [0x1004d420]
inc dword [0x1004d420]
movzx ecx, cl
cmp ecx, eax
mov dword [esp + 0x24], 0xffff
mov cx, word [0x1004d430]
jl 0x1000abf5
mov eax, 0x1d4
cmp cx, ax
jb 0x1000acd5
inc word [edi]
mov esi, dword [esp + 0x5c]
movzx eax, word [edi]
cmp dword [esi + eax*4], 0x1488
mov esi, dword [esp + 0x58]
jne 0x1000acd5
mov ax, word [esp + 0x14]
mov ecx, dword [esp + 0x5c]
inc ax
mov word [esp + 0x14], ax
movzx eax, ax
mov dword [ecx + eax*4], ebp
inc ebp
mov eax, dword [0x1004d404]
mov ecx, dword [esp + 0x60]
movzx eax, byte [eax + edx + 8]
inc edx
add eax, dword [esp + 0x18]
mov dword [esi + ebx*4], eax
inc word [edi]
movzx eax, word [edi]
movzx eax, word [ecx + eax*2]
mov ecx, 0x1488
sub ax, cx
mov ecx, dword [esp + 0x20]
movzx eax, ax
add dword [esi + eax*4], 0x122b
mov ax, word [esp + 0x14]
inc ax
movzx esi, ax
mov word [esp + 0x14], ax
mov word [0x1004d400], ax
mov eax, edx
shl eax, 4
add ecx, eax
shl esi, 2
mov eax, dword [esp + 0x64]
mov dword [esp + 0x30], esi
mov eax, dword [esi + eax]
sub eax, dword [ecx]
mov dword [ecx], eax
movzx eax, word [0x1004d428]
xor word [edi + ebx*4], dx
or eax, 0x1ad2
mov ecx, dword [0x1004d3e8]
mov dword [esp + 0x2c], eax
inc ecx
mov eax, dword [0x1004d40c]
lea esi, [eax + ebx*4]
mov dword [0x1004d3e8], ecx
mov eax, 0xf44f35af
mul ecx
movzx eax, word [edi]
mov ecx, dword [esp + 0x58]
shr edx, 0xc
sub edx, dword [esi]
mov dword [esi], edx
or dword [ecx + eax*4], 0x1952
jmp 0x1000aec9
mov ax, cx
add cx, word [esp + 0x24]
mov word [0x1004d430], cx
cmp word [0x1004d3ec], ax
jbe 0x1000acf7
cmp dword [esp + 0x48], edx
je 0x1000adb0
movzx eax, word [edi]
mov ecx, dword [esp + 0x60]
movzx eax, word [ecx + eax*8]
cmp eax, dword [0x1004d420]
jg 0x1000adb4
mov ebp, dword [esp + 0x64]
xor edx, edx
mov eax, dword [ebp + ebx*4]
div dword [0x1004d434]
movzx eax, word [edi]
mov dword [0x1004d434], edx
xor edx, edx
movzx ecx, word [esi + eax*4]
xor word [ebx*4 + 0x639], cx
mov eax, dword [esp + 0x5c]
mov ecx, dword [0x1004d3b8]
add dword [eax + ebx*4], ecx
movzx esi, word [edi]
mov ebx, dword [esp + 0x18]
mov eax, ebx
add eax, eax
movzx ecx, word [esi*4 + 0x635]
mov eax, dword [ebp + eax*8]
div ecx
mov cx, word [esp + 0x16]
mov word [esi*4 + 0x635], dx
xor edx, edx
movzx eax, byte [0x13ce]
mov esi, dword [0x1004d3bc]
sub cx, ax
add word [edi + ebx*2], cx
movzx eax, word [edi]
mov ecx, dword [esp + 0x20]
pop edi
mov dword [ecx + eax*4], esi
movzx eax, word [0x1004d3ec]
mov ecx, dword [esp + 0x38]
lea ecx, [ecx + eax*4]
mov eax, esi
div dword [ecx]
inc esi
mov dword [0x1004d3bc], esi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, 0x1106
pop ebx
add esp, 0x44
ret
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x38]
mov ax, word [edi + edx*2]
cmp ax, word [ecx + ebp*2 + 8]
jae 0x1000ade0
mov eax, dword [esp + 0x24]
mov esi, 0xffd
add word [edi], ax
movzx eax, word [edi]
cmp word [eax + eax + 0x635], si
mov esi, dword [esp + 0x58]
jbe 0x1000adf6
movzx eax, word [edi]
mov esi, 0x1ad2
cmp word [edi + eax*2], si
mov esi, dword [esp + 0x58]
ja 0x1000aec9
movzx eax, word [ecx + ebp*2]
cmp eax, dword [0x1004d424]
jge 0x1000aec9
mov ax, word [ecx + edx*2]
dec ebx
mov edx, dword [esp + 0x4c]
and word [ebx + ebx + 0x4d], ax
movzx eax, word [edi]
mov byte [eax + 0x6a3], dl
mov al, byte [0x1004d3ee]
movzx eax, al
mov word [ecx + 0xdae0], ax
mov eax, dword [0x1004d3e8]
mov ecx, dword [esp + 0x68]
dec eax
mov dword [0x1004d3e8], eax
shl eax, 4
add ecx, eax
mov eax, 0xda
cdq
idiv dword [ecx]
mov eax, dword [esp + 0x68]
mov dword [ecx], edx
movzx edx, word [edi]
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + edx*4]
mov dword [edx*4 + 0x1617], ecx
movzx edx, word [edi]
mov ecx, dword [esp + 0x18]
mov ecx, dword [esi + ecx*8 + 0x14]
mov dword [eax + edx*4], ecx
xor edx, edx
mov eax, dword [esp + 0x44]
mov ecx, 0x1ad2
mov eax, dword [eax + ebp*8 + 0x14]
div ecx
movzx eax, word [edi]
movzx ecx, word [edi + eax*2]
lea esi, [edi + eax*2]
mov dword [esp + 0x2c], edx
mov eax, 0xf32
xor edx, edx
div ecx
mov ecx, dword [0x1004d438]
xor edx, edx
mov word [esi], ax
movzx esi, word [edi]
sub edi, 2
mov eax, dword [esp + 0x18]
lea esi, [ecx + esi*4]
mov ecx, dword [0x1004d404]
movzx ecx, byte [ecx + 0xcfd]
sub eax, ecx
div dword [esi + 4]
mov eax, dword [esp + 0x24]
mov dword [esi + 4], edx
add word [edi], ax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x5c]
movzx eax, ax
add eax, 0x15e
cdq
idiv dword [ecx + 0x6d70]
mov eax, 0x1b5d
mov dword [ecx + 0x6d70], edx
xor edx, edx
mov dword [esp + 0x34], eax
mov eax, dword [0x1004d43c]
or eax, 0xdf5
mov dword [esp + 0x60], eax
movzx eax, word [edi]
movzx ecx, word [edi + eax*2 + 6]
lea esi, [edi + eax*2]
mov eax, dword [esp + 0x2c]
add edi, 2
div ecx
mov word [esi + 6], dx
xor edx, edx
movzx eax, byte [0x21d1]
and word [edi + ebx*4], ax
movzx esi, word [edi]
add esi, dword [0x1004d3dc]
mov eax, dword [0x1004d3cc]
movzx ecx, byte [esi]
div ecx
xor edx, edx
mov byte [esi], al
mov eax, dword [esp + 0x24]
add word [edi], ax
mov eax, 0x11da
movzx ecx, word [edi]
mov esi, dword [esp + 0x58]
div dword [ecx*4 + 0x1613]
mov dword [ecx*4 + 0x1613], edx
jmp 0x1000af67
mov eax, dword [0x1004d43c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x58], 0x16f0
sub dword [esp + 0x1c], 4
mov eax, dword [eax]
push 0xf17
push 0x8c4
lea edx, [ecx + eax*2]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x64]
add ecx, ecx
mov cx, word [eax + ecx*8]
mov eax, dword [esp + 0x70]
xor cx, word [eax + 0x3880]
movzx eax, word [edx]
movzx ecx, cx
imul ecx, eax
mov eax, dword [esp + 0x48]
movzx eax, ax
mov word [edx], cx
xor edx, edx
div dword [esp + 0x60]
movzx ecx, byte [esp + 0x1b]
mov eax, edx
cdq
idiv ecx
mov eax, dword [esp + 0x4c]
and dword [eax + ebp*4], edx
dec ebp
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x64]
mov dword [0x1004d3f0], ebp
mov eax, dword [eax]
lea edx, [edx + eax*4]
mov eax, dword [esp + 0x30]
movzx ecx, word [eax + ecx*4 + 0xa]
movzx eax, word [0x1004d414]
imul ecx, eax
mov eax, dword [esp + 0x30]
add dword [edx], ecx
movzx ecx, word [edi]
mov dx, word [esp + 0x1c]
mov word [eax + ecx*2], dx
movzx ecx, word [edi]
mov eax, dword [esp + 0x64]
lea edx, [eax + ecx*4]
mov eax, dword [esp + 0x70]
mov ecx, 0x1965
sub ecx, dword [edx]
mov dword [edx], ecx
lea ecx, [eax + ebx*4]
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x55a0]
cdq
idiv dword [ecx + 4]
xor edx, edx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x68]
mov ecx, eax
inc eax
mov dword [0x1004d43c], eax
mov eax, dword [esi + ebp*8]
div dword [esp + 0x34]
movzx eax, byte [ebx + 0x69c]
push ecx
movzx ecx, word [edi]
mov ecx, dword [esi + ecx*4 + 8]
add ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
push ecx
mov ecx, dword [0x1004d3d8]
push edx
cdq
idiv dword [esi + ecx + 4]
mov eax, dword [0x1004d3f8]
mov ecx, edx
mov edx, dword [esp + 0x78]
mov dx, word [edx + eax*8]
call fcn.1000aa20
add esp, 0x14
mov eax, 0x1106
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret