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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x1013d070]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], 0
and dl, 2
mov byte [esp + 0x13], dl
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0x74]
movzx ecx, word [edi + 0x46]
mov dword [esp + 0xc], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
movsx eax, byte [edi + 0x44]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebx
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x18]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebx + 0x38]
mov dword [esp + 0x1c], ecx
test dl, dl
je 0x1004af46
cmp byte [ebx + 8], 0
je 0x1004af88
push ecx
push ebx
call fcn.10043000
movzx esi, word [ebx + 0x14]
add esp, 8
movzx ecx, ax
add esi, 2
add esi, ecx
mov eax, 0xaaaaaaab
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x24]
add ecx, ecx
mul ecx
shr edx, 1
cmp esi, edx
jg 0x1004af88
mov dword [esp + 0x2c], 1
cmp byte [ebx + 8], 0
jne 0x1004b030
and byte [edi + 1], 0xf1
xor eax, eax
mov word [edi + 0x32], ax
cmp byte [edi], al
jne 0x1004b021
movzx ecx, word [edi + 0x46]
test cx, cx
je 0x1004b021
mov eax, dword [edi + 0x74]
cmp byte [eax + 8], 0
je 0x1004b021
lea eax, [ecx - 1]
mov word [edi + 0x46], ax
jmp 0x1004b030
cmp byte [edi + 0x45], 0
mov ecx, edi
je 0x1004afa3
call fcn.10046560
mov eax, dword [edi + 0x20]
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0x24]
mov dword [edi + 0x3c], eax
jmp 0x1004af46
call fcn.10046560
mov eax, dword [edi + 0x2c]
mov dword [edi + 0x3c], 0
push dword [edi + 0x3c]
mov dword [edi + 0x38], eax
push eax
call fcn.1002f6c0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1004b008
push 0
push ebx
push dword [edi + 0x38]
xor edx, edx
mov ecx, edi
call fcn.100467b0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1004afeb
mov dword [edi + 0x10], ebx
mov ebx, dword [esp + 0x18]
jmp 0x1004af46
push ebx
call fcn.1002f800
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.100ae9aa
mov esp, ebp
pop ebp
ret
mov esi, 7
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.100ae9aa
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.100476a0
test eax, eax
jne 0x1004b311
test byte [edi + 1], 0x20
je 0x1004b04e
mov edx, dword [edi + 0x40]
mov ecx, dword [esp + 0x14]
push edi
call fcn.100428b0
add esp, 4
test eax, eax
jne 0x1004b311
cmp dword [edi + 0x70], 0
jne 0x1004b0a7
mov eax, dword [esp + 0xc]
mov edx, dword [edi + 0x20]
mov esi, dword [edi + 0x24]
mov ecx, dword [edi + 0x40]
cmp byte [eax + 0xb], 0
je 0x1004b0a7
mov byte [eax + 0xb], 0
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x1004b0a7
mov ebx, dword [esp + 0xc]
nop dword [eax]
test byte [eax + 1], 0x10
je 0x1004b09c
mov byte [ebx + 0xb], 1
cmp dword [eax + 0x40], ecx
jne 0x1004b09c
cmp dword [eax + 0x20], edx
jne 0x1004b09c
cmp dword [eax + 0x24], esi
jne 0x1004b09c
mov byte [eax], 1
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x1004b080
mov ebx, dword [esp + 0x18]
mov esi, dword [ebx + 0x48]
test byte [esi + 0x1c], 4
mov ecx, dword [esi + 0x14]
je 0x1004b0d9
mov eax, dword [ecx + 0x18]
cmp eax, dword [esi + 0x18]
jb 0x1004b0d9
cmp dword [ecx + 0x60], 0
je 0x1004b108
mov ecx, esi
call fcn.1003a2b0
test eax, eax
je 0x1004b0d5
mov ecx, esi
call fcn.1003cf10
jmp 0x1004b100
xor eax, eax
jmp 0x1004b100
mov eax, dword [ecx + 0x28]
test eax, eax
jne 0x1004b311
mov eax, dword [ecx + 0x94]
cmp eax, dword [ecx + 0x98]
mov ecx, esi
jbe 0x1004b0fb
call fcn.1003e620
jmp 0x1004b100
call fcn.1003e540
test eax, eax
jne 0x1004b311
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.10048090
mov edx, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, ebx
lea eax, [esp + 0xc]
push eax
movzx eax, word [esp + 0x46]
push eax
call fcn.10048590
mov eax, dword [esp + 0x14]
add esp, 8
test eax, eax
jne 0x1004b311
cmp byte [ebx + 8], al
jne 0x1004b22f
movsx eax, byte [edi + 0x44]
mov ecx, dword [esp + 0x20]
dec eax
mov esi, dword [edi + 0x74]
cmp ecx, eax
jge 0x1004b166
mov eax, dword [edi + ecx*4 + 0x7c]
mov eax, dword [eax + 4]
jmp 0x1004b169
mov eax, dword [esi + 4]
movzx ecx, word [esi + 0x16]
mov edx, dword [esi + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x18]
movzx ebx, cx
and ebx, eax
lea eax, [edx + 4]
add ebx, edx
cmp ebx, eax
jae 0x1004b1ae
mov ecx, 0x11419
call fcn.100acc00
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.100ae9aa
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x4c]
push ebx
push esi
call eax
mov ecx, dword [esi + 0x48]
add esp, 8
movzx eax, ax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x50]
mov dword [esp + 0x14], eax
call fcn.1003e900
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1004b207
mov edx, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push dword [esp + 0x1c]
add eax, 4
push eax
lea eax, [ebx - 4]
mov ebx, dword [esp + 0x28]
push eax
mov ecx, ebx
call fcn.100486c0
add esp, 0x14
jmp 0x1004b20b
mov ebx, dword [esp + 0x18]
movzx edx, word [esi + 0x16]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x20]
dec edx
mov ecx, esi
call fcn.10048590
mov eax, dword [esp + 0x14]
add esp, 8
test eax, eax
jne 0x1004b311
mov ecx, edi
call fcn.1004a520
mov esi, eax
test esi, esi
jne 0x1004b30f
movsx ecx, byte [edi + 0x44]
cmp ecx, dword [esp + 0x20]
jle 0x1004b299
mov ecx, dword [edi + 0x74]
call fcn.100440a0
dec byte [edi + 0x44]
movsx eax, byte [edi + 0x44]
mov esi, dword [esp + 0x20]
cmp eax, esi
jle 0x1004b281
mov dl, byte [edi + 0x44]
movsx eax, dl
dec dl
mov ecx, dword [edi + eax*4 + 0x78]
mov byte [edi + 0x44], dl
test ecx, ecx
je 0x1004b279
call fcn.100440a0
movsx eax, byte [edi + 0x44]
cmp eax, esi
jg 0x1004b261
movsx eax, byte [edi + 0x44]
mov ecx, edi
mov eax, dword [edi + eax*4 + 0x78]
mov dword [edi + 0x74], eax
call fcn.1004a520
mov esi, eax
test esi, esi
jne 0x1004b30f
cmp dword [esp + 0x2c], 0
je 0x1004b2ed
mov byte [edi], 2
movzx eax, word [ebx + 0x16]
cmp dword [esp + 0x24], eax
jb 0x1004b2d2
mov dword [edi + 4], 0xffffffff
mov ax, word [ebx + 0x16]
dec ax
mov word [edi + 0x46], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.100ae9aa
mov esp, ebp
pop ebp
ret
mov dword [edi + 4], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.100ae9aa
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.10046c70
cmp byte [esp + 0x13], 0
mov esi, eax
je 0x1004b307
mov ecx, edi
call fcn.100426d0
mov byte [edi], 3
xor eax, eax
cmp esi, 0x10
cmove esi, eax
mov eax, esi
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100ae9aa
mov esp, ebp
pop ebp
ret