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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov ecx, dword [ebx + 8]
push esi
mov esi, eax
mov eax, dword [ebp + 8]
push edi
mov dword [esp + 0x18], ecx
test esi, esi
je 0x1004aad6
cmp dword [eax + 0x24], 0
je 0x1004aad0
mov ecx, dword [ecx + 0x18]
mov edi, dword [ecx + 0x74]
lea edx, [edi + 1]
mov dword [ecx + 0x74], edx
lea edx, [edi - 1]
mov dword [esp + 0x14], ecx
test edi, edx
jne 0x1004aa71
lea eax, [edi*8 + 4]
push 0
push eax
mov eax, dword [ecx + 0x78]
mov ecx, dword [ecx]
call fcn.100045e0
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x78], eax
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, dword [ecx + 0x78]
test ecx, ecx
je 0x1004aa7f
mov dword [ecx + edi*4], 0xffffffff
mov ecx, dword [ebp + 0xc]
or edx, 0xffffffff
sub edx, edi
mov dword [esi], edx
inc dword [ebx + 0x6c]
push 0
mov dword [ebx + 0x68], ecx
mov edx, dword [esi]
mov eax, dword [eax + 0x24]
mov esi, dword [ebx]
push 0
push eax
push esi
mov dword [esp + 0x2c], edx
call fcn.10038b90
add esp, 0x10
cmp byte [esi + 0x45], 0
mov edi, eax
jne 0x1004aac1
mov eax, dword [esp + 0x1c]
push 0x10
push eax
push edi
push ebx
call fcn.1003d460
add esp, 0x10
push edi
push esi
call fcn.10038a50
mov eax, dword [ebp + 8]
add esp, 8
jmp 0x1004aad6
mov dword [esi], 0
cmp dword [ebp + 0x14], 0
je 0x1004aaec
test byte [eax + 0x38], 8
je 0x1004aaec
movzx esi, word [eax + 0x32]
mov dword [esp + 8], esi
jmp 0x1004aaf6
movzx ecx, word [eax + 0x34]
mov dword [esp + 8], ecx
mov esi, ecx
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x40]
mov dword [esp + 0xc], edx
cmp esi, ecx
jg 0x1004ab11
lea edi, [edx + esi]
sub ecx, esi
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x3c], ecx
jmp 0x1004ab20
mov ecx, dword [ebx + 0x4c]
lea edx, [ecx + 1]
add ecx, esi
mov dword [esp + 0xc], edx
mov dword [ebx + 0x4c], ecx
mov ecx, dword [ebp + 0x18]
xor edi, edi
cmp ecx, edi
je 0x1004ab36
cmp edx, dword [ebp + 0x1c]
jne 0x1004ab33
cmp dword [ecx + 0x24], edi
je 0x1004ab36
mov dword [ebp + 0x18], edi
mov dword [esp + 0x1c], edi
test esi, esi
jle 0x1004ac50
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
lea ebx, [ebx]
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x1004ab71
mov ecx, dword [ecx + 4]
movzx ecx, word [ecx + edi*2]
mov edx, dword [eax + 4]
cmp cx, word [edx + edi*2]
jne 0x1004ab71
cmp cx, 0xfffe
jne 0x1004ac36
mov ecx, dword [eax + 4]
movzx ecx, word [ecx + edi*2]
cmp cx, 0xfffe
jne 0x1004abcc
mov edx, dword [ebp + 0xc]
mov esi, dword [ebx]
mov dword [ebx + 0x68], edx
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + ecx]
push 0
push 0
push eax
push esi
call fcn.10038b90
add esp, 0x10
cmp byte [esi + 0x45], 0
mov edi, eax
jne 0x1004abb8
mov eax, dword [esp + 0x10]
push eax
push edi
push ebx
call fcn.1003cbd0
add esp, 0xc
push edi
push esi
call fcn.10038a50
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
add esp, 8
jmp 0x1004abe8
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
push edx
mov edx, dword [ebp + 0xc]
movsx ecx, cx
push ecx
push edx
push eax
mov eax, dword [ebx + 8]
call fcn.1003b7a0
add esp, 0x10
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x18]
lea edx, [eax - 1]
cmp edx, dword [ecx + 0x60]
jle 0x1004ac33
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 4]
cmp byte [edx + ecx*4 - 0x14], 0x27
lea esi, [edx + ecx*4 - 0x14]
jne 0x1004ac2f
mov edx, dword [eax]
cmp byte [edx + 0x45], 0
jne 0x1004ac2f
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
call fcn.10024cd0
mov dword [esi + 0x10], 0
mov word [esi], 0xa0
mov esi, dword [esp + 8]
mov eax, dword [ebp + 8]
inc dword [esp + 0x10]
add dword [esp + 0x14], 0x18
inc edi
mov dword [esp + 0x1c], edi
cmp edi, esi
jl 0x1004ab50
mov edx, dword [esp + 0xc]
cmp dword [ebp + 0x10], 0
je 0x1004acac
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x20]
mov edi, dword [ecx + 0x18]
cmp dword [edi + 0x58], eax
jg 0x1004ac81
mov eax, dword [ebp + 0x10]
push eax
push esi
push edx
push 0x31
mov esi, ecx
call fcn.10024290
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add esp, 0x10
jmp 0x1004acac
lea edi, [eax + 1]
mov dword [ecx + 0x20], edi
mov ecx, dword [ecx + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp + 0x10]
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov word [eax], 0x31
mov ecx, esi
mov edi, edx
mov eax, ebx
call fcn.1003b510
mov eax, dword [esp + 0xc]
cmp esi, dword [ebx + 0x3c]
jle 0x1004acc6
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x40], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret