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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [edx + 0x78]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x3c], edx
test eax, eax
je 0x4a377c
mov ebx, edx
lea ecx, [esp + 0x80]
push dword [edx + 0x7c]
push eax
push ecx
call fcn.00508970
add esp, 0xc
mov esi, dword [esp + 0x84]
movq xmm0, qword [esp + 0x88]
cmp dword [esp + 0x80], 0
je 0x4a3798
mov dword [esp + 4], esi
movq qword [esp + 8], xmm0
mov edi, esi
jmp 0x4a37e9
xor edi, edi
mov dword [esp + 4], 0
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0
jmp 0x4a37e9
movd edi, xmm0
test edi, edi
je 0x4a37cd
setns al
js 0x4a3a8a
movzx eax, al
mov dword [esp], eax
push eax
push edi
call fcn.00403b10
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4a37d2
push dword [esp]
push edi
call fcn.00506bc0
add esp, 8
ud2
mov ebx, 1
push edi
push esi
push ebx
call fcn.0053b960
add esp, 0xc
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x20]
cmp word [eax + 0x8e], 5
jae 0x4a380e
mov ecx, dword [ebx + 0x24]
or ecx, edx
je 0x4a3838
dec edx
cmp edx, dword [eax + 0x70]
jb 0x4a3817
jmp 0x4a392c
cmp dword [eax + 0x70], edx
jbe 0x4a392c
shl edx, 4
add edx, dword [eax + 0x6c]
lea ecx, [esp + 0x40]
call fcn.0049ffd0
mov eax, dword [esp + 0x40]
xor eax, 0x2e
or eax, dword [esp + 0x44]
jne 0x4a385d
jmp 0x4a392c
mov ecx, dword [eax]
test ecx, ecx
je 0x4a392c
mov eax, dword [eax + 4]
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0x1f
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
movq xmm0, qword [esp + 0x40]
movsd xmm1, qword [esp + 0x48]
mov esi, dword [esp + 0x3c]
movsd qword [esp + 0x60], xmm1
movq qword [esp + 0x58], xmm0
movzx eax, byte [esi + 0x59]
mov dword [esp], eax
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x58]
lea ecx, [esp + 0x10]
push eax
push dword [esi + 0x138]
push dword [esp + 8]
call fcn.0049e2a0
add esp, 0xc
movzx eax, byte [esp + 0x10]
cmp al, 0x4b
jne 0x4a3a52
push dword [esp + 0x18]
push dword [esp + 0x18]
lea eax, [esp + 0x60]
push eax
call fcn.00508970
add esp, 0xc
movq xmm0, qword [esp + 0x58]
movsd xmm1, qword [esp + 0x60]
movq qword [esp + 0x28], xmm0
movsd qword [esp + 0x30], xmm1
movq qword [esp + 0x68], xmm0
movsd qword [esp + 0x70], xmm1
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
test edi, edi
mov eax, esi
mov dword [esp], ecx
je 0x4a3900
mov ecx, dword [esp + 0x34]
mov eax, dword [esp]
lea edx, [esp + 4]
push ecx
push eax
push edx
call fcn.004ed0d0
add esp, 0xc
test edi, edi
je 0x4a392c
test esi, esi
je 0x4a392c
mov eax, esi
not eax
shr eax, 0x1f
push eax
push esi
push dword [esp + 8]
call fcn.00403b20
add esp, 0xc
add ebx, 0x10
lea esi, [esp + 0x58]
mov edx, ebx
mov ecx, esi
call fcn.0049ffd0
mov edi, dword [esp + 0x3c]
movzx eax, byte [edi + 0x59]
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0x10]
push esi
push dword [edi + 0x138]
push eax
call fcn.0049e2a0
add esp, 0xc
movzx eax, byte [esp + 0x10]
cmp al, 0x4b
jne 0x4a39fb
push dword [esp + 0x18]
push dword [esp + 0x18]
push esi
call fcn.00508970
add esp, 0xc
movq xmm0, qword [esp + 0x58]
movsd xmm1, qword [esp + 0x60]
movq qword [esp + 0x28], xmm0
movsd qword [esp + 0x30], xmm1
movq qword [esp + 0x68], xmm0
movsd qword [esp + 0x70], xmm1
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
test ebx, ebx
mov eax, esi
mov ecx, edi
je 0x4a39b7
mov ecx, dword [esp + 0x34]
mov eax, edi
lea edx, [esp + 4]
push ecx
push eax
push edx
call fcn.004ed0d0
add esp, 0xc
test ebx, ebx
je 0x4a39e0
test esi, esi
je 0x4a39e0
mov eax, esi
not eax
shr eax, 0x1f
push eax
push esi
push edi
call fcn.00403b20
add esp, 0xc
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
movsd xmm0, qword [esp + 4]
mov dword [ecx + 0xc], eax
movsd qword [ecx + 4], xmm0
mov byte [ecx], 0x4b
jmp 0x4a3a4a
movzx ecx, byte [esp + 0x13]
movzx edx, word [esp + 0x11]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
movsd xmm0, qword [esp + 0x18]
mov byte [edi + 3], cl
mov word [edi + 1], dx
mov byte [edi], al
mov dword [edi + 4], esi
movsd qword [edi + 8], xmm0
mov edi, dword [esp + 4]
mov byte [esp + 0x42], cl
mov word [esp + 0x40], dx
test edi, edi
je 0x4a3a4a
mov eax, edi
not eax
shr eax, 0x1f
push eax
push edi
push dword [esp + 0x10]
call fcn.00403b20
add esp, 0xc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, byte [esp + 0x13]
movzx edx, word [esp + 0x11]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
movsd xmm0, qword [esp + 0x18]
mov byte [esp + 0x56], cl
mov word [esp + 0x54], dx
mov byte [ebx + 3], cl
mov word [ebx + 1], dx
mov byte [ebx], al
mov dword [ebx + 4], esi
movsd qword [ebx + 8], xmm0
test edi, edi
jne 0x4a3a35
jmp 0x4a3a4a
call fcn.00506b80
ud2