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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff54
mov ebp, eax
xor eax, eax
mov edi, edx
mov dword [esp], ecx
mov dword [esp + 0x28], eax
xor edx, edx
mov dword [esp + 0x64], edx
mov ecx, dword [ebp]
mov dword [esp + 0x6c], ecx
mov ebx, dword [ebp + 0xc]
mov eax, ebx
call fcn.004c76ec
mov dword [esp + 0x58], eax
mov eax, ebx
call fcn.004c76ec
mov dword [esp + 0x54], eax
xor edx, edx
mov dl, byte [edi + 4]
mov dword [esp + 0x60], edx
mov ecx, dword [edi + 0x1c]
mov dword [esp + 4], ecx
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x70]
mov edx, dword [eax]
mov dword [esp + 0x74], edx
cmp dword [esp + 0x60], 0x71
je 0x4aafff
mov esi, 1
jmp 0x4aafeb
xor eax, eax
mov edx, dword [esp + 0x70]
mov edx, dword [edx + 0xc]
cmp eax, dword [esp + 0x74]
jge 0x4aaf95
movzx ecx, word [edx + 0xe]
cmp esi, ecx
je 0x4aaf95
inc eax
add edx, 0x14
cmp eax, dword [esp + 0x74]
jl 0x4aaf83
cmp eax, dword [esp + 0x74]
jne 0x4aafea
xor ecx, ecx
mov edx, 0x81
mov eax, dword [esp + 0x6c]
call fcn.004b9394
test eax, eax
jne 0x4aafb9
mov eax, 7
jmp 0x4ab811
or word [eax + 2], 0x400
mov dword [eax + 4], esi
mov ecx, eax
mov edx, dword [esp + 0x70]
mov eax, ebp
call fcn.004b9e50
mov dword [esp + 0x70], eax
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx + 0xc]
lea edx, [edx + edx*4]
mov word [eax + edx*4 + 0xe], si
inc dword [esp + 0x74]
inc esi
mov edx, dword [esp + 0x6c]
cmp byte [edx + 0x1e], 0
jne 0x4aafff
mov ecx, dword [edi]
cmp esi, dword [ecx]
jle 0x4aaf74
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x6c]
shl edx, 2
call fcn.004de27c
mov dword [esp + 0x78], eax
cmp dword [esp + 0x78], 0
je 0x4ab124
xor esi, esi
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0xc]
cmp esi, dword [esp + 0x74]
jge 0x4ab043
movzx edx, word [eax + 0xe]
dec edx
mov ecx, dword [esp + 0x78]
mov dword [ecx + esi*4], edx
inc esi
add eax, 0x14
cmp esi, dword [esp + 0x74]
jl 0x4ab02d
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x6c]
lea edx, [edx + edx*4]
add edx, 0x10
call fcn.004de27c
mov dword [esp + 0x68], eax
cmp dword [esp + 0x68], 0
je 0x4ab12a
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x68]
shl ecx, 2
add ecx, dword [esp + 0x68]
add ecx, 0xc
mov dword [esi + 8], ecx
xor esi, esi
mov dx, word [esp + 0x74]
mov eax, dword [esp + 0x68]
mov word [eax + 6], dx
mov ecx, dword [esp + 0x6c]
mov ecx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
mov dl, byte [eax + 0x4d]
mov eax, dword [esp + 0x68]
mov byte [eax + 4], dl
cmp esi, dword [esp + 0x74]
jge 0x4ab12a
lea eax, [esi + esi*4]
mov edx, dword [esp + 0x70]
mov ecx, dword [edx + 0xc]
mov ecx, dword [ecx + eax*4]
mov dword [esp + 0x84], ecx
mov eax, dword [esp + 0x84]
test byte [eax + 3], 1
je 0x4ab0d4
mov edx, dword [esp + 0x84]
mov eax, dword [edx + 0x14]
jmp 0x4ab0fb
mov edx, dword [esp + 0x78]
mov ecx, dword [edx + esi*4]
mov edx, edi
mov eax, ebp
call fcn.004aa490
mov ecx, dword [esp + 0x84]
or word [ecx + 2], 0x100
mov edx, dword [esp + 0x84]
mov dword [edx + 0x14], eax
mov ecx, dword [esp + 0x68]
mov dword [ecx + esi*4 + 0xc], eax
lea eax, [esi + esi*4]
mov edx, dword [esp + 0x70]
mov ecx, dword [edx + 0xc]
mov edx, dword [esp + 0x68]
mov al, byte [ecx + eax*4 + 0xc]
mov ecx, dword [edx + 8]
mov byte [ecx + esi], al
inc esi
cmp esi, dword [esp + 0x74]
jl 0x4ab0a7
jmp 0x4ab12a
xor eax, eax
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x70]
mov dword [edi + 0x18], ecx
mov eax, dword [ebp]
xor ecx, ecx
mov edx, dword [esp + 0x70]
call fcn.004b9a7c
mov edx, dword [esp + 4]
mov dword [edx + 0x18], eax
cmp dword [esp + 0x60], 0x71
jne 0x4ab158
xor eax, eax
mov dword [esp + 0x48], eax
jmp 0x4ab219
mov ecx, dword [edi]
mov eax, ebp
mov ecx, dword [ecx]
mov dword [esp + 0x88], ecx
mov edx, dword [esp + 0x88]
inc edx
call fcn.004bcad4
mov dword [esp + 0x48], eax
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov edx, 7
push ecx
xor ecx, ecx
call fcn.004c7628
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x6c]
lea edx, [edx + edx*4]
add edx, 0x10
call fcn.004de258
mov dword [esp + 0x64], eax
cmp dword [esp + 0x64], 0
je 0x4ab219
mov ecx, dword [esp + 0x88]
mov esi, dword [esp + 0x64]
shl ecx, 2
add ecx, dword [esp + 0x64]
add ecx, 0xc
mov dword [esi + 8], ecx
xor esi, esi
mov dx, word [esp + 0x88]
mov eax, dword [esp + 0x64]
mov word [eax + 6], dx
mov ecx, dword [esp + 0x6c]
mov ecx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
mov dl, byte [eax + 0x4d]
mov eax, dword [esp + 0x64]
mov byte [eax + 4], dl
cmp esi, dword [esp + 0x88]
jge 0x4ab219
mov ecx, esi
mov edx, edi
mov eax, ebp
call fcn.004aa490
mov edx, dword [esp + 0x64]
mov dword [edx + esi*4 + 0xc], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 8]
mov byte [ecx + esi], 0
inc esi
cmp esi, dword [esp + 0x88]
jl 0x4ab1f1
xor ecx, ecx
mov dword [edi + 0x1c], ecx
push 0x5d745b
mov ecx, dword [edi + 0x18]
mov edx, edi
mov eax, ebp
call fcn.004bdb50
mov ecx, dword [esp + 4]
cmp dword [ecx + 0x1c], 0
jne 0x4ab250
push 0x5d745b
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 8]
mov eax, ebp
call fcn.004bdb50
mov ecx, dword [esp + 0x58]
mov edx, edi
mov eax, ebp
call fcn.004aa318
cmp dword [edi + 0x30], 0
je 0x4ab2b5
cmp dword [esp + 0x60], 0x71
jne 0x4ab2b5
inc dword [ebp + 0x48]
mov ecx, dword [ebp + 0x48]
mov dword [esp + 0x40], ecx
inc dword [ebp + 0x48]
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x40]
push edx
cmp dword [edi + 0x34], 0
je 0x4ab28f
mov ecx, dword [edi + 0x34]
inc ecx
jmp 0x4ab292
mov ecx, dword [edi + 0x30]
mov edx, 0xe
mov eax, ebx
call fcn.004c7628
mov ecx, dword [esp + 0x44]
mov edx, 0xe
push ecx
mov eax, ebx
mov ecx, dword [esp + 0x44]
call fcn.004c7628
jmp 0x4ab2bf
xor ecx, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], ecx
mov edx, dword [edi + 0x28]
mov eax, dword [esp + 0x6c]
call fcn.004b9708
xor ecx, ecx
mov dword [edi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov eax, dword [esp + 0x6c]
call fcn.004b9708
xor ecx, ecx
mov dword [edi + 0x2c], ecx
inc dword [ebp + 0x48]
mov esi, dword [ebp + 0x48]
inc dword [ebp + 0x48]
mov eax, dword [ebp + 0x48]
mov dword [esp + 8], eax
inc dword [ebp + 0x48]
mov edx, dword [ebp + 0x48]
mov dword [esp + 0xc], edx
mov edx, 0xa
inc dword [ebp + 0x48]
mov ecx, dword [ebp + 0x48]
mov dword [esp + 0x10], ecx
inc dword [ebp + 0x48]
mov ecx, dword [ebp + 0x48]
mov dword [esp + 0x1c], ecx
mov ecx, esi
inc dword [ebp + 0x48]
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x8c]
call fcn.004a8ba8
lea eax, [esp + 0x9c]
mov ecx, dword [esp + 0xc]
mov edx, 0xa
call fcn.004a8ba8
mov edx, 1
mov eax, ebx
call fcn.004c7610
mov dword [esp + 0x5c], eax
mov eax, ebx
call fcn.004c7844
mov dword [esp + 0x14], eax
mov eax, ebp
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0x30], ecx
mov ecx, dword [ebp + 0x228]
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x8c]
mov edx, dword [esp + 4]
call fcn.004acb48
mov ecx, dword [esp + 8]
mov edx, 7
push ecx
mov ecx, 1
mov eax, ebx
call fcn.004c7628
mov ecx, esi
mov edx, 4
mov eax, ebx
call fcn.004c761c
mov eax, ebx
call fcn.004c7844
mov dword [esp + 0x18], eax
xor eax, eax
mov edx, dword [edi + 0x30]
mov dword [esp + 0x4c], edx
mov ecx, dword [edi + 0x34]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x44]
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], eax
mov edx, dword [ebp + 0x228]
mov eax, ebp
mov dword [esp + 0x80], edx
mov edx, edi
lea ecx, [esp + 0x9c]
call fcn.004acb48
mov ecx, dword [esp + 0x4c]
mov dword [edi + 0x30], ecx
mov ecx, 1
mov eax, dword [esp + 0x50]
mov dword [edi + 0x34], eax
mov eax, ebx
mov edx, dword [esp + 0x10]
push edx
mov edx, 7
call fcn.004c7628
mov ecx, dword [esp + 0xc]
mov edx, 4
mov eax, ebx
call fcn.004c761c
mov ecx, dword [esp]
push ecx
mov eax, dword [esp + 0x20]
push eax
mov edx, dword [esp + 0x50]
push edx
mov edx, edi
mov ecx, dword [esp + 0x70]
push ecx
push 0xfffffffffffffff0
mov eax, dword [esp + 0x6c]
push eax
mov eax, ebp
lea ecx, [esp + 0xa4]
call fcn.004aac64
mov dword [esp + 0x24], eax
cmp dword [esp + 0x60], 0x71
je 0x4ab459
cmp dword [esp + 0x60], 0x70
jne 0x4ab487
mov ecx, dword [esp]
push ecx
mov eax, dword [esp + 0x24]
push eax
mov edx, dword [esp + 0x50]
push edx
mov edx, edi
mov ecx, dword [esp + 0x70]
push ecx
push 0xffffffffffffffef
mov eax, dword [esp + 0x6c]
push eax
mov eax, ebp
lea ecx, [esp + 0xb4]
call fcn.004aac64
mov dword [esp + 0x28], eax
cmp dword [esp + 0x60], 0x72
je 0x4ab495
cmp dword [esp + 0x60], 0x73
jne 0x4ab4ae
mov ecx, dword [esp + 0x58]
mov edx, 1
push ecx
xor ecx, ecx
mov eax, ebx
call fcn.004c7628
mov dword [esp + 0x2c], eax
jmp 0x4ab50d
mov ecx, dword [esp + 0x58]
mov edx, 0x1a
push ecx
mov eax, ebx
mov ecx, dword [esp + 0x14]
call fcn.004c7628
mov dword [esp + 0x2c], eax
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov edx, 2
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004c7628
mov ecx, dword [esp + 0xc]
mov edx, 4
mov eax, ebx
call fcn.004c761c
mov ecx, dword [esp + 0x2c]
mov edx, 1
push ecx
xor ecx, ecx
mov eax, ebx
call fcn.004c7628
mov ecx, dword [esp + 4]
fld qword [ecx + 0x44]
fadd qword [edi + 0x44]
fstp qword [edi + 0x44]
wait
cmp dword [esp + 0x60], 0x73
jne 0x4ab543
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
mov edx, dword [esp + 4]
fld qword [edi + 0x44]
fld qword [edx + 0x44]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x45
jne 0x4ab592
mov edx, dword [esp + 4]
mov ecx, dword [edx + 0x44]
mov dword [edi + 0x44], ecx
mov ecx, dword [edx + 0x48]
mov dword [edi + 0x48], ecx
jmp 0x4ab592
mov ecx, dword [esp + 0x58]
mov edx, 0x1a
push ecx
mov eax, ebx
mov ecx, dword [esp + 0xc]
call fcn.004c7628
mov dword [esp + 0x30], eax
mov eax, ebx
mov ecx, dword [esp + 0x24]
mov edx, 2
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004c7628
mov ecx, esi
mov edx, 4
mov eax, ebx
call fcn.004c761c
mov ecx, dword [esp + 0x30]
mov edx, 1
push ecx
xor ecx, ecx
mov eax, ebx
call fcn.004c7628
mov ecx, dword [esp + 0x24]
mov edx, 2
push ecx
mov eax, ebx
mov ecx, dword [esp + 0x20]
call fcn.004c7628
mov dword [esp + 0x34], eax
mov ecx, esi
mov edx, 4
mov eax, ebx
call fcn.004c761c
mov ecx, dword [esp + 0x2c]
mov edx, 0x1a
push ecx
mov eax, ebx
mov ecx, dword [esp + 0xc]
call fcn.004c7628
mov ecx, dword [esp + 0x54]
mov edx, 1
push ecx
xor ecx, ecx
mov eax, ebx
call fcn.004c7628
cmp dword [esp + 0x60], 0x71
jne 0x4ab5f2
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
jmp 0x4ab641
cmp dword [esp + 0x60], 0x73
jne 0x4ab607
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], eax
inc dword [esp + 0x34]
jmp 0x4ab641
mov ecx, esi
mov edx, 4
mov eax, ebx
call fcn.004c761c
mov dword [esp + 0x38], eax
mov eax, ebx
mov ecx, dword [esp + 0x2c]
mov edx, 0x1a
push ecx
mov ecx, dword [esp + 0xc]
call fcn.004c7628
mov ecx, dword [esp + 0x54]
mov edx, 1
push ecx
xor ecx, ecx
mov eax, ebx
call fcn.004c7628
mov eax, ebx
call fcn.004c7844
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x60], 0x71
je 0x4ab65a
cmp dword [esp + 0x60], 0x70
jne 0x4ab66f
mov edx, dword [esp + 0x28]
mov eax, ebx
push edx
mov edx, 2
mov ecx, dword [esp + 0x24]
call fcn.004c7628
mov ecx, dword [esp + 0xc]
mov edx, 4
mov eax, ebx
call fcn.004c761c
mov ecx, dword [esp + 0x30]
mov edx, 0x1a
push ecx
mov eax, ebx
mov ecx, dword [esp + 0x14]
call fcn.004c7628
mov ecx, dword [esp + 0x54]
mov edx, 1
push ecx
xor ecx, ecx
mov eax, ebx
call fcn.004c7628
mov edx, dword [esp + 0x5c]
mov eax, ebx
call fcn.004c795c
mov ecx, dword [esp + 8]
mov edx, 7
push ecx
xor ecx, ecx
mov eax, ebx
call fcn.004c7628
mov ecx, dword [esp + 0x10]
mov edx, 7
push ecx
xor ecx, ecx
mov eax, ebx
call fcn.004c7628
mov ecx, dword [esp + 0x14]
mov edx, 2
push ecx
mov ecx, esi
mov eax, ebx
call fcn.004c7628
mov ecx, dword [esp + 0x18]
mov edx, 2
push ecx
mov eax, ebx
mov ecx, dword [esp + 0x10]
call fcn.004c7628
mov ecx, dword [esp + 0x2c]
mov edx, 0x1a
push ecx
mov eax, ebx
mov ecx, dword [esp + 0xc]
call fcn.004c7628
mov ecx, dword [esp + 0x30]
mov edx, 0x1a
push ecx
mov eax, ebx
mov ecx, dword [esp + 0x14]
call fcn.004c7628
mov edx, dword [esp + 0x54]
mov eax, ebx
call fcn.004c7744
push 0
push 0
mov ecx, dword [esp + 0x80]
push ecx
push 0xfffffffffffffff1
xor ecx, ecx
mov edx, 0x17
mov eax, ebx
call fcn.004c763c
mov ecx, dword [esp + 0xa4]
push ecx
mov eax, dword [esp + 0x78]
push eax
mov edx, dword [esp + 0x70]
push edx
push 0xfffffffffffffff0
mov ecx, dword [esp + 0xa4]
mov edx, 0x18
mov eax, ebx
call fcn.004c763c
mov ecx, dword [esp + 0x38]
mov edx, 0x19
push ecx
mov eax, dword [esp + 0x40]
push eax
mov eax, ebx
mov ecx, dword [esp + 0x3c]
call fcn.004c75ac
cmp dword [esp + 0x48], 0
je 0x4ab7a9
mov ecx, dword [esp + 0x74]
inc ecx
mov edx, dword [esp + 0x48]
mov eax, ebp
call fcn.004bcaf4
mov edx, dword [esp + 0x58]
mov eax, ebx
call fcn.004c7744
mov ecx, dword [esp]
movzx esi, byte [ecx]
cmp esi, 5
jne 0x4ab7d9
mov eax, dword [esp + 4]
jmp 0x4ab7c7
mov eax, edx
mov edx, dword [eax + 0x1c]
test edx, edx
jne 0x4ab7c5
mov ecx, dword [eax]
xor edx, edx
mov eax, ebp
call fcn.004a9d60
cmp dword [edi + 0x1c], 0
je 0x4ab7eb
mov edx, dword [edi + 0x1c]
mov eax, dword [esp + 0x6c]
call fcn.004a8c98
mov ecx, dword [esp + 4]
xor edx, edx
mov dword [edi + 0x1c], ecx
mov eax, dword [esp + 0x80]
push eax
push 0
mov ecx, dword [esp + 0x84]
mov dl, byte [edi + 4]
mov eax, ebp
call fcn.004a97e4
xor eax, eax
add esp, 0xac
pop ebp
pop edi
pop esi
pop ebx
ret