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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [ecx + 0x1b8]
push ebx
push esi
push edi
mov edi, dword [ecx]
mov esi, edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], eax
test byte [edi + 0x40], 1
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], edi
jne 0x4a71e1
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
lea ecx, [ecx + ecx*4]
shl ecx, 4
mov dword [esp + 0x34], ecx
add ecx, 8
add ecx, eax
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x14], ecx
mov edx, dword [ecx + 0x30]
mov ebx, dword [ecx + 0x14]
mov dword [esp + 0x3c], edx
mov edx, dword [ebp + 0xc]
je 0x4a710d
test edx, edx
jne 0x4a71e1
cmp dword [eax], 1
jg 0x4a71e1
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4a70e5
test dword [eax + 4], 0x200000
jne 0x4a71e1
mov ecx, dword [esi]
call fcn.004824a0
test eax, 0x200000
jne 0x4a71e1
mov ecx, dword [esi + 0x2c]
call fcn.004824a0
test eax, 0x200000
jne 0x4a71e1
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x4a711e
cmp dword [esi + 0x38], 0
jne 0x4a71e1
cmp dword [ebx + 0x3c], 0
jne 0x4a71e1
mov ecx, dword [esi + 8]
test ecx, 0x100
je 0x4a713b
test eax, eax
jne 0x4a71e1
mov edi, dword [ebx + 0x1c]
cmp dword [edi], 0
mov edi, dword [esp + 0x10]
je 0x4a71e1
test byte [ebx + 8], 1
jne 0x4a71e1
test eax, eax
je 0x4a716a
mov edi, dword [esp + 0x1c]
cmp dword [edi], 1
mov edi, dword [esp + 0x10]
jg 0x4a71e1
test edx, edx
jne 0x4a71e1
mov edx, ecx
and edx, 1
je 0x4a7177
cmp dword [ebp + 0x10], 0
jne 0x4a71e1
cmp dword [esi + 0x2c], 0
je 0x4a7183
cmp dword [ebx + 0x2c], 0
jne 0x4a71e1
cmp dword [ebp + 0xc], 0
je 0x4a718f
cmp dword [ebx + 0x2c], 0
jne 0x4a71e1
test eax, eax
je 0x4a71a1
cmp dword [esi + 0x20], 0
jne 0x4a71e1
test eax, eax
je 0x4a71a1
test edx, edx
jne 0x4a71e1
test dword [ebx + 8], 0x3000
jne 0x4a71e1
test ecx, 0x2000
je 0x4a71b8
cmp dword [ebx + 0x30], 0
jne 0x4a71e1
mov eax, dword [esp + 0x14]
test byte [eax + 0x24], 0x20
je 0x4a71ea
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x28], 1
cmp dword [eax], 1
jg 0x4a71e1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4a71e1
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x38], ecx
je 0x4a71ed
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
cmp dword [ebx + 0x30], 0
lea eax, [ebx + 0x30]
mov dword [esp + 0x2c], eax
je 0x4a7251
cmp dword [ebx + 0x2c], 0
jne 0x4a71e1
test ecx, ecx
jne 0x4a71e1
test edx, edx
jne 0x4a71e1
mov eax, dword [esp + 0x1c]
cmp dword [eax], 1
jne 0x4a71e1
test byte [ebx + 8], 9
jne 0x4a71e1
mov ecx, dword [ebx + 0x30]
test ecx, ecx
je 0x4a7224
cmp byte [ebx + 4], 0x74
jne 0x4a71e1
mov eax, dword [ebx + 0x1c]
cmp dword [eax], 1
jl 0x4a71e1
mov ebx, ecx
test ebx, ebx
jne 0x4a7211
mov ebx, dword [esi + 0x2c]
test ebx, ebx
je 0x4a7251
mov edx, dword [ebx]
test edx, edx
jle 0x4a7251
xor eax, eax
cmp word [ebx + eax + 0x1c], 0
je 0x4a71e1
inc ecx
add eax, 0x18
cmp ecx, edx
jl 0x4a7241
mov eax, dword [esp + 0x14]
mov edx, 0x15
mov ebx, dword [esp + 0x20]
mov ecx, ebx
push 0
push 0
mov eax, dword [eax + 8]
push 0
mov dword [ebx + 0x1b8], eax
call fcn.0048aca0
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov dword [ebx + 0x1b8], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4a7333
mov eax, dword [esp + 0x18]
mov edx, eax
mov ebx, dword [esi + 0x2c]
mov edi, dword [esi + 0x38]
mov esi, dword [esi + 0x3c]
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x10]
push 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
call fcn.00481e90
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx + 0x3c], esi
mov esi, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x38], edi
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x1c], ecx
mov byte [esi + 4], 0x74
test eax, eax
jne 0x4a72fe
mov eax, dword [esp + 0x2c]
jmp 0x4a730f
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x30], ecx
test ecx, ecx
je 0x4a730c
mov dword [ecx + 0x34], eax
mov dword [eax + 0x34], esi
mov edi, dword [esp + 0x10]
mov dword [esi + 0x30], eax
cmp byte [edi + 0x45], 0
jne 0x4a7610
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x30], eax
test eax, eax
jne 0x4a7293
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x14]
mov ebx, eax
mov edx, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], ebx
call fcn.0044e760
mov eax, dword [esp + 0x14]
mov ecx, edi
mov edx, dword [eax + 8]
call fcn.0044e760
mov eax, dword [esp + 0x14]
mov ecx, edi
mov edx, dword [eax + 0xc]
call fcn.0044e760
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 0x10]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x14], 0
test edx, edx
je 0x4a73c1
mov eax, dword [edx + 0x20]
cmp eax, 1
jne 0x4a73b6
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x78]
test eax, eax
cmovne ecx, eax
mov eax, dword [ecx + 0x1c8]
mov dword [edx + 0x4c], eax
mov dword [ecx + 0x1c8], edx
jmp 0x4a73ba
dec eax
mov dword [edx + 0x20], eax
mov dword [edi + 0x10], 0
mov eax, dword [ebx + 0x1c]
mov ecx, dword [esi + 0x1c]
mov byte [esp + 0xf], 0
mov dword [esp + 0x2c], eax
mov edi, dword [eax]
mov dword [esp + 0x38], edi
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x4a73eb
mov eax, dword [esp + 0x14]
mov al, byte [eax + 0x24]
mov byte [esp + 0xf], al
jmp 0x4a740e
mov ecx, dword [esp + 0x10]
xor edx, edx
push 0
push 0
call fcn.0048ff00
mov ecx, eax
add esp, 8
mov dword [esp + 0x1c], ecx
mov dword [esi + 0x1c], ecx
test ecx, ecx
je 0x4a75f8
cmp edi, 1
jle 0x4a7444
mov eax, dword [ebp + 8]
mov edx, ecx
mov ecx, dword [esp + 0x10]
inc eax
push eax
lea eax, [edi - 1]
push eax
call fcn.0048fdd0
mov ecx, eax
add esp, 8
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x1c], ecx
cmp byte [eax + 0x45], 0
je 0x4a7448
mov edi, eax
jmp 0x4a75fc
mov eax, dword [esp + 0x10]
test edi, edi
jle 0x4a74c3
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
add edi, 8
mov ebx, dword [esp + 0x38]
add esi, 8
add edi, ecx
mov edx, dword [edi + 0x38]
mov ecx, eax
call fcn.0048fc20
movups xmm0, xmmword [esi]
push 0x50
push 0
movups xmmword [edi], xmm0
push esi
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [edi + 0x30], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [edi + 0x40], xmm0
mov eax, dword [esi + 0x30]
mov dword [esp + 0x30], eax
call fcn.004e7b30
mov eax, dword [esp + 0x1c]
lea edi, [edi + 0x50]
add esp, 0xc
add esi, 0x50
sub ebx, 1
jne 0x4a7464
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov al, byte [esp + 0xf]
mov byte [edx + ecx + 0x2c], al
mov edx, dword [ebx + 0x2c]
test edx, edx
je 0x4a74f8
xor ecx, ecx
cmp dword [edx], ecx
jle 0x4a74ee
lea eax, [edx + 0x1c]
nop
xor edi, edi
lea eax, [eax + 0x18]
mov word [eax - 0x18], di
inc ecx
cmp ecx, dword [edx]
jl 0x4a74e0
mov dword [esi + 0x2c], edx
mov dword [ebx + 0x2c], 0
mov edx, dword [ebx + 0x20]
mov edi, dword [esp + 0x10]
test edx, edx
je 0x4a7513
push 0
push 0
mov ecx, edi
call fcn.004815a0
add esp, 8
jmp 0x4a7515
xor eax, eax
cmp dword [esp + 0x28], 0
mov dword [esp + 0x1c], eax
jbe 0x4a752b
mov edx, dword [esp + 0x24]
mov ecx, eax
call fcn.004a1ac0
cmp dword [ebp + 0x10], 0
mov edx, dword [esp + 0x1c]
je 0x4a757a
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], eax
mov dword [esi + 0x20], edx
mov edx, dword [ebx + 0x28]
test edx, edx
je 0x4a7555
push 0
push 0
mov ecx, edi
call fcn.004815a0
add esp, 8
jmp 0x4a7557
xor eax, eax
push dword [esi + 0x28]
mov edx, eax
mov ecx, edi
call fcn.004810d0
add esp, 4
mov dword [esi + 0x28], eax
mov edx, dword [ebx + 0x24]
mov ecx, edi
push 0
call fcn.00481970
mov dword [esi + 0x24], eax
jmp 0x4a7587
push dword [esi + 0x20]
mov ecx, edi
call fcn.004810d0
mov dword [esi + 0x20], eax
add esp, 4
cmp byte [edi + 0x45], 0
jne 0x4a75c6
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], eax
mov edx, esi
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x50], eax
mov eax, dword [ebx]
push 0
mov dword [esp + 0x58], eax
call fcn.004a6f00
add esp, 4
mov eax, dword [ebx + 8]
and eax, 1
or dword [esi + 8], eax
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x4a75e0
mov dword [esi + 0x38], eax
mov dword [ebx + 0x38], 0
mov esi, dword [esi + 0x30]
mov ebx, dword [ebx + 0x30]
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], ebx
test esi, esi
jne 0x4a73c1
jmp 0x4a75fc
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4a7610
push 1
mov ecx, edi
call fcn.004a1640
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret